22.09.2013, 22:27
Using ZCMD:
pawn Код:
CMD:givenoobscore(playerid,params[])
{
new targetid,score;
if(sscanf(params,"ui",targetid,score)) return SendClientMessage(playerid,-1,"USAGE: /givenoobscore [Playerid/PartOfName] [score]");
new targetscore = GetPlayerScore(targetid);
if(targetscore >= 100) return SendClientMessage(playerid,-1,"ERROR: Player already is or above a score of 100!");
else
{
SetPlayerScore(targetid,score);
}
return 1;
}