/admins in Dialog
#1

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.

Код:
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;
	}
Regards *******12
Reply


Messages In This Thread
/admins in Dialog - by Youtube12 - 24.11.2012, 19:05
Re: /admins in Dialog - by park4bmx - 24.11.2012, 19:14
AW: /admins in Dialog - by Youtube12 - 24.11.2012, 19:23
AW: /admins in Dialog - by Skimmer - 24.11.2012, 19:33
AW: /admins in Dialog - by Youtube12 - 24.11.2012, 20:03
Re: /admins in Dialog - by Maikkk - 24.11.2012, 20:12
AW: /admins in Dialog - by Youtube12 - 24.11.2012, 20:23
Re: /admins in Dialog - by Maikkk - 27.11.2012, 09:02

Forum Jump:


Users browsing this thread: 2 Guest(s)