SA-MP Forums Archive
/admins in dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /admins in dialog (/showthread.php?tid=412994)



/admins in dialog - Youtube12 - 03.02.2013

Hi guys I want to make my /admins command with Dialog (ShowPlayerDialog).

My code
Код:
	if (strcmp(cmd, "/admins", true) == 0) // Admin list if they're online
	{
	    new count = 0;
		SendClientMessage(playerid, GRUEN, "[Online Admins]");
		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, "Level %d [%i]%s", AccountInfo[i][AdminLevel],i,playername);
     				        SendClientMessage(playerid, HELLGRUEN, string);
					count++;
				}
			}
		}
		if (count == 0) SendClientMessage(playerid,LILA,"Server: No Admins online yet.");
		return true;
	}
Regards *******12


AW: /admins in dialog - Youtube12 - 03.02.2013

No one know??