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

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)