[Pedido] /admin em dialog
#5

Quote:
Originally Posted by RodrigoMSR
View Post
Isso mostrarб os administradores RCON online:
Code:
CMD:radmins(playerid)
{
	new name[MAX_PLAYER_NAME], str[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                GetPlayerName(i, name, sizeof(name));
                if(str[0] == EOS) format(str, sizeof(str), "{00FF00}Administrador(es) RCON online:\n");
				format(str, sizeof(str), "%s\n{828282}%s (ID: %i)", str, name, i);
			}
		}
	}
	if(str[0] == EOS) format(str, sizeof(str), "{FF0000}Nenhum admin RCON online");
	ShowPlayerDialog(playerid, 3295, DIALOG_STYLE_MSGBOX, "RCON Admins", str, "Fechar", "");
	return 1;
}
vlw ae funcionou
Reply


Messages In This Thread
/admin em dialog - by MatheusFirmino - 12.12.2016, 21:53
Re: /admin em dialog - by MatheusFirmino - 13.12.2016, 21:39
Re: /admin em dialog - by Marllun - 13.12.2016, 21:48
Re: /admin em dialog - by RodrigoMSR - 13.12.2016, 22:48
Re: /admin em dialog - by MatheusFirmino - 13.12.2016, 22:54

Forum Jump:


Users browsing this thread: 1 Guest(s)