14.09.2012, 16:04
tenta assim:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && GetPlayerScore(playerid) < 5)
{
RemovePlayerFromVehicle(playerid);
}
return 1;
}