15.08.2011, 16:50
As far as I know there is no GetPlayerSkillLevel, so what I would do is create a variable that'll keep the skill level for example.
You can use any saving include (or plugin) like y_ini, mysql, sqlite
pawn Код:
new SAWNOFF_SKILL[MAX_PLAYERS]; //(don't use this, implement it how you want it).
public OnPlayerConnect(playerid)
{
//load the skill variable and store it inside 'SAWNOFF_SKILL[playerid]'
}
//then if you want to increase his skill level by one you simply do;
SAWNOFF_SKILL[playerid]++;
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, SAWNOFF_SKILL[playerid]);
//if you want to decrease his skill level you do;
SAWNOFF_SKILL[playerid]--;
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, SAWNOFF_SKILL[playerid]);
//when you want to save it you just store SAWNOFF_SKILL[playerid] in the players file

