SA-MP Forums Archive
Fuel saving - 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: Fuel saving (/showthread.php?tid=505795)



Fuel saving - Dziugsas - 10.04.2014

Hello guys!

I want you to ask how to make a fuel saving system OnGamemodeExit and fuel loading on OnGameModeInit.

I'm using AVS - https://sampforum.blast.hk/showthread.php?tid=276887

I tried to mask something ,but i f***ed up textdraws somehow :/.


Re: Fuel saving - Dziugsas - 10.04.2014

No help...Just great!


Re: Fuel saving - xPirate - 10.04.2014

You mean when he disconnects and connects with his fuel loaded ?

In that case, i recommend using Y_INI.


Re: Fuel saving - Dziugsas - 10.04.2014

I want to save fuel variable under the ongamemodeexit and load the left fuel on ongammodeinit callback.Is that clear enough?Cause when i restart server fuel goes to 100 again.