Help, OnPlayerKeyStateChange
#1

I tried doing a code that when you press KEY_SPRINT, the animation of the player should be cleared, without typing a command, but when I try it, It doesn't work, any suggestions on how will I make it work?


pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_FIRE))
    {
        ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0)
            return 1;
         }
    return 1;
}
Reply
#2

Try:
pawn Код:
ClearAnimations(playerid);
https://sampwiki.blast.hk/wiki/ClearAnimations
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)