18.11.2011, 10:03
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;
}