giveallscore - Page 2
#13

La OnPlayerCommandText:
dcmd(giveallscore,12,cmdtext);

//inainte de "dcmd_setscore" pui asta:
pawn Code:
dcmd_giveallscore(playerid,params[])
{
    if(PlayerInfo[playerid][Level] >= 4) {
      new tmp[256], Index; tmp = strtok(params,Index);
      if(!strlen(tmp) || !IsNumeric(tmp)) return SendClientMessage(playerid, red, "USAGE: /giveallscore [score]");
        new score = strval(tmp), string[128];
        CMDMessageToAdmins(playerid,"giveallscore");
        for(new i;i<GetMaxPlayers();i++)
        {
        SetPlayerScore(i,GetPlayerScore(i)+score);
        }
        format(string,128,"Administratorul %s va dat la toti %d score...",pName(playerid),score);
    } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
    return 1;
}
Reply


Messages In This Thread
Re: giveallscore - by r2mv - 17.04.2010, 15:49
Re: giveallscore - by Farsek - 17.04.2010, 15:52
Re: giveallscore - by r2mv - 17.04.2010, 15:55
Re: giveallscore - by Zh3r0 - 17.04.2010, 15:57
Re: giveallscore - by r2mv - 17.04.2010, 15:58
Re: giveallscore - by Farsek - 17.04.2010, 16:04
Re: giveallscore - by r2mv - 17.04.2010, 16:04
Re: giveallscore - by r2mv - 17.04.2010, 16:06
Re: giveallscore - by Farsek - 17.04.2010, 16:07
Re: giveallscore - by r2mv - 17.04.2010, 16:16
giveallscore - by [NoV]LaZ - 17.04.2010, 16:40
Re: giveallscore - by r2mv - 17.04.2010, 16:42
Re: giveallscore - by Farsek - 18.04.2010, 05:23
Re: giveallscore - by r2mv - 18.04.2010, 06:28
Re: giveallscore - by Farsek - 18.04.2010, 12:36
Re: giveallscore - by r2mv - 18.04.2010, 18:35
Re: giveallscore - by Razvann - 18.04.2010, 18:52
Re: giveallscore - by Farsek - 19.04.2010, 11:14
Re: giveallscore - by r2mv - 20.04.2010, 10:59
giveallscore - by [NoV]LaZ - 20.04.2010, 11:01

Forum Jump:


Users browsing this thread: 6 Guest(s)