12.06.2011, 16:40
pawn Код:
GetPlayerAnimationIndex(playerid);
Example of usage:
pawn Код:
public IsPlayerUsingParachute(playerid)
{
new index = GetPlayerAnimationIndex(playerid);
return (index >= 963 && index <= 979);//true if player is falling with an opened parachute
}
pawn Код:
public IsPlayerSkydiving(playerid)
{
new index = GetPlayerAnimationIndex(playerid);
return (index >= 958 && index <= 962);//true if player is falling with a closed parachute
}