SA-MP Forums Archive
Saving weapons with y_ini - 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: Saving weapons with y_ini (/showthread.php?tid=451040)



Saving weapons with y_ini - martoivanov - 15.07.2013

Can someone explain what to put in the script to save player's weapons?

Thanks in advance!

PS I am using this system - https://sampforum.blast.hk/showthread.php?tid=352703


Re: Saving weapons with y_ini - Bakr - 15.07.2013

Loop through each weapon slot and save it and the ammo as an integer within the file. For loading, load each weapon slot and give the player that weapon with the appropriate ammo count.


Re: Saving weapons with y_ini - martoivanov - 15.07.2013

Can you give me the code if it is not a problem


Re: Saving weapons with y_ini - Bakr - 15.07.2013

You can try asking at either of these places:

https://sampforum.blast.hk/showthread.php?tid=30938
https://sampforum.blast.hk/showthread.php?tid=447813

You can also try searching, as this question has been asked before.