dcmd_giveallscore(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 10) {
if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /giveallscore [Amount]");
new var = strval(params), string[128];
CMDMessageToAdmins(playerid,"GIVEALLSCORE");
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
PlayerPlaySound(i,1057,0.0,0.0,0.0);
GivePlayerScore(i,var);
}
}
format(string,sizeof(string),"Administrator \"%s\" has given all players 'score%d'", pName(playerid), var );
return SendClientMessageToAll(blue, string);
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
Question
[XSR]NexT
deci uitati imi da urmatoarea eroare
dar oare ce am gresit uitati si comandadcmd_giveallscore(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 10) { if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /giveallscore [Amount]"); new var = strval(params), string[128]; CMDMessageToAdmins(playerid,"GIVEALLSCORE"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { PlayerPlaySound(i,1057,0.0,0.0,0.0); GivePlayerScore(i,var); } } format(string,sizeof(string),"Administrator \"%s\" has given all players 'score%d'", pName(playerid), var ); return SendClientMessageToAll(blue, string); } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command"); }sper sa ma puteti ajuta
3 answers to this question
Recommended Posts