[AJUDA] Comando /admins
#1

Bem preciso de uma pequena ajuda, estou a criar um comando onde possa ver os admins que estao online, o comando compila, mas quando dou /admins no server, os nomes dos admins nao aparecem...

Linha de cуdigo:
Код:
CMD:admins(playerid, params[])
  {
        new str[600], name[MAX_PLAYER_NAME], Nivel[10];
        new contadoradm = 0;
        if(Login[playerid] == 0) return SendClientMessage(playerid, COR_BORDO, "[PT Life] Vocк nгo estб logado.");
        SendClientMessage(playerid, 0xFFF600FF, "|_________ Admins Online _________|");
        for (new i = 0; i < MAX_PLAYERS; i++)
        {
            if(PlayerInfo[i][pAdmin] == 0) return true;
            if(!IsPlayerConnected(i)) return true;
            if(PlayerInfo[i][pAdmin] == 1) Nivel = "nнvel 1";
            if(PlayerInfo[i][pAdmin] == 2) Nivel = "nнvel 2";
            if(PlayerInfo[i][pAdmin] == 3) Nivel = "nнvel 3";
            if(PlayerInfo[i][pAdmin] == 4) Nivel = "nнvel 4";
            if(PlayerInfo[i][pAdmin] == 5) Nivel = "nнvel 5";
            if(PlayerInfo[i][pAdmin] == 6) Nivel = "GOD";
            if(PlayerInfo[i][pAdmin] > 0){
            GetPlayerName(i, name, 24);
            format(str, sizeof str ,"Administrador %s: %s\r\n", Nivel, name);
            SendClientMessage(playerid, 0xFFFFFFFF, str);
            contadoradm++;
            }
        }
        if(contadoradm == 0) return SendClientMessage(playerid, 0x0000BBAA, "Nгo hб adminitradores online no momento!");
        return 1;
    }
Nao sou muito experiente em pawno, podemos dizer que sou mediano xd

@EDIT: O contadoradm, tambem nao funfa, se nao tiver qualquer adm online, aparece |_________ Admins Online _________|
Reply


Messages In This Thread
[AJUDA] Comando /admins - by Cheleber_Pausini - 23.06.2014, 10:09
Re: [AJUDA] Comando /admins - by CrazyHelp - 23.06.2014, 11:14
Re: [AJUDA] Comando /admins - by Cheleber_Pausini - 23.06.2014, 11:30
Re: [AJUDA] Comando /admins - by Cheleber_Pausini - 23.06.2014, 12:52
Re: [AJUDA] Comando /admins - by Cheleber_Pausini - 23.06.2014, 13:54
Re: [AJUDA] Comando /admins - by DarkBr - 07.03.2017, 00:36
Re: [AJUDA] Comando /admins - by Cheleber_Pausini - 07.03.2017, 01:00

Forum Jump:


Users browsing this thread: 1 Guest(s)