Saving Weapons
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

http://pawno.pl/viewtopic.php?t=3388 ;]
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)