SA-MP Forums Archive
How to store all the player's weapon to give it to him later? - 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: How to store all the player's weapon to give it to him later? (/showthread.php?tid=541991)



How to store all the player's weapon to give it to him later? - GwENiko - 16.10.2014

Well the title speaks for itself. I would appreciate to know how can check all the players weapon and store his weapons inside a variable and give it back to him after he spawns.


Re: How to store all the player's weapon to give it to him later? - Lordzy - 16.10.2014

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

The above link is a tutorial of saving weapons but before reading that, you should read about MySQL table structures and foreign keys which were used on the above tutorial. -
https://sampforum.blast.hk/showthread.php?tid=420363

There are also other ways to save player's weapons but if you're using SQL, the ones I linked you suits better.