PDA

View Full Version : Detecting if a player is sprinting?


Dokins
16/02/2015, 02:14 PM
if(HOLDING(KEY_UP | KEY_SPRINT) && LLegBr[playerid] == 1 || RLegBr[playerid] == 1)
{
ApplyAnimation(playerid, "PED", "FALL_front", 4.0, 1, 0, 0, 0, 0,1);
}


This is What I've got so far? it won't make them fall, but I don't understand how to detect fully, is this close?

CalvinC
17/02/2015, 04:23 PM
They can move other directions than forwards while sprinting, and also you should check if they're on foot.