[Ajuda] /darlider Bugado
#3

Tenta ae
Vocк Precisa ser Admin Level 1337
PHP код:
if(strcmp(cmd"/darlider"true) == 0)
{

    if(
IsPlayerConnected(playerid))
    {

        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {

            
SendClientMessage(playeridCOLOR_GRAD2"USE: /darlider [ id ] [Number(1-45)]");
            return 
1;
        }
        new 
para1;
        new 
level;
        
para1 ReturnUser(tmp);
        
tmp strtok(cmdtextidx);
        
level strval(tmp);
        if(
level 45 || level 0) { SendClientMessage(playeridCOLOR_GREY"Orgs de 0 a 45"); return 1; }
        if (
PlayerInfo[playerid][pAdmin] >= 1337)
        {
                if(
admadministrando[playerid] < 1)
                {
                    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб trabalhando! (/administrar)");
                    return 
1;
                }
                if(
IsPlayerConnected(para1))
                {
                    if(
para1 != INVALID_PLAYER_ID)
                    {
                        if(
PlayerInfo[para1][pMembro] > 0)
                        {
                            
SendClientMessage(playeridCOLOR_GREY"   O Player Ja tem uma Emprego/Lideranзa !");
                            return 
1;
                        }
                        if(
level == 30 || level == 31 || level == 26 || level == 13 || level == 14 || level == 28 || level == 29 || level == 34 || level == 12 || level == 32)
                        {

                            
SendClientMessage(playeridCOLOR_GREY"Organizaзгo bloqueada no momento.");
                            return 
1;
                        }
                        
GetPlayerName(para1giveplayersizeof(giveplayer));
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
PlayerInfo[para1][pLider] = level;
                        
format(stringsizeof(string), "   Vocк foi promovido a lider pelo admin %s"sendername);
                        
SendClientMessage(para1COLOR_LIGHTBLUEstring);
                        
SendClientMessage(para1COLOR_LIGHTBLUE,"Promovido Com sucesso !!");
                        
LiderLog(string);
                        
PlayerInfo[para1][pMembro] = 0;
                        
PlayerInfo[para1][pCargo] = 6;
                        if(
level == 0) { PlayerInfo[para1][pChar] = 0; }
                        
//    else if(level == 1) { PlayerInfo[para1][pChar] = 265; SetPlayerSpawn(para1); } //Policia Militar
                        
else if(level == 2) { PlayerInfo[para1][pChar] = 285SetPlayerSpawn(para1); } //ROTAM
                        
else if(level == 3) { PlayerInfo[para1][pChar] = 287SetPlayerSpawn(para1); } //Exйrcito
                        
else if(level == 4) { PlayerInfo[para1][pChar] = 228SetPlayerSpawn(para1); } //Fire/Ambulance
                        
else if(level == 5) { PlayerInfo[para1][pChar] = 114SetPlayerSpawn(para1); } //Varrios Los Aztecas
                        
else if(level == 6) { PlayerInfo[para1][pChar] = 120SetPlayerSpawn(para1); } //Guerrilheiros israelitas
                        
else if(level == 7) { PlayerInfo[para1][pChar] =  147SetPlayerSpawn(para1); } //Prefeito
                        
else if(level == 8) { PlayerInfo[para1][pChar] = 294SetPlayerSpawn(para1); } //Hitmans
                        
else if(level == 9) { PlayerInfo[para1][pChar] = 227SetPlayerSpawn(para1); } //Reporter
                        
else if(level == 10) { PlayerInfo[para1][pChar] = 61SetPlayerSpawn(para1); } //Taxistas
                        
else if(level == 11) { PlayerInfo[para1][pChar] = 171SetPlayerSpawn(para1); } //Driving/Flying School
                        
else if(level == 15) { PlayerInfo[para1][pChar] = 270SetPlayerSpawn(para1); } //Groove
                        
else if(level == 16) { PlayerInfo[para1][pChar] = 123SetPlayerSpawn(para1); } //ALQaeda
                        
else if(level == 17) { PlayerInfo[para1][pChar] = 59SetPlayerSpawn(para1); } //Policia Civil
                        
else if(level == 18) { PlayerInfo[para1][pChar] = 102SetPlayerSpawn(para1); } //Ballas
                        
else if(level == 19) { PlayerInfo[para1][pChar] = 108SetPlayerSpawn(para1); } //Vagos
                        
else if(level == 20) { PlayerInfo[para1][pChar] = 117SetPlayerSpawn(para1); } //Mбfia Yakuza
                        
else if(level == 21) { PlayerInfo[para1][pChar] = 98SetPlayerSpawn(para1); } //PCC
                        
else if(level == 22) { PlayerInfo[para1][pChar] = 112SetPlayerSpawn(para1); } //Mбfia La Hermandad
                        
else if(level == 23) { PlayerInfo[para1][pChar] = 143SetPlayerSpawn(para1);} //Comando Vermelho
                        
else if(level == 24) { PlayerInfo[para1][pChar] = 292SetPlayerSpawn(para1); } //Corredores
                        
else if(level == 25) { PlayerInfo[para1][pChar] = 286SetPlayerSpawn(para1); } //FBI
                        
else if(level == 26) { PlayerInfo[para1][pChar] = 240SetPlayerSpawn(para1); } //CIA by Bruno Tadeu & Ken_xD
                        
else if(level == 27) { PlayerInfo[para1][pChar] = 280SetPlayerSpawn(para1); } //PF by Bruno Tadeu & Ken_xD
                        
else if(level == 28) { PlayerInfo[para1][pChar] = 228SetPlayerSpawn(para1); } //Rede Globo by Bruno Tadeu & Ken_xD
                        
else if(level == 29) { PlayerInfo[para1][pChar] = 46SetPlayerSpawn(para1); } //Playssons by Bruno Tadeu & Ken_xD
                        
else if(level == 30) { PlayerInfo[para1][pChar] = 49SetPlayerSpawn(para1); } //Mafia Chineza by Bruno Tadeu & Ken_xD
                        
else if(level == 31) { PlayerInfo[para1][pChar] = 68SetPlayerSpawn(para1); } //Mafia N-C by Bruno Tadeu & Ken_xD
                        
else if(level == 32) { PlayerInfo[para1][pChar] = 223SetPlayerSpawn(para1); } //PUNK by Bruno Tadeu & Ken_xD
                        
else if(level == 33) { PlayerInfo[para1][pChar] = 287SetPlayerSpawn(para1); } //FAB by Bruno Tadeu & Ken_xD
                        
else if(level == 35) { PlayerInfo[para1][pChar] = 270SetPlayerSpawn(para1); } //Groove SF
                        
else if(level == 36) { PlayerInfo[para1][pChar] = 114SetPlayerSpawn(para1); } //Aztecas SF
                        
else if(level == 37) { PlayerInfo[para1][pChar] = 102SetPlayerSpawn(para1); } //Ballas SF
                        
else if(level == 38) { PlayerInfo[para1][pChar] = 108SetPlayerSpawn(para1); } //Vagos SF
                        
else if(level == 39) { PlayerInfo[para1][pChar] = 143SetPlayerSpawn(para1);} //Comando Vermelho SF
                        
else if(level == 40) { PlayerInfo[para1][pChar] = 98SetPlayerSpawn(para1); } //PCC SF
                        
else if(level == 41) { PlayerInfo[para1][pChar] = 265SetPlayerSpawn(para1); } //Policia Militar SF
                        
else if(level == 42) { PlayerInfo[para1][pChar] = 61SetPlayerSpawn(para1); } //Taxistas SF
                        
else if(level == 43) { PlayerInfo[para1][pChar] =  147SetPlayerSpawn(para1); } //Prefeito SF
                        
else if(level == 44) { PlayerInfo[para1][pChar] = 228SetPlayerSpawn(para1); } //Medicos SF
                        
else if(level == 45) { PlayerInfo[para1][pChar] = 227SetPlayerSpawn(para1); } //San Fierro News
                        
gTeam[para1] = 11;
                        
PlayerInfo[para1][pTeam] = 11;
                        
SetPlayerSkin(para1PlayerInfo[para1][pChar]);
                        if(
PlayerInfo[playerid][pMembro] > 0)
                        {

                            
DemitirInfoOrg(pNome(para1));
                        }
                        if(
PlayerInfo[playerid][pLider] > 0)
                        {

                            
DemitirInfoOrg(pNome(para1));
                        }
                        
ConviteInfoOrg(pNome(para1), level6);
                        
OnPlayerUpdate(para1);
                        
SpawnPlayer(para1);
                    }
                }
//not connected
            
}
        else
        {

            
SendClientMessage(playeridCOLOR_GRAD1"   Voce nao tem permissao para usar esse comando!");
        }
    }
    return 
1;

Reply


Messages In This Thread
/darlider Bugado - by guirigottti - 11.02.2013, 17:51
Re: /darlider Bugado - by VinicioS - 13.02.2013, 12:43
Re: /darlider Bugado - by smiiir - 13.02.2013, 13:20

Forum Jump:


Users browsing this thread: 3 Guest(s)