[Ajuda] Bug Na mesagem /lider
#5

Ta ae cara:
PHP код:
    if(strcmp(cmd"/lider"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
                return 
SendClientMessage(playeridCOLOR_GRAD2"USE: /lider [id] [Numero(1-26)]");
            new 
para1level;
            
para1 ReturnUser(tmp);
            
tmp strtok(cmdtextidx);
            
level strval(tmp);
            if(
level == 0) { SendClientMessage(playeridCOLOR_GREY"Para tirar o lider de uma organizaзгo vocк deve usar /limparlider"); return 1; }
            if(
level 26 || level 1) { SendClientMessage(playeridCOLOR_GREY"Empregos de 1 a 26"); return 1; }
            if (
PlayerInfo[playerid][pAdmin] >= 1336)
            {
                if(
admtrampando[playerid] < && PlayerInfo[playerid][pAdmin] != 1342)
                    return 
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб trabalhando! (/trabalhar)");
                if(
PlayerInfo[para1][pLider] != || PlayerInfo[para1][pMembro] != 0)
                    return 
SendClientMessage(playeridCOLOR_GRAD1"   Este player jб participa de uma organizaзгo!");
                if(
IsPlayerConnected(para1))
                {
                    if(
para1 != INVALID_PLAYER_ID)
                    {
                        if(
strcmp(InfoOrg[level][Lider],"Ninguem",true)==0ConviteInfoOrg(PlayerName(para1), level6);
                        else
                            return 
SendClientMessage(playeridCOLOR_GRAD2"Jб tem lнder nessa ORG, use /limparlider antes de colocar outro lider");
                        if(
level == 1) { PlayerInfo[para1][pSkin] = 283; }//Policia Militar
                        
else if(level == 2)    { PlayerInfo[para1][pSkin] = 285; }//B.O.P.E
                        
else if(level == 3) { PlayerInfo[para1][pSkin] = 287; }//Exйrcito
                        
else if(level == 4) { PlayerInfo[para1][pSkin] = 70; }//Fire/Ambulance
                        
else if(level == 5) { PlayerInfo[para1][pSkin] = 115; }//Varrios Los Aztecas
                        
else if(level == 6) { PlayerInfo[para1][pSkin] = 249; }//Hamas
                        
else if(level == 7) { PlayerInfo[para1][pSkin] = 147; }//Prefeito
                        
else if(level == 8) { PlayerInfo[para1][pSkin] = 294; }//Hitmans
                        
else if(level == 9) { PlayerInfo[para1][pSkin] = 227; }//Repуrters
                        
else if(level == 10) { PlayerInfo[para1][pSkin] = 61; }//Taxistas
                        
else if(level == 11) { PlayerInfo[para1][pSkin] = 295; }//Policia Federal
                        
else if(level == 12) { PlayerInfo[para1][pSkin] = 113; }//Mбfia Cosa Nostra
                        
else if(level == 13) { PlayerInfo[para1][pSkin] = 120; }//Mбfia Yakuza
                        
else if(level == 14) { PlayerInfo[para1][pSkin] = 270; }//Groove
                        
else if(level == 15) { PlayerInfo[para1][pSkin] = 123; }//ALQaeda
                        
else if(level == 16) { PlayerInfo[para1][pSkin] = 186; }//Policia Civil
                        
else if(level == 17) { PlayerInfo[para1][pSkin] = 104; }//Ballas
                        
else if(level == 18) { PlayerInfo[para1][pSkin] = 108; }//Vagos
                        
else if(level == 19) { PlayerInfo[para1][pSkin] = 19; }//CV
                        
else if(level == 20) { PlayerInfo[para1][pSkin] = 143; }//PCC
                        
else if(level == 21) { PlayerInfo[para1][pSkin] = 28; }//TCP
                        
else if(level == 22) { PlayerInfo[para1][pSkin] = 174; }//ADA
                        
else if(level == 23) { PlayerInfo[para1][pSkin] = 248; }//Sons
                        
else if(level == 24) { PlayerInfo[para1][pSkin] = 266; }//Policia Rodoviaria Federal
                        
else if(level == 25) { PlayerInfo[para1][pSkin] = 292; }//Drifters
                        
else if(level == 26) { PlayerInfo[para1][pSkin] = 279; }//Bombeiros
                        
GetPlayerName(para1giveplayersizeof(giveplayer));
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
PlayerInfo[para1][pLider] = level;
                        if(
admtrampando[playerid] == && admhide[playerid] == 1SendClientMessage(para1COLOR_LIGHTBLUE"   Vocк foi promovido a lider pelo admin BHG_BOT");
                        else
                        {
                            
format(stringsizeof(string), "   Vocк foi promovido a lider pelo admin %s"sendername);
                            
SendClientMessage(para1COLOR_LIGHTBLUEstring);
                        }
                        
SendClientMessage(para1COLOR_LIGHTBLUE,"   Promovido Com sucesso !!");
                        
LideresLog(string);
                        
MedicBill[para1] = 0;
                        
gTeam[para1] = 11;
                        
PlayerInfo[para1][pTeam] = 11;
                        
PlayerInfo[para1][pCargo] = 6;
                        
SetPlayerSkin(para1PlayerInfo[para1][pSkin]);
                        
SetPlayerSpawn(para1);
                        
format(stringsizeof(string), "   Vocк promoveu %s a Lider."giveplayer);
                        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                        
format(stringsizeof(string), "{FF0000} %s {FFFFFF} E o Novo Lider {FF0000}Administrativo {FFFFFF}da Org:{FF80FF} %s.",giveplayerNomeORG(level));
                        
SendClientMessageToAll(0xFFFFFFAAstring);
                    }
                }
//not connected
            
}
            else 
SendClientMessage(playeridCOLOR_GRAD1"   Vocк nгo esta autorizado a usar este comando!");
        }
        return 
1;
    } 
Reply


Messages In This Thread
Bug Na mesagem /lider - by Rosario_MZ - 11.12.2012, 13:18
Re: Bug Na mesagem /lider - by VenoN - 11.12.2012, 13:23
Re: Bug Na mesagem /lider - by MegalodoN - 11.12.2012, 13:39
Re: Bug Na mesagem /lider - by Rosario_MZ - 11.12.2012, 13:41
Re: Bug Na mesagem /lider - by EditPawn - 11.12.2012, 13:43
Re: Bug Na mesagem /lider - by Rosario_MZ - 11.12.2012, 13:55
Re: Bug Na mesagem /lider - by MegalodoN - 11.12.2012, 14:07
Re: Bug Na mesagem /lider - by Rosario_MZ - 11.12.2012, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)