How to add faction vehicle
#2

https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle
Under the OnPlayerEnterVehicle callback, check the vehicle model
pawn Код:
if(GetVehicleModel(GetPlayerVehicleId(playerid)) == LSPD_VEH_ID) // change it to the lspd vehicle ID, ****** it.
{
      RemovePlayerFromVehicle(playerid);
      SendClientMessage(playerid, COLOR_RED, "[SERVER]{FFFFFF}: You are not a police officer, you do not have the keys for this vehicle!");
}
Reply


Messages In This Thread
How to add faction vehicle - by lider1241 - 05.07.2013, 20:19
Re: How to add faction vehicle - by Sandiel - 05.07.2013, 20:31
Re: How to add faction vehicle - by Akira297 - 05.07.2013, 20:34

Forum Jump:


Users browsing this thread: 1 Guest(s)