19.04.2010, 11:14
MA SUFOCI PSIHIC
uite comanda ma,dai la toti ce scor vrei tu,tam dat'o de acu 10 posturi,esti chiar sau ce pwla ma ca ma ia cu nervi,dai /giveallscore scor si da la TOTI SCOR,CE E ASA DE GREU MA?DOAR PUI IN LADMIN si GATA x(((((((((((((((((((((((((((((((((((((((((((((((99 9999
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;
}