[Ajuda] /admins em Dialog
#1

Tentei colocar o /admins na Dialog, mas sу tб mostrando o ultimo admin conectado e nгo todos online.


aqui estб o cуdigo.

Код:
CMD:admins(playerid)
{
   	new file[60], Count;
 	each(Players->new i)
	{
	    if(Player[i][pLogged])
		{
			if(Player[i][pAdmin] != 0)
			{
				new s[128];
				new format_string[128];
			        Count++;
				format(file, sizeof(file), CONTAS, GetPlayerNameEx(i));
				if(Player[i][pAdmin] > 3)
				{
					//SendFormattedMessage(playerid, -1, "%d. {%06x}%s {FFFFFF}(%s) Funзгo: (%s)", VBCount, GetPlayerColor(i) >>> 8, GetPlayerNameEx(i), AccountName(i), DOF2_GetString(file, "FunзгoGM"));
    				strcat(s, "Nome\tCargo\tReports Lidos\tFunзгo\n");
					format(format_string, 128, "%d. {%06x}%s {FFFFFF}\t(%s)\t - \t(%s)", Count, GetPlayerColor(i) >>> 8, GetPlayerNameEx(i), AccountName(i), DOF2_GetString(file, "FunзгoGM"));
					strcat(s, format_string);
					ShowPlayerDialog(playerid, 998, DIALOG_STYLE_TABLIST_HEADERS, "Admins Online", s, "Fechar", "");
				}
				if(Player[i][pAdmin] <= 3)
                {
	  				strcat(s, "Nome\tCargo\tReports Lidos\tFunзгo\n");
					format(format_string, sizeof format_string, "%d. {%06x}%s {FFFFFF}\t(%s) \t(%d)\t -", Count, GetPlayerColor(i) >>> 8,GetPlayerNameEx(i), AccountName(i), Player[i][Reportslidos]);
					strcat(s, format_string);
					ShowPlayerDialog(playerid, 998, DIALOG_STYLE_TABLIST_HEADERS, "Admins Online", s, "Fechar", "");
				}
			}
		}
	}
	if(Count == 0) SendClientMessage(playerid, TEXTO, "Nгo hб administradores online!");
	return true;
}
Alguйm ajuda ?
Reply


Messages In This Thread
/admins em Dialog - by Firezl - 17.10.2017, 00:41
Re: /admins em Dialog - by Don_Speed - 17.10.2017, 19:00
Re: /admins em Dialog - by Firezl - 18.10.2017, 04:40
Re: /admins em Dialog - by DelK - 18.10.2017, 22:14
Re: /admins em Dialog - by Firezl - 20.10.2017, 03:10
Re: /admins em Dialog - by SammyJ - 20.10.2017, 03:26
Re: /admins em Dialog - by VinteDois - 20.10.2017, 03:41
Re: /admins em Dialog - by Firezl - 20.10.2017, 04:43

Forum Jump:


Users browsing this thread: 1 Guest(s)