07.02.2012, 21:38
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 451) {
if (GetPlayerScore(playerid) < 50)
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}