[Ajuda] Comando nгo surte efeito
#4

pawn Код:
CMD:admins(playerid, params[])
{
    new DialogThiago[1200];
    for(new i = 0; i <= MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerDados[i][Escondido] == false)
            {
                if(PlayerDados[i][Admin] == 2) AdminNivel = "2";
                if(PlayerDados[i][Admin] == 3) AdminNivel = "3";
                if(PlayerDados[i][Admin] == 4) AdminNivel = "4";
                if(PlayerDados[i][Admin] == 5) AdminNivel = "5";
                if(PlayerDados[i][Escondido] == false)
                {
                if(PlayerDados[i][Admin] > 1)
                    {
                        format(String, 300, "   {009DFF}[ID:%i] - {FFFFFF}%s{009DFF} - [Nнvel: %s]\n", i, Nome(i), AdminNivel); // Add the name of the admin-player to the list
                        strcat(DialogThiago, String);
                    }
                }
            }
        }
    }
    if (strlen(DialogThiago) > 0)
        ShowPlayerDialog(playerid, 9000, DIALOG_STYLE_MSGBOX, "{FF0000}Administradores Online", DialogThiago, "Fechar", ""); // Depois Mude se quiser ^^
    else
        SendClientMessage(playerid, BRANCO, "{FF0000}Administraзгo offline no momento !"); // No admins are online
       
    return true;
}
Caso de erro, substitua de acordo com seu Script!
Reply


Messages In This Thread
Comando nгo surte efeito - by duuuwh - 04.03.2013, 05:17
Re: Comando nгo surte efeito - by mau.tito - 04.03.2013, 08:43
Re: Comando nгo surte efeito - by duuuwh - 04.03.2013, 14:29
Re: Comando nгo surte efeito - by feliphemort - 04.03.2013, 19:45

Forum Jump:


Users browsing this thread: 2 Guest(s)