/admins in dialog
#1

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
Reply
#2

No one know??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)