[Pedido] Materiais do cofre
#1

Boa tarde, queria uma ajuda, pois os materiais no servidor de nada estгo servindo, pois na gm sу estб para ao equipar dar as armas. Sendo que gostaria que utilizassem dos materiais da org, para assim ter que compra-los para a org continuar funcionando, alйm das drogas tambйm e nгo dar colete livremente. Segue o cуdigo encontrado abaixo:
Код:
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(string, sizeof(string), "Sua HQ te deu %d de Maconha", darmaconha); 
                                    SendClientMessage(playerid, COLOR_YELLOW,string); 
                                    CofreOrg[org][Maconha] = maconha-darmaconha; 
                                    PlayerInfo[playerid][pDrogas] += darmaconha; 
                                } 
                                else 
                                { 
                                } 
                              if(CofreOrg[PlayerInfo[playerid][pMembro]][Vip] != 0 || CofreOrg[PlayerInfo[playerid][pLider]][Vip] != 0) 
                              { 
                                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Voce Pegou os Equipamentos VIP de Sua Org."); 
                                 format(string, sizeof(string), "* %s pega seus equipamentos ORG-VIP.", sendername); 
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); 
                                SetPlayerHealth(playerid, 100.0); 
                                  SetPlayerArmour(playerid, 100.0); 
                                  GivePlayerWeapon(playerid, 18, 5); 
                                GivePlayerWeapon(playerid, 24, 500); 
                                GivePlayerWeapon(playerid, 25, 500); 
                                GivePlayerWeapon(playerid, 29, 500); 
                                GivePlayerWeapon(playerid, 31, 500); 
                                GivePlayerWeapon(playerid, 34, 500); 
                                PlayerInfo[playerid][pExplosivos] = 5; 
                                return 1; 
                              } 
                              else 
                              { 
                                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Voce Pegou os Equipamentos Prуprios Para o seu Cargo."); 
                                if (PlayerInfo[playerid][pCargo] == 1) 
                                { 
                                       format(string, sizeof(string), "* %s pega seus equipamentos.", sendername); 
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); 
                                    SetPlayerHealth(playerid, 100.0); 
                                    SetPlayerArmour(playerid, 100.0); 
                                    GivePlayerWeapon(playerid, 24, 100); 
                                    GivePlayerWeapon(playerid, 25, 50); 
                                    GivePlayerWeapon(playerid, 29, 80); 
                                    GivePlayerWeapon(playerid, 31, 50); 
                                    return 1; 
                                } 
                                if (PlayerInfo[playerid][pCargo] == 2) 
                                { 
                                       format(string, sizeof(string), "* %s pega seus equipamentos.", sendername); 
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); 
                                    SetPlayerHealth(playerid, 100.0); 
                                    SetPlayerArmour(playerid, 100.0); 
                                    GivePlayerWeapon(playerid, 24, 150); 
                                    GivePlayerWeapon(playerid, 25, 70); 
                                    GivePlayerWeapon(playerid, 29, 120); 
                                    GivePlayerWeapon(playerid, 31, 100); 
                                    return 1; 
                                } 
                                 if (PlayerInfo[playerid][pCargo] == 3) 
                                { 
                                       format(string, sizeof(string), "* %s pega seus equipamentos.", sendername); 
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); 
                                    SetPlayerHealth(playerid, 100.0); 
                                    SetPlayerArmour(playerid, 100.0); 
                                    GivePlayerWeapon(playerid, 18, 3); 
                                    GivePlayerWeapon(playerid, 24, 170); 
                                    GivePlayerWeapon(playerid, 25, 100); 
                                    GivePlayerWeapon(playerid, 29, 150); 
                                    GivePlayerWeapon(playerid, 31, 150); 
                                    return 1; 
                                } 
                                  if (PlayerInfo[playerid][pCargo] == 4) 
                                { 
                                       format(string, sizeof(string), "* %s pega seus equipamentos.", sendername); 
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); 
                                    SetPlayerHealth(playerid, 100.0); 
                                    SetPlayerArmour(playerid, 100.0); 
                                    GivePlayerWeapon(playerid, 18, 4); 
                                    GivePlayerWeapon(playerid, 24, 200); 
                                    GivePlayerWeapon(playerid, 25, 150); 
                                    GivePlayerWeapon(playerid, 29, 200); 
                                    GivePlayerWeapon(playerid, 31, 200); 
                                    return 1; 
                                } 
                                 if (PlayerInfo[playerid][pCargo] == 5 || PlayerInfo[playerid][pCargo] == 444 || PlayerInfo[playerid][pCargo] == 555) 
                                { 
                                       format(string, sizeof(string), "* %s pega seus equipamentos.", sendername); 
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); 
                                    SetPlayerHealth(playerid, 100.0); 
                                    SetPlayerArmour(playerid, 100.0); 
                                    GivePlayerWeapon(playerid, 18, 6); 
                                    GivePlayerWeapon(playerid, 24, 250); 
                                    GivePlayerWeapon(playerid, 25, 200); 
                                    GivePlayerWeapon(playerid, 29, 250); 
                                    GivePlayerWeapon(playerid, 31, 250); 
                                    return 1; 
                                } 
                                if (PlayerInfo[playerid][pCargo] == 6) 
                                { 
                                       format(string, sizeof(string), "* Lнder %s pega seus equipamentos.", sendername); 
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); 
                                      SetPlayerHealth(playerid, 100.0); 
                                    SetPlayerArmour(playerid, 100.0); 
                                    GivePlayerWeapon(playerid, 18, 8); 
                                    GivePlayerWeapon(playerid, 24, 250); 
                                    GivePlayerWeapon(playerid, 25, 250); 
                                    GivePlayerWeapon(playerid, 29, 300); 
                                    GivePlayerWeapon(playerid, 31, 300); 
                                    return 1; 
                                } 
                            } 
                        }
Reply
#2

aonde eu colo isso?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)