[Ajuda] Nгo conta...'
#1

Pessoal fiz um comando de /admins
Mas o problema й que ele Sу aprece 1 admin.
ou seja caso tenha 3 admin ele Somente aparece 1

pawn Код:
YCMD:admins(playerid,params[],ajuda)
{
    #pragma unused ajuda
    new Count, Admins[128],Levels[50],Trabalhos[100];
    Loop(i,MAX_PLAYERS)
    {
        if(IsPlayerConnected(i))
        {
            if(Player[i][Admin] > 0)
            {
                if(Player[i][Admin] == 1) Levels = "Tester";
                if(Player[i][Admin] == 2) Levels = "Auxiliar";
                if(Player[i][Admin] == 3) Levels = "Sub-Admin";
                if(Player[i][Admin] == 4) Levels = "Admin";
                if(Player[i][Admin] == 5) Levels = "Dono";
                if(Player[i][Trabalho] == false) Trabalhos = "Jogando";
                if(Player[i][Trabalho] == true) Trabalhos = "Trabalhando";
                format(Admins,sizeof(Admins),"{FEFEFE}Admins: {23FF00}%s  {FEFEFE}Level: {23FF00}%s   {FEFEFE}Server: {23FF00}%s",Nome(i),Levels,Trabalhos);
                ShowPlayerDialog(playerid,9999,DIALOG_STYLE_MSGBOX,"{FEFEFE}Admins",Admins,"Confirmar","");
                Count++;
            }
        }
        else if(Count == 0) return SendClientMessage(playerid,0xFF6400FF,"Nгo a Admins Online");
    }
    Count = 0;
    return 1;
}
Reply
#2

pawn Код:
YCMD:admins(playerid,params[],ajuda)
{
    #pragma unused ajuda
    new Count, Admins[512],Levels[50],Trabalhos[100];
    Loop(i,MAX_PLAYERS)
    {
        if(IsPlayerConnected(i))
        {
            if(Player[i][Admin] > 0)
            {
                if(Player[i][Admin] == 1) Levels = "Tester";
                if(Player[i][Admin] == 2) Levels = "Auxiliar";
                if(Player[i][Admin] == 3) Levels = "Sub-Admin";
                if(Player[i][Admin] == 4) Levels = "Admin";
                if(Player[i][Admin] == 5) Levels = "Dono";
                if(Player[i][Trabalho] == false) Trabalhos = "Jogando";
                if(Player[i][Trabalho] == true) Trabalhos = "Trabalhando";
                if(Count == 1) format(Admins,sizeof(Admins),"{FEFEFE}Admin: {23FF00}%s  {FEFEFE}Level: {23FF00}%s   {FEFEFE}Server: {23FF00}%s",Nome(i),Levels,Trabalhos);
                else format(Admins,sizeof(Admins),"%s\n{FEFEFE}Admin: {23FF00}%s  {FEFEFE}Level: {23FF00}%s   {FEFEFE}Server: {23FF00}%s",Admins,Nome(i),Levels,Trabalhos);Count++;
            }
        }
        else if(Count == 0) return SendClientMessage(playerid,0xFF6400FF,"Nгo a Admins Online");
    }
    ShowPlayerDialog(playerid,9999,DIALOG_STYLE_MSGBOX,"{FEFEFE}Admins",Admins,"Confirmar","");
    Count = 0;
    return 1;
}
Vк se vai agora.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)