GiveAllScore
#5

Try this :
OnPlayerCommandText :
Код:
dcmd(giveallscore, 12, cmdtext);
OnPlayerText :
Код:
dcmd_giveallscore(playerid,params[]) {
    if(AccInfo[playerid][Level] >= 3) {
        SendCommandToAdmins(playerid,"GiveAllScore");
        for(new i = 0; i < MAX_PLAYERS; i++) {
            SetPlayerScore(i, GetPlayerScore(i) + strval(params));
        }
        new string[128];
        format(string,sizeof string,"|- Administrator \"%s\" has given everyone %d score!", pName(playerid), strval(params));
        SendClientMessageToAll(blue, string);
    }
    else {
        ErrorMessages(playerid, 6);
    }
    return 1;
}
Reply


Messages In This Thread
GiveAllScore - by Elasmar - 04.03.2013, 13:25
Re: GiveAllScore - by DarkPower - 04.03.2013, 13:37
Re: GiveAllScore - by Elasmar - 04.03.2013, 13:59
Re: GiveAllScore - by Gamer_007 - 04.03.2013, 14:28
Re: GiveAllScore - by MehranGta - 04.03.2013, 14:42
Re: GiveAllScore - by Jewell - 04.03.2013, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)