[pedido] /equipar por chat box pra mais de 10 orgs aaaaa
#7

PHP код:
if(Isequipando(playerid) || Ishqheroes(playerid))
    {
        new 
string[128];
        
GetPlayerName(playeridsendernamesizeof(sendername));
        new 
membro PlayerInfo[playerid][pMembro];
        new 
lider PlayerInfo[playerid][pLeader];
        new 
cargo PlayerInfo[playerid][pCargo];
        if(
membro == || membro == || membro == || membro == 17 || membro == 24 || membro == 25 || membro == 26 || membro == 27 || membro == 33 || membro == 41)
        {
              new 
x_eh[256];
            
x_eh strtok(cmdtextidx);
            if(!
strlen(x_eh))
            {
                
SendClientMessage(playeridCOLOR_WHITE"|__________________ EQUIPAR HEROES __________________|");
                
SendClientMessage(playeridCOLOR_WHITE"Use: /eh [Seu Cargo ]");
                
SendClientMessage(playeridCOLOR_GREY"Numeros: 1 - Hero Novato ");
                
SendClientMessage(playeridCOLOR_GREY"Numeros: 2 - Hero Atirador ");
                
SendClientMessage(playeridCOLOR_GREY"Numeros: 3 - Hero Profissional ");
                
SendClientMessage(playeridCOLOR_GREY"Numeros: 4 - Hero Tatico ");
                
SendClientMessage(playeridCOLOR_GREY"Numeros: 5 - Hero Master  ");
                
SendClientMessage(playeridCOLOR_GREY"Numeros: 6 - Super Hero (lider) ");
                
SendClientMessage(playeridCOLOR_WHITE"|____________________________________________|");
                return 
1;
            }
               if(
strcmp(x_eh,"1",true) == 0)
            {
                if (
cargo >= 1)
                {
                       
format(stringsizeof(string), "* O Hero Novato %s Pegou Seu Equipamento de Novato."sendername);
                    
ProxDetector(100.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
ResetPlayerWeapons(playerid);
                    
GivePlayerWeapon(playerid29200);
                     
GivePlayerWeapon(playerid24500);
                    
GivePlayerWeapon(playerid61);
                        
SetPlayerArmour(playerid100);
                    
SetPlayerHealth(playerid100);
                    
SetPlayerSkin(playerid,285);
                    
ShowPlayerDialog(playerid,DIALOG_EQUIP,DIALOG_STYLE_MSGBOX,"Equipamento","Voce equipou:\n\n- 100 de Vida.\n- 100 de Colete.\n- 1 Cacetete.\n- 100 de Desert Eagle.\n- 50 de Shotgun.\n\n","---","---");
                }
                else return 
SendClientMessage(playeridCOLOR_GREY"Vocк precisa de cargo 1+ para pegar este equipamento!");
            }
            if(
strcmp(x_eh,"2",true) == 0)
            {
                if(
cargo >= 2)
                {
                     
format(stringsizeof(string), "* O Hero Atirador %s Pegou Seu Equipamento de Atirador de elite."sendername);
                    
ProxDetector(100.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
ResetPlayerWeapons(playerid);
                    
GivePlayerWeapon(playerid29200);
                    
GivePlayerWeapon(playerid2550);
                      
GivePlayerWeapon(playerid24500);
                       
GivePlayerWeapon(playerid31);
                       
SetPlayerSkin(playerid,285);
                       
ShowPlayerDialog(playerid,DIALOG_EQUIP,DIALOG_STYLE_MSGBOX,"Equipamento","Voce equipou:\n\n- 100 de Vida.\n- 100 de Colete.\n- 1 Cacetete.\n- 100 de Desert Eagle.\n- 50 de Shotgun.\n- 200 de Mp5.\n\n","---","---");
                     
SetPlayerArmour(playerid100);
                    
SetPlayerHealth(playerid100);
                }
                else return 
SendClientMessage(playeridCOLOR_GREY"Vocк precisa de cargo 2+ para pegar este equipamento!");
            }
            if(
strcmp(x_eh,"3",true) == 0)
            {
                if(
cargo >= 3)
                {
                       
format(stringsizeof(string), "* O Hero Profissional %s Pegou Seu Equipamento de Atirador profissional"sendername);
                    
ProxDetector(100.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
ResetPlayerWeapons(playerid);
                    
GivePlayerWeapon(playerid29200);
                    
GivePlayerWeapon(playerid2550);
                     
GivePlayerWeapon(playerid24500);
                     
GivePlayerWeapon(playerid31500);
                    
GivePlayerWeapon(playerid31);
                    
SetPlayerSkin(playerid,285);
                    
ShowPlayerDialog(playerid,DIALOG_EQUIP,DIALOG_STYLE_MSGBOX,"Equipamento","Voce equipou:\n\n- 100 de Vida.\n- 100 de Colete.\n- 1 Cacetete.\n- 100 de Desert Eagle.\n- 50 de Shotgun.\n- 200 de Mp5.\n\n","---","---");
                        
SetPlayerArmour(playerid100);
                    
SetPlayerHealth(playerid100);
                }
                else return 
SendClientMessage(playeridCOLOR_GREY"Vocк precisa de cargo 3+ para pegar este equipamento!");
            }
            if(
strcmp(x_eh,"4",true) == 0)
            {
                if(
cargo >= 4)//Delegado
                
{
                     
format(stringsizeof(string), "* O Hero Tatico %s Pegou Seu Equipamento de Atirador Master"sendername);
                    
ProxDetector(100.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
ResetPlayerWeapons(playerid);
                    
GivePlayerWeapon(playerid29200);
                    
GivePlayerWeapon(playerid2550);
                     
GivePlayerWeapon(playerid24500);
                     
GivePlayerWeapon(playerid31500);
                     
GivePlayerWeapon(playerid1610);
                     
GivePlayerWeapon(playerid34100);
                    
GivePlayerWeapon(playerid31);
                    
SetPlayerSkin(playerid,285);
                    
ShowPlayerDialog(playerid,DIALOG_EQUIP,DIALOG_STYLE_MSGBOX,"Equipamento","Voce equipou:\n\n- 100 de Vida.\n- 100 de Colete.\n- 1 Cacetete.\n- 100 de Desert Eagle.\n- 50 de Shotgun.\n- 200 de Mp5.\n\n","---","---");
                       
SetPlayerArmour(playerid100);
                    
SetPlayerHealth(playerid100);
                }
                else return 
SendClientMessage(playeridCOLOR_GREY"Vocк precisa de cargo 4+ para pegar este equipamento!");
            }
            if(
strcmp(x_eh,"5",true) == 0)
            {
                if (
cargo >= 5)
                {
                     
format(stringsizeof(string), "* O Hero Master %s Pegou Seu Equipamento de Atirador tatico"sendername);
                    
ProxDetector(100.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
ResetPlayerWeapons(playerid);
                        
GivePlayerWeapon(playerid29200);
                        
GivePlayerWeapon(playerid2550);
                     
GivePlayerWeapon(playerid24500);
                     
GivePlayerWeapon(playerid31500);
                     
GivePlayerWeapon(playerid1610);
                     
GivePlayerWeapon(playerid34100);
                        
GivePlayerWeapon(playerid31);
                    
ShowPlayerDialog(playerid,DIALOG_EQUIP,DIALOG_STYLE_MSGBOX,"Equipamento","Voce equipou:\n\n- 100 de Vida.\n- 100 de Colete.\n- 1 Cacetete.\n- 100 de Desert Eagle.\n- 50 de Shotgun.\n- 200 de Mp5.\n\n","---","---");
                       
SetPlayerArmour(playerid150);
                    
SetPlayerHealth(playerid150);
                }
                else return 
SendClientMessage(playeridCOLOR_GREY"Vocк precisa de cargo 5+ para pegar este equipamento!");
            }
            if(
strcmp(x_eh,"6",true) == 0)
             {
                if(
member == || lider == || lider == || lider == || lider == 17 || lider == 24 || lider == 25 || lider == 26 || lider == 27 || lider == 33 || lider == 41)
                {
                    
format(stringsizeof(string), "* O Super Hero %s Pegou Seu Equipamento de Lider!"sendername);
                    
ProxDetector(100.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
ResetPlayerWeapons(playerid);
                            
GivePlayerWeapon(playerid29200);
                            
GivePlayerWeapon(playerid2550);
                     
GivePlayerWeapon(playerid24500);
                     
GivePlayerWeapon(playerid31500);
                     
GivePlayerWeapon(playerid1610);
                    
GivePlayerWeapon(playerid31);
                    
GivePlayerWeapon(playerid34100);
                    
ShowPlayerDialog(playerid,DIALOG_EQUIP,DIALOG_STYLE_MSGBOX,"Equipamento","Voce equipou:\n\n- 100 de Vida.\n- 100 de Colete.\n- 1 Cacetete.\n- 100 de Desert Eagle.\n- 50 de Shotgun.\n- 200 de Mp5.\n\n","---","---");
                       
SetPlayerArmour(playerid200);
                    
SetPlayerHealth(playerid200);
                }
                else return 
SendClientMessage(playeridCOLOR_GREY"Vocк precisa ser LIDER DA HEROES para pegar este equipamento!");
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo й Heroes !");
        }
    }
    else
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo estб na HQ Heroes");
    } 
Nгo sei porque, mas o codigo nгo ta ficando da mesma forma de quando eu copio ...

Quando for colocar no GM ajeita ele.

OBS: Ja tentei colocar no pastebin, mas ocorre a mesma coisa.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)