Colt 45 held with both hands
#2

What you have to do is simply change the SkillLevel of a certain player.
Maybe you should try to make a command to start with..

ZCMD
pawn Code:
CMD:skill(playerid, params[])
{
    SetPlayerSkillLevel(playerid, 0, 5); // The 0 here stand for the Skill: WEAPONSKILL_PISTOL
    return 1;
}
Strcmp
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/skill", true) == 0)
    {
        SetPlayerSkillLevel(playerid, 0, 5);
        return 1;
    }
    return 0;
}
These are the ID's of the Weapon skills:
pawn Code:
0 - WEAPONSKILL_PISTOL
1 - WEAPONSKILL_PISTOL_SILENCED
2 - WEAPONSKILL_DESERT_EAGLE
3 - WEAPONSKILL_SHOTGUN
4 - WEAPONSKILL_SAWNOFF_SHOTGUN
5 - WEAPONSKILL_SPAS12_SHOTGUN
6 - WEAPONSKILL_MICRO_UZI
7 - WEAPONSKILL_MP5
8 - WEAPONSKILL_AK47
9 - WEAPONSKILL_M4
10 - WEAPONSKILL_SNIPERRIFLE
The format of the function: SetPlayerSkillLevel is:
Code:
SetPlayerSkillLevel(playerid, ID_WEAPONSKILL, Skill_level);
Reply


Messages In This Thread
Colt 45 held with both hands - by Escapist - 08.04.2014, 08:16
Re: Colt 45 held with both hands - by AndySedeyn - 08.04.2014, 08:21
Re: Colt 45 held with both hands - by Escapist - 08.04.2014, 08:25
Re: Colt 45 held with both hands - by AndySedeyn - 08.04.2014, 08:28
Re: Colt 45 held with both hands - by Ari - 08.04.2014, 09:08
Re: Colt 45 held with both hands - by Escapist - 08.04.2014, 09:19
Re: Colt 45 held with both hands - by KhaledElkhourashi - 08.04.2014, 09:31
Re: Colt 45 held with both hands - by Escapist - 08.04.2014, 09:57

Forum Jump:


Users browsing this thread: 1 Guest(s)