SA-MP Forums Archive
SetPlayerSkillLevel - 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: SetPlayerSkillLevel (/showthread.php?tid=309523)



SetPlayerSkillLevel - SnG.Scot_MisCuDI - 08.01.2012

Im trying to make it so when the player joins it auto gives them full weapon skill. But it wont give them it. I made a cmd to give and it works.
pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1000);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1000);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1000);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1000);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1000);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1000);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1000);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1000);
    return 1;
}



Re: SetPlayerSkillLevel - BlackWolf120 - 08.01.2012

as far as i know you cant set this kinda skill for a player correctly on OnPlayerConnect.
Using it under OnPlayerSpawn works fine for me.


Re: SetPlayerSkillLevel - SnG.Scot_MisCuDI - 08.01.2012

i also tried that and it didnt work.


Re: SetPlayerSkillLevel - BlackWolf120 - 08.01.2012

have u also tried to set it after every spawn?
If this also does not work then i cant help you sorry.
Cause for me it works like a charm using it under OnPlayerSpawn.