Making it soo theese cars can only be drove by TEAM_COP
#4

Код:
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!");
		}
		}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)