SA-MP Forums Archive
[Pedido] /admins que mostre os reports lidos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] /admins que mostre os reports lidos (/showthread.php?tid=506613)



/admins que mostre os reports lidos - LeoPac - 13.04.2014

Preciso de um /admins que mostre os reprots lidos

O Meu como й
pawn Код:
dcmd_admins(playerid, params[])
{
    #pragma unused params

    if(Player[playerid][pLogged] == false)
        return SendClientMessage(playerid, COR_ERRO, "Vocк nгo estб logado!");

    SendClientMessage(playerid, COR_BARRAS, "** Todos os administradores online:");
    new AdmLevel[64];
    new count=0;
    new sztring[50];

    for(new i=0; i<MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i)) {
            if(Player[i][pLogged] == true) {
                if(Player[i][pAdministrador] >= 1) {

                    if(Player[i][pAdministrador] == 5) { AdmLevel = "Game Master"; }
                    if(Player[i][pAdministrador] == 4) { AdmLevel = "Sub Game Master"; }
                    if(Player[i][pAdministrador] == 3) { AdmLevel = "Adminstrador Fixo"; }
                    if(Player[i][pAdministrador] == 2) { AdmLevel = "Level Avaliaзгo"; }
                    if(Player[i][pAdministrador] == 1) { AdmLevel = "Level Teste"; }


                    format(sztring, sizeof(sztring), CONTAS, getPName(i));

                    if(Player[i][pAdministrador] == 1 || Player[i][pAdministrador] == 2 || Player[i][pAdministrador] == 3 || Player[i][pAdministrador] == 4 || Player[i][pAdministrador] == 5) {
                        SendFormattedMessage(playerid, 0xE3E3E3FF, "Admin %s [%s] [Funзгo: %s]", getPName(i), AdmLevel, DOF2_GetString(sztring, "FunзгoGM"));
                    } else SendFormattedMessage(playerid, 0xE3E3E3FF, "Admin %s [%s]", getPName(i), AdmLevel);

                    count++;
                }
            }
        }
    }

    if(count == 0)
        SendClientMessage(playerid, TEXTO, "Nгo tem nenhum admin on-line!");



    return 1;
}
Grato.