07.02.2011, 17:57
Is it possible to detect if a player is in the air but not in a Aircraft ?
Eg: Using a parachute or sky diving. Thanks.
Peace...
Eg: Using a parachute or sky diving. Thanks.
Peace...
public IsPlayerSkydiving(playerid) //true if player is falling with a closed parachute
{
new index = GetPlayerAnimationIndex(playerid)
return (index >= 958 && index <= 962);
}
public IsPlayerUsingParachute(playerid) //true if player is falling with an opened parachute
{
new index = GetPlayerAnimationIndex(playerid)
return (index >= 963 && index <= 979);
}