Fuel System - No Fuel
#3

Make a check if it's a faction vehicle

Код:
if(!IsAFactionVehicle(vehicleid))
{
	if(Gas[vehicleid] < 1.0)
	{
		SendClientMessage(playerid, COLOR_RED, "[!ERROR] Your vehicle is out of fuel, it won't start!");
	}
}
and than make a function

Код:
stock IsAFactionVehicle(vehicleid))
{
	if(vehicleid == ... || vehicleid == ...) return true;
	return false;
}
Replace "..." with vehicle IDs of your faction vehicles
Reply


Messages In This Thread
Fuel System - No Fuel - by Scottylad - 30.10.2015, 15:44
Re: Fuel System - No Fuel - by ATGOggy - 30.10.2015, 16:47
Re: Fuel System - No Fuel - by feartonyb - 30.10.2015, 16:56
Re: Fuel System - No Fuel - by Scottylad - 31.10.2015, 00:51

Forum Jump:


Users browsing this thread: 2 Guest(s)