05.03.2010, 12:16
OnPlayerUpdate:
SimpleDrunk:
Nothing happens when I press the shift key, it worked when I had changed the "Keys &=32" to "Keys &= 16" and I pressed enter though.
Why doesn't the animation start two seconds after I press the jump key (shift)?
pawn Код:
if(Keys &= 32)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("SimpleDrunk", 2000, false, "i", playerid);
}
pawn Код:
public SimpleDrunk(playerid)
{
ClearAnimations(playerid);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
}
Why doesn't the animation start two seconds after I press the jump key (shift)?