24.11.2012, 19:05
Hi guys, who can help me with this cmd?
When I type /admins, its shows me a dialog with all admins
I already have the script but its shows only 1 Admin, if there are 2 Admins in the server, its shows only 1 Admin.
Regards *******12
When I type /admins, its shows me a dialog with all admins
I already have the script but its shows only 1 Admin, if there are 2 Admins in the server, its shows only 1 Admin.
Код:
if (strcmp(cmd, "/admins", true) == 0) { new count = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(AccountInfo[i][AdminLevel] >= 1 && AccountInfo[i][AdminLevel] <= 5 && Hide[i] == 0) { new playername[MAX_PLAYER_NAME]; GetPlayerName(i, playername, sizeof(playername)); format(string, 128, "%s Level: %d\n",playername,AccountInfo[i][AdminLevel]); ShowPlayerDialog(playerid,2563,DIALOG_STYLE_LIST,"Admins Online:",string,"OK",""); count++; } } } if (count == 0) SendClientMessage(playerid,LILA,"Server: No Admins online yet."); return true; }