29.04.2012, 07:22
try this:
pawn Код:
dcmd_giveallscore(playerid,params[])
{
if(AccInfo[playerid][Level] >= 3)
{
SendCommandToAdmins(playerid,"ScoreAll");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel])
{
SetPlayerScore(i, strval(params));
}
}
new string[128];
format(string,sizeof(string),"|- Administrator \"%s\" has set all players score to %d -|", pName(playerid),strval(params));
return SendClientMessageToAll(blue, string);
}
else return ErrorMessages(playerid, 6);
}