SA-MP Forums Archive
onplayer death - 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)
+--- Thread: onplayer death (/showthread.php?tid=414880)



onplayer death - blackdragon1 - 10.02.2013

in my script player death so they lose weapon any idea? i dnt want they lose it and wanted lvl will be 0 and i dnt want wanted lvl will be 0 i want what weapons they had and wanted lvl too.


Re: onplayer death - Jstylezzz - 10.02.2013

Save the for example the wanted level, like, new Wantedlevel[MAX_PLAYERS];
Then, under onplayerdeath, get the wantedlevel variable, and save it to Wantedlevel[playerid].
Then, OnPlayerSpawn, set the players wanted level, with the amount of the saved Wantedlevel[playerid].
Do this for the weapons, and you're done.


Re: onplayer death - blackdragon1 - 10.02.2013

thanks my sexy bitch. +rep for you're ass.


Re: onplayer death - HUYA - 10.02.2013

Wow!
Is a number of doctor: 052656492