View Single Post
Old 22/10/2016, 03:42 PM   #4
LuanGamer
Big Clucker
 
Join Date: Oct 2016
Posts: 76
Reputation: 0
Default Re: Equipar não diminui os materiais

Também tem esse, sendo que maconha não dá ao equipar não:
PHP Code:
if(OrgsGang(playerid))
                    {
                               new 
darmaconha CofreOrg[org][dMaconha];
                             new 
maconha CofreOrg[org][Maconha];
                              
ResetPlayerWeapons(playerid);
                              
TempDropArmasBody[playerid] = 0;
                              if(
CofreOrg[org][Maconha] > darmaconha && IsAMember(playerid))
                                {
                                    
format(stringsizeof(string), "Sua HQ te deu %d de Maconha"darmaconha);
                                    
SendClientMessage(playeridCOLOR_YELLOW,string);
                                    
CofreOrg[org][Maconha] = maconha-darmaconha;
                                    
PlayerInfo[playerid][pDrogas] += darmaconha;
                                }
                                else
                                {
                                }
                              if(
CofreOrg[PlayerInfo[playerid][pMembro]][Vip] != || CofreOrg[PlayerInfo[playerid][pLider]][Vip] != 0)
                              {
                                  
SendClientMessage(playeridCOLOR_LIGHTBLUE"*Voce Pegou os Equipamentos VIP de Sua Org.");
                                 
format(stringsizeof(string), "* %s pega seus equipamentos ORG-VIP."sendername);
                                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                
SetPlayerHealth(playerid100.0);
                                  
SetPlayerArmour(playerid100.0);
                                  
GivePlayerWeapon(playerid185);
                                
GivePlayerWeapon(playerid24500);
                                
GivePlayerWeapon(playerid25500);
                                
GivePlayerWeapon(playerid29500);
                                
GivePlayerWeapon(playerid31500);
                                
GivePlayerWeapon(playerid34500);
                                
PlayerInfo[playerid][pExplosivos] = 5;
                                return 
1;
                              }
                              else
                              {
                                  
SendClientMessage(playeridCOLOR_LIGHTBLUE"*Voce Pegou os Equipamentos Próprios Para o seu Cargo.");
                                if (
PlayerInfo[playerid][pCargo] == 1)
                                {
                                       
format(stringsizeof(string), "* %s pega seus equipamentos."sendername);
                                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    
SetPlayerHealth(playerid100.0);
                                    
SetPlayerArmour(playerid100.0);
                                    
GivePlayerWeapon(playerid24100);
                                    
GivePlayerWeapon(playerid2550);
                                    
GivePlayerWeapon(playerid2980);
                                    
GivePlayerWeapon(playerid3150);
                                    return 
1;
                                }
                                if (
PlayerInfo[playerid][pCargo] == 2)
                                {
                                       
format(stringsizeof(string), "* %s pega seus equipamentos."sendername);
                                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    
SetPlayerHealth(playerid100.0);
                                    
SetPlayerArmour(playerid100.0);
                                    
GivePlayerWeapon(playerid24150);
                                    
GivePlayerWeapon(playerid2570);
                                    
GivePlayerWeapon(playerid29120);
                                    
GivePlayerWeapon(playerid31100);
                                    return 
1;
                                }
                                 if (
PlayerInfo[playerid][pCargo] == 3)
                                {
                                       
format(stringsizeof(string), "* %s pega seus equipamentos."sendername);
                                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    
SetPlayerHealth(playerid100.0);
                                    
SetPlayerArmour(playerid100.0);
                                    
GivePlayerWeapon(playerid183);
                                    
GivePlayerWeapon(playerid24170);
                                    
GivePlayerWeapon(playerid25100);
                                    
GivePlayerWeapon(playerid29150);
                                    
GivePlayerWeapon(playerid31150);
                                    return 
1;
                                }
                                  if (
PlayerInfo[playerid][pCargo] == 4)
                                {
                                       
format(stringsizeof(string), "* %s pega seus equipamentos."sendername);
                                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    
SetPlayerHealth(playerid100.0);
                                    
SetPlayerArmour(playerid100.0);
                                    
GivePlayerWeapon(playerid184);
                                    
GivePlayerWeapon(playerid24200);
                                    
GivePlayerWeapon(playerid25150);
                                    
GivePlayerWeapon(playerid29200);
                                    
GivePlayerWeapon(playerid31200);
                                    return 
1;
                                }
                                 if (
PlayerInfo[playerid][pCargo] == || PlayerInfo[playerid][pCargo] == 444 || PlayerInfo[playerid][pCargo] == 555)
                                {
                                       
format(stringsizeof(string), "* %s pega seus equipamentos."sendername);
                                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    
SetPlayerHealth(playerid100.0);
                                    
SetPlayerArmour(playerid100.0);
                                    
GivePlayerWeapon(playerid186);
                                    
GivePlayerWeapon(playerid24250);
                                    
GivePlayerWeapon(playerid25200);
                                    
GivePlayerWeapon(playerid29250);
                                    
GivePlayerWeapon(playerid31250);
                                    return 
1;
                                }
                                if (
PlayerInfo[playerid][pCargo] == 6)
                                {
                                       
format(stringsizeof(string), "* Líder %s pega seus equipamentos."sendername);
                                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                      
SetPlayerHealth(playerid100.0);
                                    
SetPlayerArmour(playerid100.0);
                                    
GivePlayerWeapon(playerid188);
                                    
GivePlayerWeapon(playerid24250);
                                    
GivePlayerWeapon(playerid25250);
                                    
GivePlayerWeapon(playerid29300);
                                    
GivePlayerWeapon(playerid31300);
                                    return 
1;
                                }
                            }
                        } 
LuanGamer is offline   Reply With Quote