29.05.2009, 11:08
Parameter ispassenger from callback OnPlayerEnterVehicle , it's for
GetPlayerState(playerid) == 2 || GetPlayerState(playerid) == 3 ?
GetPlayerState(playerid) == 2 || GetPlayerState(playerid) == 3 ?
PLAYER_STATE_DRIVER PLAYER_STATE_ONFOOT, PLAYER_STATE_PASSANGER,
ispassenger()
{
for(new p; p < GetMaxPlayers(); p++)
{
if(GetPlayerState(p) == 2 || GetPlayerState(p) == 3)
{
}
}
return -5;
}
IsPassenger(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return 1;
return 0;
}