20.04.2012, 03:26
Try this
pawn Код:
if ((newkeys & KEY_AIM) && (GetPlayerState(playerid)== PLAYER_STATE_ONFOOT))
{
new Float:Velocity[3];
GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
if(Velocity[2] == 0)
{
TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
ClearAnimations(playerid);
return 1;
}
}