Get Player weapon skill Level ? - 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: Get Player weapon skill Level ? (
/showthread.php?tid=381107)
Get Player weapon skill Level ? -
Benzke - 28.09.2012
Hello there,
Can anyone tell me how to Get player's weapon skill level.. I don't know how to do that..
I mean it comes like MP5(Level : ) n' stuff also how to do the loading/saving stuff for Skill Levels ?
Re: Get Player weapon skill Level ? -
Cameltoe - 28.09.2012
Read here:
https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel
I can't find an GetPlayerSkillLevel function, so your best shot is to create one yourself and then use SetPlayerSkillLevel to set the level.
Example:
pawn Код:
new PSkill[MAX_PLAYERS];
When the player levels up, PSkill[playerid]++;
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, PSkill[playerid]);