PD Cars and Ambulances.
#1

Okay, so I wanna know, how can I make it so that a car is only able to be used by a PD officer, or Medic/gang member of that gang.

I have this if it helps, Thanks:

pawn Код:
if(Groups[Player[playerid][Group]][CommandTypes] == 1 && Player[playerid][Group] != 0 || Groups[Player[playerid][Group]][CommandTypes] == 4)
Reply
#2

Post it again not like this how can we fix it liek this ? lol
Reply
#3

Quote:
Originally Posted by Roomeo
Посмотреть сообщение
Post it again not like this how can we fix it liek this ? lol
what?
Reply
#4

Please change the code behind "&&" with your own, I copied a little bit of your code, keep in mind that it needs to be IS NOT otherwise people who ARE PD can't enter it.

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID) == 520 && Groups[Player[playerid][Group]][CommandTypes] != 1)//If the carmodel is 520(hydra) and the player is NOT in CommandType 1
{
    SendClientMessage(playerid, COLOR, "Pl0x you cannot drive dis");//Informing him/her...
    RemovePlayerFromVehicle(playerid); //Removes player from vehicle, sometimes bugged
    return 1;    
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)