Posts: 175
Threads: 44
Joined: Oct 2015
Reputation:
0
Hey, Can anyone tell me a way to save a players original weapons before /onduty and give them back at /offduty ?
I was successful with everything including health, armour, skin , color, and team but not weapons. Any help would be appreciated.
Posts: 1,506
Threads: 13
Joined: Jun 2015
GetPlayerWeaponData, a loop of 12, and a 2-dimensional variable with-in a global array:
EDIT: This should help you out:
http://forum.sa-mp.com/showpost.php?...99&postcount=2
Posts: 1,506
Threads: 13
Joined: Jun 2015
In an indirect way you're telling me to give you the code for it, which I won't, the thread which I linked you to, already explains and does that, you just need to change the variable to global from local. And if you still don't get what local and global variables are, then I'm sorry but you need to read the SA-MP wiki.
Posts: 484
Threads: 189
Joined: Jun 2016
Reputation:
0
@Uvais, this section was made to help peoples for their bad/miss.u of code. Not to code for them.