Save weapons if a player disconnected
#1

Hey,

My Question:
I would like that the weapons of the players in will be saved.
I have search but I found nothing
I have looked here: https://sampwiki.blast.hk/wiki/GetPlayer...o3WaacSOUYLA7Q But I do not really understand

Can anybody explain me how i can make this? :P

Reply
#2

You need to loop through all 13 slots of weapons, get the weapon data for each, check if weaponid is not 0, and then save the weapon id and ammo to a file.
Reply
#3

Quote:
Originally Posted by player007
You need to loop through all 13 slots of weapons, get the weapon data for each, check if weaponid is not 0, and then save the weapon id and ammo to a file.
i dont understand

Can you type the code quickly? Maybe then I understand?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)