Blocking Cop Vehicles From Civilians And Other teams
#1

I was wondering how to block the cop vehicles from the civillians and all of those people non cops......... so anyone can tell me how i can block the vehicles and make them only for cops?
really its annoying all the ppl in my server steal all the cop cars and the cops cant work lol :S

if anyone can help me help me please
Reply
#2

Do you have gTeam? if you do this might work(Only if you don't change teams without spawning):
pawn Код:
OnPlayerSpawn(playerid)
{
  if(gTeam[playerid]==TEAM_COPS)/*Change this to your team ill just say TEAM_COPS*/
  {
       SetVehicleParamsForPlayer(YOURVEHICLEID,playerid,0,0);
  }
  return 1;
}
Reply
#3

hi
this topic is important i have the same problem and i wanna know how to give player wanted level when he get in police car?
Reply
#4

Код:
OnPlayerEnterVehicle

if(IsACopCar(vehicleid))
{
  new wanted = GetPlayerWantedLevel(playerid);
  SetPlayerWantedLevel(playerid, wanted+1);
  SendClientMessage(playerid, COLOR, "You got one (more) wanted level because of that you go into a patrol car, You fucked up!")
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)