16.09.2013, 15:56
Let's see the parameters:
SetPlayerSkillLevel(playerid, skill, level);
playerid - The ID of the player to set the weapon skill of.
skill - The weapon type you want to set the skill of.
level - The skill level to set for that weapon, ranging from 0 to 999. (A level out of range will max it out)
Weapon Types: (a.k.a skill)
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
So, let's get started again.
Was it so difficult?
SetPlayerSkillLevel(playerid, skill, level);
playerid - The ID of the player to set the weapon skill of.
skill - The weapon type you want to set the skill of.
level - The skill level to set for that weapon, ranging from 0 to 999. (A level out of range will max it out)
Weapon Types: (a.k.a skill)
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
So, let's get started again.
pawn Код:
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
// playerid - the player
// skill - WEAPONSKILL_MICRO_UZI (tec9)
// level - 999 (max)


