16.10.2014, 22:26
You can do something like this,
Note it would clear the running animation, - how-ever you could apply a running animation in place using ApplyAnimation for a few seconds.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_JUMP)
{
if(Disabled[playerid])
{
new Float: pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
ClearAnimations(playerid);
return 1;
}
}
return 1;
}