30.10.2015, 16:56
Make a check if it's a faction vehicle
and than make a function
Replace "..." with vehicle IDs of your faction vehicles
Код:
if(!IsAFactionVehicle(vehicleid)) { if(Gas[vehicleid] < 1.0) { SendClientMessage(playerid, COLOR_RED, "[!ERROR] Your vehicle is out of fuel, it won't start!"); } }
Код:
stock IsAFactionVehicle(vehicleid)) { if(vehicleid == ... || vehicleid == ...) return true; return false; }