SetPlayerSkillLevel
#1

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;
}
Reply
#2

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.
Reply
#3

i also tried that and it didnt work.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)