31.10.2012, 21:06
Is there a way to make SetPlayerSkillLevel add weapon levels to what the player alreadly has? like if the player has a Sawnoff skill level of 200 it can add 200 and make it 400.
enum pWeapons
{
SawnOff
//and others weapons name here
};
new WeaponSelect[pWeapons];
CMD:sawnoff(playerid, params[])
{
new amount;
new giveplayerid;
if (sscanf(params, "ui", giveplayerid, amount)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /sawnoff<playerid/name> <amount>");
SetPlayerSkillLevel(giveplayerid,WEAPONSKILL_SAWNOFF_SHOTGUN,WeaponSelect[SawnOff]+ amount);
return 1;
}