Saving Weapons - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Saving Weapons (
/showthread.php?tid=75539)
Saving Weapons -
r0v3r - 02.05.2009
hey guys i need to know how do i save my weapons which i had before leaving the game and if possible to spawn in my last coordinates. Is MySQL needed
Re: Saving Weapons -
HB - 02.05.2009
No, MySQL isn't really needed. You can use multiple databases, which save stuff - in this case weapons - into files.
The best is to use the standard file functions of SA-MP, since these are the fastest. Read the tutorial
here.
Re: Saving Weapons -
gpclan - 03.05.2009
On your AddPlayerclass u know the end 0,0,0,0,0,0);
well this the weapons i want i just do this
AddPlayerClass(111,-2114.8059,-225.9425,35.3203,65.1015,30,100,29,300,24,300); // mafia
30,100,29,300,24,300);
that part is the weapon part like 30 is ak47 list of weapon ids here and like 100 is the bullet
https://sampwiki.blast.hk/wiki/Weapons
Re: Saving Weapons -
Diler - 03.05.2009
http://pawno.pl/viewtopic.php?t=3388 ;]
Re: Saving Weapons -
HB - 03.05.2009
Quote:
Originally Posted by Gp-ClaN-Pd-Rp
On your AddPlayerclass u know the end 0,0,0,0,0,0);
well this the weapons i want i just do this
AddPlayerClass(111,-2114.8059,-225.9425,35.3203,65.1015,30,100,29,300,24,300); // mafia
30,100,29,300,24,300);
that part is the weapon part like 30 is ak47 list of weapon ids here and like 100 is the bullet
https://sampwiki.blast.hk/wiki/Weapons
|
He wants to save the weapons of the player at reconnect, not give basic weapons at spawn.
Quote:
Originally Posted by Diler
|
Thats Polish, I doubt he is.