SA-MP Forums Archive
[HELP]fuel timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]fuel timer (/showthread.php?tid=559037)



[HELP]fuel timer - Luca12 - 20.01.2015

How can I add in fuel timer if vehicle is bycle like bmx or mountain bike then for those vehicle then timer won't lower if you know what I mean? Thanks


Re: [HELP]fuel timer - Schneider - 20.01.2015

Use GetVehicleModel to see if the players vehicle is any of the non-fuel vehicles.


Re: [HELP]fuel timer - Luca12 - 20.01.2015

is it something like

new vid = GetPlayerVehicleID(playerid);
if(!IsNonFuelVehicle(vid)) continue;


Re: [HELP]fuel timer - Schneider - 20.01.2015

Yeah, although using an exclamation-mark and 'NonFuel' is a double-negative, so you should remove the exclamation-mark (!)