• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] Group law cars
#2
Code:
new vehicleid = GetPlayerVehicleID(playerid);

if(newstate == PLAYER_STATE_DRIVER && isPoliceCar(vehicleid))
{
? ?//do something
}

stock isPoliceCar(vehicleid)
{

? ?new vehiclemodel = GetVehicleModel(vehicleid);

? ?switch(vehiclemodel)
? ?{
? ?case 595: return true;
? ?case 596: return true;
? ?case 597: return true;
? ?case 599: return true;
? ?}

? ?return false;
}

Edit:
I really forgot. Now fixed.
  Reply


Messages In This Thread
Group law cars - by homelessdrop - 2020-04-14, 11:58 PM
RE: Group law cars - by akosd127 - 2020-04-16, 04:54 PM
RE: Group law cars - by Y_Less - 2020-04-18, 11:25 AM
RE: Group law cars - by homelessdrop - 2020-04-19, 04:55 PM

Forum Jump: