giving scores to noobies
#1

giving scores to people with less than 100 scores.

cmd: /givenoobscore [number of score]
If they have over 100 scores, they wont receieve it.
Reply
#2

Well, can we see what you've tried?
Reply
#3

pawn Код:
if(GetPlayerScore(noobplayerid) < 100) {
    SetPlayerScore(noobplayerid,amountofscore);
}
Reply
#4

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)