Posts: 18
Threads: 6
Joined: Jul 2008
Reputation:
0
I just see this great function, but is there any way to get the player Skill level in the weapon?
I want to give more skill points after kill someone...
Is it possible?
I haven't found any Getplayerskilllevel yet xD
Posts: 6,129
Threads: 36
Joined: Jan 2009
Using Tashla's code, add it to OnPlayerDeath;
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == 22)
{
new skill;
skill = WeaponSkill[playerid][0]+100;
SetPlayerSkillLevelEx(killerid, WEAPONSKILL_PISTOL, skill)
}
}
Or something like above,
Remember: The skill IDs are NOT the same as the weapon IDs, see the wiki page for SetPlayerSkillLevel.
Quote:
Originally Posted by Moustafa
0 = poor
100-300 = gangster
400-600 =  ?
700-1000 = hitman
|
400-600 = Thug, I think.