06.10.2009, 17:18
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(vehicleid) == 520) // replace 520 with the id of the car you want only police to drive { if(gTeam[playerid] == TEAM_COP) { SendClientMessage(playerid, red, "You are police, You can drive the car!"); } else { RemovePlayerFromVehicle(playerid); PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_RED, "You need to be a Cop to drive this!"); } } }