[Ajuda] Sem lideres online
#1

Galera,seguinte,eu estava dando os ultimos toques finais no GM,e testando localhost,ai quando peguei lider e dei /lideres nao esta aaparecendo,agora eu nao sei se й bug do /lideres ou do /darlider so sei que quando dei /lideres nao aparecia meu nome,Alguem poderia me ajudar,para ver se o comando esta tudo em ordem?

/lideres
pawn Код:
dcmd_lideres(playerid, params[])
    {
        #pragma unused params

        SendClientMessage(playerid, COLOR_YELLOW, "|-Brasil Second Life lideres presentes-|");
        for(new i = 0; i <= HighestID; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(Player[i][pAdmin] < 7)
                {
                    if(Player[i][pLeader] == TEAM_PM){format(thestring, 128, "(%d)Policia Militar: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_PM, thestring);}
                    if(Player[i][pLeader] == TEAM_PF){format(thestring, 128, "(%d)Policia Federal: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_PF, thestring);}
                    if(Player[i][pLeader] == TEAM_FA){format(thestring, 128, "(%d)Forcas Armadas: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_FA, thestring);}
                    if(Player[i][pLeader] == TEAM_BOMBE){format(thestring, 128, "(%d)Bombeiros: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_MEDICOS, thestring);}
                    if(Player[i][pLeader] == TEAM_BALLAS){format(thestring, 128, "(%d)Front Yard Ballas: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_BALLAS, thestring);}
                    if(Player[i][pLeader] == TEAM_GROOVE){format(thestring, 128, "(%d)Grove Street Families: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_GROOVE, thestring);}
                    if(Player[i][pLeader] == TEAM_PREF){format(thestring, 128, "(%d)Prefeito: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_PREF, thestring);}
                    if(Player[i][pLeader] == TEAM_HITMAN){format(thestring, 128, "(%d)Hitman: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_HITMAN, thestring);}
                    if(Player[i][pLeader] == TEAM_SANEWS){format(thestring, 128, "(%d)Reporter: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_SANEWS, thestring);}
                    if(Player[i][pLeader] == TEAM_LOWRIDERS){format(thestring, 128, "(%d)Lowrider: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_LOWRIDERS, thestring);}
                    if(Player[i][pLeader] == TEAM_VAGOS){format(thestring, 128, "(%d)Los Santos Vagos: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_VAGOS, thestring);}
                    if(Player[i][pLeader] == TEAM_BIKERS){format(thestring, 128, "(%d)MotorBikers: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_BIKERS, thestring);}
                    if(Player[i][pLeader] == TEAM_MUNICIPAL){format(thestring, 128, "(%d)Guarda Municipal: %s | Contato: %d.", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_MUNICIPAL, thestring);}
                    if(Player[i][pLeader] == TEAM_AZTECAS){format(thestring, 128, "(%d)Varrio Los Aztecas: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_AZTECAS, thestring);}
                    if(Player[i][pLeader] == TEAM_RUSSA){format(thestring, 128, "(%d)Mбfia Russa: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_RUSSA, thestring);}
                    if(Player[i][pLeader] == TEAM_YAKUZA){format(thestring, 128, "(%d)Mafia Yakuza: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_YAKUZA, thestring);}
                    if(Player[i][pLeader] == TEAM_DRIFTERS){format(thestring, 128, "(%d)Drifters: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_DRIFTERS, thestring);}
                    if(Player[i][pLeader] == TEAM_BLOODS){format(thestring, 128, "(%d)Bloods: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_BLOODS, thestring);}
                    if(Player[i][pLeader] == TEAM_CREEPS){format(thestring, 128, "(%d)Creeps: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_CREEPS, thestring);}
                    if(Player[i][pLeader] == TEAM_BOPE){format(thestring, 128, "(%d)BOPE: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_BOPE, thestring);}
                    if(Player[i][pLeader] == TEAM_ALQAEDA){format(thestring, 128, "(%d)Al-Qaeda: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_ALQAEDA, thestring);}
                    if(Player[i][pLeader] == TEAM_KINGS){format(thestring, 128, "(%d)King's: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_KINGS, thestring);}
                }
            }
        }
        return 1;
    }
/darlider
pawn Код:
dcmd_darlider(playerid, params[])
    {
        if(Player[playerid][pAdmin] < 6)
            return SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo tem permissгo para usar este comando!");

        new tmp[24], idx; tmp = strtok(params, idx);
        if(!strlen(tmp))
                return SendClientMessage(playerid, COLOR_GREY, "[USO] /darlider [id/nick] [Number(1-22)]");

        new level;
        new year, month,day;
        getdate(year, month, day);
        new hour,minuite,second;
        gettime(hour,minuite,second);
        new giveid = ReturnUser(tmp);
        tmp = strtok(params, idx);
        level = strval(tmp);
        if(level > 24 || level < 0)
            return SendClientMessage(playerid, COLOR_RED,"[ERRO] Nъmeros entre 1 e 24");

        if(IsPlayerConnected(giveid))
        {
            if(giveid != INVALID_PLAYER_ID)
            {
                if(Player[giveid][pMember] != 0)
                    return SendClientMessage(playerid, COLOR_LIGHTBLUE, "O jogador jб tem uma profissгo.");

                Player[giveid][pLeader] = level;
                if(Player[giveid][pAdmin] < 6)
                {
                    format(thestring, sizeof(thestring), "%s lhe deu o direito administracгo profissional, digite /rg.", Player[playerid][pName]);
                    SendClientMessage(giveid, COLOR_LIGHTBLUE, thestring);
                    format(thestring, sizeof(thestring), "%s й o novo lнder administrativo da ORG %s (%d).", Player[giveid][pName], OrgsNames[level], level);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, thestring);
                    new org[128];
                    format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[level]);

                    if(strcmp(dini_Get(org,OrgsCargos[0]),"Nenhum",true)!=0)
                        return SendClientMessage(playerid, COLOR_LIGHTBLUE, "A profissгo jб possui um lнder.");

                    if(level == 0) { Player[giveid][pChar] = 23; DelMembro(giveid); }
                    else if(level == 1) { SendClientMessageToAll(COLOR_PM, "Hб um novo lнder na Polнcia Militar, digite /lideres para mais informacхes."); Player[giveid][pChar] = 265; gTeam[giveid] = 2;} //Police Force
                    else if(level == 2) { SendClientMessageToAll(COLOR_PF, "Hб um novo lнder no Polнcia Federal, digite /lideres para mais informacхes."); Player[giveid][pChar] = 286; gTeam[giveid] = 2; } //FBI/ATF
                    else if(level == 3) { SendClientMessageToAll(COLOR_FA, "Hб um novo lнder no Exйrcito, digite /lideres para mais informacхes."); Player[giveid][pChar] = 287; gTeam[giveid] = 2;} //National Guard
                    else if(level == 4) { SendClientMessageToAll(COLOR_LIGHTBLUE, "Hб um novo lнder nos Bombeiros, digite /lideres para mais informacхes."); Player[giveid][pChar] = 279; gTeam[giveid] = 4;} //Fire/Ambulance
                    else if(level == 5) { SendClientMessageToAll(COLOR_BALLAS, "Hб um novo lнder nos Ballas, digite /lideres para mais informacхes."); Player[giveid][pChar] = 104; gTeam[giveid] = 7;} //Ballas
                    else if(level == 6) { SendClientMessageToAll(COLOR_GROOVE, "Hб um novo lнder na Grove, digite /lideres para mais informacхes."); Player[giveid][pChar] = 270; gTeam[giveid] = 7;} //Grove
                    else if(level == 7) { SendClientMessageToAll(COLOR_PREF, "Hб um novo Prefeito, digite /lideres para mais informacхes."); Player[giveid][pChar] = 147; gTeam[giveid] = 8;} //prefeito
                    else if(level == 8) { SendClientMessageToAll(COLOR_HITMAN, "Hб um novo lнder nos Assassinos, digite /lideres para mais informacхes."); Player[giveid][pChar] = 165; gTeam[giveid] = 8;} //M.I.
                    else if(level == 9) { SendClientMessageToAll(COLOR_SANEWS, "Hб um novo lнder nos Repуrteres, digite /lideres para mais informacхes."); Player[giveid][pChar] = 185; gTeam[giveid] = 9;} //News Reporters
                    else if(level == 10) { SendClientMessageToAll(COLOR_LOWRIDERS, "Hб um novo lнder nos Lowriders, digite /lideres para mais informacхes."); Player[giveid][pChar] = 47; gTeam[giveid] = 47;} //lowrider
                    else if(level == 12) { SendClientMessageToAll(COLOR_VAGOS, "Hб um novo lнder nos Vagos, digite /lideres para mais informacхes."); Player[giveid][pChar] = 108; gTeam[giveid] = 7;} //Los Santos Vagos
                    else if(level == 13) { SendClientMessageToAll(COLOR_BIKERS, "Hб um novo lнder nos MotorBikers, digite /lideres para mais informacхes."); Player[giveid][pChar] = 181; gTeam[giveid] = 7;} //motoqueiros
                    else if(level == 14) { SendClientMessageToAll(COLOR_MUNICIPAL, "Hб um novo lнder no Guarda Municipal, digite /lideres para mais informacхes."); Player[giveid][pChar] = 283; gTeam[giveid] = 14;} //Guarda Municipal
                    else if(level == 15) { SendClientMessageToAll(COLOR_AZTECAS, "Hб um novo lнder nos Aztecas, digite /lideres para mais informacхes."); Player[giveid][pChar] = 115; gTeam[giveid] = 7; } //Aztecas
                    else if(level == 16) { SendClientMessageToAll(COLOR_RUSSA, "Hб um novo lнder na Mafia Russa, digite /lideres para mais informacхes."); Player[giveid][pChar] = 272; gTeam[giveid] = 7; } //russa
                    else if(level == 17) { SendClientMessageToAll(COLOR_YAKUZA, "Hб um novo lнder na Yakuza, digite /lideres para mais informacхes."); Player[giveid][pChar] = 294; gTeam[giveid] = 7; } //yakusa
                    else if(level == 18) { SendClientMessageToAll(COLOR_WHITE, "Hб um novo lнder nos Drifters, digite /lideres para mais informacхes."); Player[giveid][pChar] = 292; gTeam[giveid] = 16; } //Drifters
                    else if(level == 19) { SendClientMessageToAll(COLOR_BLOODS, "Hб um novo lнder no Bloods, digite /lideres para mais informacхes."); Player[giveid][pChar] = 19; gTeam[giveid] = 16; } //Bloods
                    else if(level == 20) { SendClientMessageToAll(COLOR_CREEPS, "Hб um novo lнder no Creeps, digite /lideres para mais informacхes."); Player[giveid][pChar] = 293; gTeam[giveid] = 16; } //Creeps
                    else if(level == 21) { SendClientMessageToAll(COLOR_BOPE, "Hб um novo lнder no BOPE, digite /lideres para mais informacхes."); Player[giveid][pChar] = 285; gTeam[giveid] = 21; } //BOPE
                    else if(level == 22) { SendClientMessageToAll(COLOR_ALQAEDA, "Hб um novo lнder na Al-Qaeda, digite /lideres para mais informacхes."); Player[giveid][pChar] = 290; gTeam[giveid] = 22; } //Al-qaeda
                    else if(level == 23) { SendClientMessageToAll(COLOR_PCIVIL, "Hб um novo lнder na Policia Civil, digite /lideres para mais informacхes."); Player[giveid][pChar] = 67; gTeam[giveid] = 23;} //Policia Civil
                    else if(level == 24) { SendClientMessageToAll(COLOR_KINGS, "Hб um novo lнder nos King's, digite /lideres para mais informacхes."); Player[giveid][pChar] = 67; gTeam[giveid] = 16;} //King's
                }
                Player[giveid][pMember] = level;
                Player[giveid][pRank] = 6;
                Player[giveid][pTeam] = gTeam[giveid];
                Player[giveid][pModel] = Player[giveid][pChar];
                SetPlayerSkin(giveid, Player[giveid][pChar]);
                SetPlayerToTeamColor(giveid);
                if(Player[giveid][pAdmin] < 6)
                    AddMembro(giveid);
            }
        }
        else
            SendClientMessage(playerid, COLOR_RED, "[ERRO] Jogador nгo encontrado.");

        return 1;
    }
Reply
#2

estar certo isso ? por sу para administrador usar o /lideres ?
Reply
#3

Era pra todos usarem
Reply
#4

pawn Код:
dcmd_lideres(playerid, params[])
    {
        #pragma unused params

        SendClientMessage(playerid, COLOR_YELLOW, "|-Brasil Second Life lideres presentes-|");
        for(new i = 0; i <= HighestID; i++)
        {
            if(IsPlayerConnected(i))
            {
                    if(Player[i][pLeader] == TEAM_PM){format(thestring, 128, "(%d)Policia Militar: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_PM, thestring);}
                    if(Player[i][pLeader] == TEAM_PF){format(thestring, 128, "(%d)Policia Federal: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_PF, thestring);}
                    if(Player[i][pLeader] == TEAM_FA){format(thestring, 128, "(%d)Forcas Armadas: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_FA, thestring);}
                    if(Player[i][pLeader] == TEAM_BOMBE){format(thestring, 128, "(%d)Bombeiros: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_MEDICOS, thestring);}
                    if(Player[i][pLeader] == TEAM_BALLAS){format(thestring, 128, "(%d)Front Yard Ballas: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_BALLAS, thestring);}
                    if(Player[i][pLeader] == TEAM_GROOVE){format(thestring, 128, "(%d)Grove Street Families: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_GROOVE, thestring);}
                    if(Player[i][pLeader] == TEAM_PREF){format(thestring, 128, "(%d)Prefeito: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_PREF, thestring);}
                    if(Player[i][pLeader] == TEAM_HITMAN){format(thestring, 128, "(%d)Hitman: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_HITMAN, thestring);}
                    if(Player[i][pLeader] == TEAM_SANEWS){format(thestring, 128, "(%d)Reporter: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_SANEWS, thestring);}
                    if(Player[i][pLeader] == TEAM_LOWRIDERS){format(thestring, 128, "(%d)Lowrider: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_LOWRIDERS, thestring);}
                    if(Player[i][pLeader] == TEAM_VAGOS){format(thestring, 128, "(%d)Los Santos Vagos: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_VAGOS, thestring);}
                    if(Player[i][pLeader] == TEAM_BIKERS){format(thestring, 128, "(%d)MotorBikers: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_BIKERS, thestring);}
                    if(Player[i][pLeader] == TEAM_MUNICIPAL){format(thestring, 128, "(%d)Guarda Municipal: %s | Contato: %d.", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_MUNICIPAL, thestring);}
                    if(Player[i][pLeader] == TEAM_AZTECAS){format(thestring, 128, "(%d)Varrio Los Aztecas: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_AZTECAS, thestring);}
                    if(Player[i][pLeader] == TEAM_RUSSA){format(thestring, 128, "(%d)Mбfia Russa: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_RUSSA, thestring);}
                    if(Player[i][pLeader] == TEAM_YAKUZA){format(thestring, 128, "(%d)Mafia Yakuza: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_YAKUZA, thestring);}
                    if(Player[i][pLeader] == TEAM_DRIFTERS){format(thestring, 128, "(%d)Drifters: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_DRIFTERS, thestring);}
                    if(Player[i][pLeader] == TEAM_BLOODS){format(thestring, 128, "(%d)Bloods: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_BLOODS, thestring);}
                    if(Player[i][pLeader] == TEAM_CREEPS){format(thestring, 128, "(%d)Creeps: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_CREEPS, thestring);}
                    if(Player[i][pLeader] == TEAM_BOPE){format(thestring, 128, "(%d)BOPE: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_BOPE, thestring);}
                    if(Player[i][pLeader] == TEAM_ALQAEDA){format(thestring, 128, "(%d)Al-Qaeda: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_ALQAEDA, thestring);}
                    if(Player[i][pLeader] == TEAM_KINGS){format(thestring, 128, "(%d)King's: %s | Contato: %d", i, Player[i][pName], Player[i][pPnumber]);SendClientMessage(playerid, COLOR_KINGS, thestring);}
            }
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)