29.05.2009, 11:51
Not sure what that would do... it's gonna return -5 whatever the outcome. If you're trying to see if a player is a Passenger:
But this is fairly pointless, as you could just use GetPlayerState without wrapping it up in a function.
pawn Код:
IsPassenger(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return 1;
return 0;
}