05.10.2009, 22:24
Код:
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 needed to be police to drive this car"); } else { new Float:px, Float:py, Float:pz; SendClientMessage(playerid, red, "You need to be a cop to drive a cop car!."); GetPlayerPos(playerid, px, py, pz); SetPlayerPos(playerid, px, py, pz+3); } } }