SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/10/2014, 04:31 AM   #1
GwENiko
Big Clucker
 
Join Date: Jan 2013
Posts: 130
Reputation: 2
Default How to store all the player's weapon to give it to him later?

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.
GwENiko is offline   Reply With Quote
Old 16/10/2014, 04:56 AM   #2
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,701
Reputation: 1177
Default Re: How to store all the player's weapon to give it to him later?

http://forum.sa-mp.com/showthread.php?t=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. -
http://forum.sa-mp.com/showthread.php?t=420363

There are also other ways to save player's weapons but if you're using SQL, the ones I linked you suits better.
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Give another player a weapon help Gus_Stone Scripting Help 0 30/03/2014 02:00 AM
How to give player weapon on connect ? Le3aT Scripting Help 3 14/11/2013 06:11 PM
Safe Player Give weapon? Is it possible RicaNiel Scripting Help 4 16/02/2012 01:32 PM
Give Player Weapon Gooday Scripting Help 4 04/12/2011 07:46 PM
How to give a player weapon id 0? Tee Help Archive 6 07/03/2011 01:07 AM


All times are GMT. The time now is 04:59 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.