Weapon 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: Weapon Saving (
/showthread.php?tid=599992)
Weapon Saving -
eikzdej - 02.02.2016
Hi! Is is possible to save the character's weapon even the ammo is already 0? If yes, how? I'm using SQL for saving Weapons Data. Thanks!
Re: Weapon Saving -
Sheperc - 02.02.2016
It's possible, you just need to create a system for it - like an inventory or something to store the guns that the player has without ammo, and then save it through the SQL.
Re: Weapon Saving -
Mencent - 02.02.2016
When weapons doesn't have ammo then the player has not the weapon.

But, I think you can use this function to end your idea.
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData