Detecting if a player is sprinting?
#1

pawn Код:
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?
Reply
#2

They can move other directions than forwards while sprinting, and also you should check if they're on foot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)