03.09.2009, 07:41
You could do a Temporary Fix till it might be added
WARNING! This is just an Alternative and isn't ensured to work the way you want!
Top of your script:
Somewhere in your code:
Your new functions:
SetPlayerSkillLevelEx(playerid, skill, level, mode);
playerid - The playerid you want to EDIT the Skill level of.
skill - The Skill ID you want to change [Check https://sampwiki.blast.hk/wiki/Skillweapons for more info]
level - The Skill level the player skill should be from 0-1000
__________________________________________________ __________________________________________________ ___
GetPlayerSkillLevelEx(playerid, skill);
playerid The playerid you to to GET the Skill level of.
skill - The Skill ID you want to get [Check https://sampwiki.blast.hk/wiki/Skillweapons for more info]
enjoy
WARNING! This is just an Alternative and isn't ensured to work the way you want!
Top of your script:
pawn Код:
new WeaponSkill[MAX_PLAYERS][11];
pawn Код:
stock SetPlayerSkillLevelEx(playerid, skill, level)
{
if(IsPlayerConnected(playerid))
{
SetPlayerSkillLevel(playerid, skill, level);
WeaponSkill[playerid][skill] = level;
}
return 1;
}
stock GetPlayerSkillLevelEx(playerid, skill)
{
if(IsPlayerConnected(playerid))
{
new skillStr[128];
format(skillStr, sizeof(skillStr), "Current Stats for Skill Level %d | Skill level: %d", skill, WeaponSkill[playerid][skill]);
SendClientMessage(playerid, 0xFFFFFFFF, skillStr);
}
return 1;
}
SetPlayerSkillLevelEx(playerid, skill, level, mode);
playerid - The playerid you want to EDIT the Skill level of.
skill - The Skill ID you want to change [Check https://sampwiki.blast.hk/wiki/Skillweapons for more info]
level - The Skill level the player skill should be from 0-1000
__________________________________________________ __________________________________________________ ___
GetPlayerSkillLevelEx(playerid, skill);
playerid The playerid you to to GET the Skill level of.
skill - The Skill ID you want to get [Check https://sampwiki.blast.hk/wiki/Skillweapons for more info]
enjoy
