05.07.2013, 20:31
https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle
Under the OnPlayerEnterVehicle callback, check the vehicle model
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!");
}