Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <FCNPC>
- #include <streamer>
- #include <sscanf2>
- #include <DOF2>
- #include <ProgressBar>
- /*========================== MAPINHA ==========================*/
- #define sd 350.0
- #define dd 350.0
- /*======================= ADMINISTRAÇÃO =======================*/
- #define NAOADM "Você não tem permissão para usar esse comando!"
- #define Banido "Banidos\\%s.ini"
- #define paramount(%0,%1) for(new %0; %0 < %1; ++%0) if(IsPlayerConnected(%0) && !IsPlayerNPC(%0))
- const verde = 0x5EAF03FF;
- const fail = 0xFF0000FF;
- new string_[168];
- enum banido_auto
- {
- pBan,
- pAutorizado
- };
- new pInfo2[MAX_PLAYERS][banido_auto];
- new
- bool:calado[MAX_PLAYERS];
- new
- bool:votou[MAX_PLAYERS],
- bool:enquete,
- sim,nao;
- /*======================== INVENTARIO =========================*/
- #pragma tabsize 0
- #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define RELEASED(%0) (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
- #define HOLDING(%0) ((newkeys & (%0)) == (%0))
- #define DialogPegarItem (1)
- enum player_data
- {
- pSlots, pBackpack,
- };
- new pInfo[MAX_PLAYERS][player_data];
- /*========================== REGISTRO =========================*/
- #define DIALOG_REGISTRO ( 99 )
- #define DIALOG_LOGIN ( 98 )
- #define COR_AVISO 0xBEBEBEFF
- #define COR_ADMIN 0x436EEEFF
- #define COR_SUCESSO 0xCAE1FFFF
- new Text: Registro[12];
- new Text: Info[13];
- new Text: STILogoTextDraw[2];
- new Text: StatsTextDrawContainer[2];
- new PlayerText: StatsTextDraw[MAX_PLAYERS][2];
- new PlayerText: PlayerRegistro[5];
- enum player_info
- {
- nome[MAX_PLAYER_NAME],
- senha[17],
- Administrador,
- Level,
- Skin,
- SkinAnterior,
- Matou,
- Morreu,
- Dinheiro,
- Cash,
- CmdJaUsado,
- Madeira,
- Pedra,
- Metal,
- Parafuso,
- Borracha,
- Frutas,
- Peixe,
- Carne,
- Cloth,
- Agua,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- bool: Logado,
- ERRO
- };
- new PlayerInfo[MAX_PLAYERS][player_info];
- /*================= Limites de Materiais =====================*/
- #define def_LimiteMadeira 500
- #define def_LimitePedra 500
- #define def_LimiteMetal 500
- #define def_LimiteParafuso 500
- #define def_LimiteBorracha 500
- #define def_LimiteFrutas 10
- #define def_LimitePeixe 5
- #define def_LimiteCarne 5
- #define def_LimiteCloth 500
- #define def_LimiteAgua 10
- #define def_MaterialCount 10
- /*========================== TEMPOS ==========================*/
- #define FomeTempo 100000 // Tempo para aumentar Fome.
- #define SedeTempo 60000 // Tempo para aumentar Sede.
- #define FrioTempo 200000 // tempo para aumentar frio.
- /*======================== TEXT'S DRAW =======================*/
- new Text:Wood[MAX_PLAYERS];
- new Text:Wood3[MAX_PLAYERS];
- new Text:Boxzin[MAX_PLAYERS];
- new Text:Stone[MAX_PLAYERS];
- new Text:Boxzin2[MAX_PLAYERS];
- new Text:MetalF[MAX_PLAYERS];
- new Text:LimiteMaterial[MAX_PLAYERS];
- new Text:DataC;
- new Text:barrinha1;
- new Text:forum1;
- new Text:forum2;
- new Text:barrinha2;
- new Text:forum3;
- new Text:sprite1;
- new Text:sprite2;
- new PlayerText:SedeT[MAX_PLAYERS];
- new Text:FrioT;
- new Text:Textdraw0;
- new Text:TextCash1;
- new Text:TextCash2;
- new Text:TextCash3;
- new Text:TextDin0;
- new Text:TextDin1;
- new Text:TextDin2;
- new BlackRadar;
- new RadarPreto;
- new Text:TextGPS;
- /*========================= Text3D ========================*/
- new Text3D: BambiText;
- /*========================= BARRINHAS ========================*/
- new Bar:FomeA;
- new Bar:SedeB;
- new Bar:FrioD;
- // BARRINHA DE RIFLE
- new Bar:Exemplo;
- new Valor[MAX_PLAYERS];
- new Baru[MAX_PLAYERS];
- // BARRINHA DE AGUA
- new Bar:Exemplo2;
- new Valor2[MAX_PLAYERS];
- new Baru2[MAX_PLAYERS];
- // sistemna de camera
- new pUsarCamera[MAX_PLAYERS];
- new pPrimeiro[MAX_PLAYERS];
- new firstperson[MAX_PLAYERS];
- /*=========================== CORES ==========================*/
- #define VERDE 0x00A200FF
- #define COR_VERMELHO 0xAA3333AA
- #define COR_VERDE 0x41F837FF
- #define VERDE_ESCURO 0x16A82EFF
- #define COR_AZUL 0x4A42EDFF
- #define COR_AMARELO 0xFFFF33FF
- #define AMARELO_2 0xFFFF00AA
- #define COR_ROSA 0xFD33FFFF
- #define AZUL_AGUA 0x33FDFFFF
- #define COR_BRANCO 0xFFFFFFAA
- #define AZULCLARO 0x5278F3FF
- #define COR_CINZA 0xE6E6E6E6
- // Sistema De Votos
- #define LARANJA 0xFF660000
- #define VERDECLARO 0x00FF0C00
- #define VERDEMEDIO 0xa5b1A300
- #define BRANCO 0xFFFFFF00
- #define VERMELHO 0xFF000000
- #define VERDEFRACO 0x80cf8000
- #define PlayerNoLugar(%1,%2,%3,%4,%5) IsPlayerInRangeOfPoint(%1,%2,%3,%4,%5)
- /*=================== SALVAMENTO DOS OBJETOS ==================*/
- #define MAX_BASES 100
- #define ObjectBase 19366//ID do Objeto
- enum BaseInfo
- {
- ID,
- Dono[MAX_PLAYER_NAME + 1],
- Existe,
- ObjectB,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- Float: RX,
- Float: RY,
- Float: RZ,
- }
- new Base[MAX_BASES][BaseInfo];
- //
- #define MAX_BANCADAS 100
- #define bancada 2205//ID do Objeto
- enum BancadaInfo
- {
- ID,
- Dono[MAX_PLAYER_NAME + 1],
- Existe,
- ObjectA,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- Float: RX,
- Float: RY,
- Float: RZ,
- }
- new Bancada[MAX_BANCADAS][BancadaInfo];
- //
- #define MAX_PORTAS 100
- #define porta 1497//ID do Objeto
- enum PortaInfo
- {
- ID,
- Dono[MAX_PLAYER_NAME + 1],
- Existe,
- ObjectC,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- Float: RX,
- Float: RY,
- Float: RZ,
- }
- new Porta[MAX_PORTAS][PortaInfo];
- //
- #define MAX_BAU 100
- #define bau 2969//ID do Objeto
- enum BauInfo
- {
- ID,
- Dono[MAX_PLAYER_NAME + 1],
- Existe,
- ObjectD,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- Float: RX,
- Float: RY,
- Float: RZ,
- }
- new Bau[MAX_BAU][BauInfo];
- //
- #define MAX_RAMPAS 100
- #define rampa 1245//ID do Objeto
- enum RampaInfo
- {
- ID,
- Dono[MAX_PLAYER_NAME + 1],
- Existe,
- ObjectE,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- Float: RX,
- Float: RY,
- Float: RZ,
- }
- new Rampa[MAX_RAMPAS][RampaInfo];
- //
- #define MAX_DOOR 100
- #define walldoor 19386//ID do Objeto
- enum DoorInfo
- {
- ID,
- Dono[MAX_PLAYER_NAME + 1],
- Existe,
- ObjectF,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- Float: RX,
- Float: RY,
- Float: RZ,
- }
- new Door[MAX_DOOR][DoorInfo];
- //
- #define MAX_CAMA 100
- //#define cama 1647//ID do Objeto // Essa cama quebra quando se bate nela, legal para ser adicionado depois como sleep bag
- #define cama 1800//ID do Objeto
- enum CamaInfo
- {
- ID,
- Dono[MAX_PLAYER_NAME + 1],
- Existe,
- ObjectG,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- Float: RX,
- Float: RY,
- Float: RZ,
- }
- new Cama[MAX_CAMA][CamaInfo];
- //
- #define MAX_WINDOWN 100
- #define windown1 19412
- enum WindownInfo
- {
- ID,
- Dono[MAX_PLAYER_NAME + 1],
- Existe,
- ObjectH,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- Float: RX,
- Float: RY,
- Float: RZ,
- }
- new Windown[MAX_WINDOWN][WindownInfo];
- //
- #define MAX_FORNO 100
- #define forno 2144//ID do Objeto
- enum FornoInfo
- {
- ID,
- Dono[MAX_PLAYER_NAME + 1],
- Existe,
- ObjectJ,
- Float: PosX,
- Float: PosY,
- Float: PosZ,
- Float: RX,
- Float: RY,
- Float: RZ,
- }
- new Forno[MAX_FORNO][FornoInfo];
- /*================ AQUI FICA O OBJETO DA TENDA ================*/
- #define MAX_TENTS 100
- new tentCount;
- enum tentinfo
- {
- TentID,
- Float:xTent,
- Float:yTent,
- Float:zTent,
- tent_SideR1,
- tent_SideR2,
- tent_SideL1,
- tent_SideL2,
- tent_EndF,
- tent_EndB,
- tent_PoleF,
- tent_PoleB,
- Text3D:tent_text,
- }
- new Tent[MAX_TENTS][tentinfo];
- /*========================= System Inv ========================*/
- new Float:Industrial_Spawns[][] =
- {
- {-159.2924,-2797.5200,43.3407},
- {-189.0022,-2786.5845,40.2496},
- {-189.1409,-2800.8079,44.7266},
- {-293.5280,-2231.0457,33.5780},
- {-304.2758,-2209.2595,29.9228},
- {-296.1620,-2217.6016,29.7881},
- {-288.4427,-2236.7048,29.4874},
- {-309.7368,-2232.3398,30.4623},
- {-287.8112,-2227.1431,29.6049},
- {-299.5066,-2210.8237,30.0115},
- {-1015.4057,-2516.6653,77.9130},
- {-1013.8149,-2515.1287,81.1252},
- {-1006.6309,-2571.3643,84.5203},
- {-1042.5748,-2600.7156,81.2654},
- {-1052.9657,-2617.4270,82.1011},
- {-1105.5520,-2537.0659,67.5628},
- {-1091.3235,-2507.0908,67.5563},
- {-1024.8778,-2537.4790,77.0197},
- {-1043.4700,-2539.1758,77.9781},
- {-1058.6095,-2543.6929,79.9203},
- {-737.3275,-2638.3088,82.7672},
- {-731.6837,-2626.5215,79.7017},
- {-721.5016,-2638.7527,80.5564},
- {-734.8204,-2611.5439,75.4355},
- {-709.2844,-2610.6194,73.5081}
- };
- new PlayerText:INV_DESIGN[MAX_PLAYERS][21];
- new PlayerText:INV_SLOTS[MAX_PLAYERS][24];
- #define MAX_DROPS (10000)
- #define MAX_ITEM_NAME (34)
- enum Item_Data
- {
- Item_ID,
- Item_Obj,
- Item_Name[MAX_ITEM_NAME],
- Float:Item_RotX,
- Float:Item_RotY,
- Float:Item_RotZ,
- Item_Color,
- };
- enum Drop_Data
- {
- DropItemID,
- DropObj,
- Text3D:DropLabel,
- Float:dPosX,
- Float:dPosY,
- Float:dPosZ,
- };
- new DropInfo[MAX_DROPS][Drop_Data];
- new ItemInfo[][Item_Data] =
- {
- {0, 19382, "Null", 0.0, 0.0, 0.0, -1}, //não mexa nesse
- // adicione novos items abaixo: {itemId, modelId, name, posOffsetX, posOffsetY, posOffsetZ, color}
- {1, 11738, "Kit Médico/MedKit", 0.0, 0.0, 0.0, 0x3EE314FF},
- {2, 19141, "Capacete", 0.0, 0.0, 0.0, 0x3EE314FF},
- {3, 19142, "Colete", 0.0, 0.0, 0.0, 0x3EE314FF},
- {4, 356, "Metralhadora M16", 0.0, 0.0, 0.0, 0x3EE314FF},
- {5, 353, "Sub-Metralhadora MP5", 0.0, 0.0, 0.0, 0x3EE314FF},
- {6, 358, "Sniper", 0.0, 0.0, 0.0, 0x3EE314FF},
- {7, 349, "Shotgun", 0.0, 0.0, 0.0, 0x3EE314FF},
- {8, 1650, "Gasolina", 0.0, 0.0, 0.0, 0x3EE314FF},
- {9, 1279, "Motor", 0.0, 0.0, 0.0, 0x3EE314FF},
- {10, 348, "Pistola", 0.0, 0.0, 0.0, 0x3EE314FF},
- {11, 1210, "Maleta de Cash", 0.0, 0.0, 0.0, 0x3EE314FF}
- };
- // # Forwards #
- forward Item_OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
- forward Item_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
- forward PickUPItemDrop(playerid);
- forward OnPlayerUseItem(playerid, itemid);
- forward OnPlayerDropItem(playerid, itemid);
- #define MAX_SLOTS (48)
- enum Inventario
- {
- Item[MAX_SLOTS],
- ItemSelected,
- invPage,
- bool:InvOpen,
- };
- new Inv[MAX_PLAYERS][Inventario];
- /*=========================== OUTROS ==========================*/
- new Tocha[MAX_PLAYERS];
- new Fogo[MAX_PLAYERS];
- new Bandagem[MAX_PLAYERS];
- new Remedio[MAX_PLAYERS];
- new Medkit[MAX_PLAYERS];
- new pPescando[MAX_PLAYERS];
- new PegouPresente[MAX_PLAYERS];
- /*=========================== EDIÇÕES ==========================*/
- new EditBaseID[MAX_PLAYERS] = {-1, ...};
- new EditBancadaID[MAX_PLAYERS] = {-1, ...};
- new EditPortaID[MAX_PLAYERS] = {-1, ...};
- new EditBauID[MAX_PLAYERS] = {-1, ...};
- new EditRampaID[MAX_PLAYERS] = {-1, ...};
- new EditDoorID[MAX_PLAYERS] = {-1, ...};
- new EditCamaID[MAX_PLAYERS] = {-1, ...};
- new EditWindownID[MAX_PLAYERS] = {-1, ...};
- new EditFornoID[MAX_PLAYERS] = {-1, ...};
- /*=========================== OUTROS ==========================*/
- new bool:PortaAberta[MAX_PLAYERS];
- /*=========================== OUTROS ==========================*/
- new Fogarel;
- new Bambi;
- new BambiDead[MAX_PLAYERS];
- // ARVORES
- new Arvores[155];
- /*=========================== IDIOMAS ==========================*/
- new idioma[MAX_PLAYERS]; // variável do idioma
- new arquivo1[32]; // arquivo
- new string1[256]; // string
- const EN = 2; // Definir que 2 é o inglês
- const PT = 1; // Definir que o 1 é o português
- /*========================== FORWARD'S ========================*/
- forward AdminDePa(playerid);
- forward FazendoPistola(playerid);
- forward Relogio(playerid);
- forward Pescando(playerid);
- forward campfire(playerid);
- forward ApagarFogo(playerid);
- forward ApagarTocha(playerid);
- forward DestruirTextoDraw(playerid);
- forward BambiVoltou(playerid);
- forward pegandoagua(playerid);
- forward Fome(playerid);
- forward Sede(playerid);
- forward Frio(playerid);
- forward Acordar(playerid);
- forward Payday(playerid);
- forward SendMSG();
- forward mMensagens();
- forward Correction(playerid);
- /*========================= NOMES SERV =======================*/
- new RandomServerName[3][] =
- {
- "Survival The Island ® | RUST no SA:MP ",// Nomes Server Random
- "Survival The Island ® | BETA Version [0.3.7]",// Nomes Server Random
- "Survival The Island ® | Visite nosso fórum!"// Sempre deixe o ultimo nome sem vírgula
- };
- /*========================= MSG'S SERV =======================*/
- new Mensagens[][] =
- {
- "Survival The Island - Simulando RUST/DayZ no SAMP!",
- "Pegue seu presente, use /presente e ganhe leveis + cash.",
- "Novato, pegue seu kit iniciante, use /kit basico e aproveite!",
- "Para saber todos os comandos do servidor, use /ajuda.",
- "Está com duvidas? Não sabe o'que fazer? Use /duvida e fale com um admin.",
- "Você encontrou um BUG? Mande agora mesmo para nossa staff resolver, use /bug [texto]!",
- "Utilize agora mesmo nosso chat Global para falar com todos os players ON. Use: /g.",
- "Caso haver inregularidade tire um Print Screen apertando F8, e poste no /forum.",
- "Não tem nosso IP nos favoritos? Adicione agora mesmo. IP: 123.123.123:1234"
- };
- /*========================= CORES MSG =======================*/
- new RandomColors [] =
- {
- 0xFF5A00FF,
- 0xF50000FF,
- 0xF50000FF,
- 0x91FF00FF,
- 0xFF0091FF,
- 0x009000FF,
- 0x9600FFFF
- };
- /*========================= STOOP ANIM =======================*/
- new PlayerUsandoAnim[MAX_PLAYERS];
- StopLoopingAnim(playerid)
- {
- PlayerUsandoAnim[playerid] = 0;
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
- }
- /*=============================================================*/
- main()
- {
- print(" ________________________________________ ");
- print(" |º Survival The Island ® º|");
- print(" |º________________________________________º|");
- print(" |º Criado por: Power e Mozart º|");
- print(" |º Feito para: Survival The Island ® º|");
- print(" __________________________________________\n\n");
- }
- public OnGameModeInit()
- {
- SetTimer("SendMSG", 1000, true);
- SetGameModeText("BRASIL | STI");
- SendRconCommand("mapname Brasil Survival");
- SendRconCommand("language Português - BR");
- SetTimer("mMensagens", 60000, true);
- SetTimer("AtualizarPlayerStatsTexdraw", 1000, true);
- UsePlayerPedAnims();
- LimitGlobalChatRadius(1000.0);
- CriarLoots();
- CreateDynamicObject(17114,-109.9000000,-2423.3000000,100.1000000,0.0000000,0.0000000,288.0000000); //object(cuntwland45b) (1)
- CreateDynamicObject(17114,-61.3000000,-2713.2000000,120.0000000,0.0000000,0.0000000,229.9960000); //object(cuntwland45b) (2)
- CreateDynamicObject(17114,-343.1000100,-1893.4000000,80.0000000,0.0000000,0.0000000,270.0000000); //object(cuntwland45b) (3)
- CreateDynamicObject(17114,-496.6000100,-1766.6000000,100.0000000,0.0000000,0.0000000,334.0000000); //object(cuntwland45b) (4)
- CreateDynamicObject(17114,-243.6000100,-2173.0000000,100.0000000,0.0000000,0.0000000,272.0000000); //object(cuntwland45b) (5)
- CreateDynamicObject(17114,-295.2000100,-2924.3000000,100.0000000,0.0000000,0.0000000,175.9930000); //object(cuntwland45b) (7)
- CreateDynamicObject(17114,-434.5000000,-2901.0000000,90.0000000,0.0000000,0.0000000,147.9900000); //object(cuntwland45b) (8)
- CreateDynamicObject(17133,-627.7000100,-2805.3999000,120.0000000,0.0000000,0.0000000,142.0000000); //object(cuntwland68b) (1)
- CreateDynamicObject(17114,-787.7000100,-2645.3000000,160.0000000,0.0000000,0.0000000,99.9860000); //object(cuntwland45b) (9)
- CreateDynamicObject(17114,-864.2000100,-1777.6000000,160.0000000,0.0000000,0.0000000,3.9950000); //object(cuntwland45b) (10)
- CreateDynamicObject(17114,-1049.5000000,-1929.2000000,150.0000000,0.0000000,0.0000000,45.9940000); //object(cuntwland45b) (11)
- CreateDynamicObject(17114,-1169.0000000,-2190.0000000,115.0000000,0.0000000,0.0000000,47.9890000); //object(cuntwland45b) (12)
- CreateDynamicObject(17114,-1250.5000000,-2469.7000000,110.0000000,0.0000000,0.0000000,61.9890000); //object(cuntwland45b) (13)
- CreateDynamicObject(17114,-1162.2000000,-2606.3999000,140.0000000,0.0000000,0.0000000,113.9850000); //object(cuntwland45b) (14)
- CreateDynamicObject(17114,-913.4000200,-2610.0000000,160.0000000,0.0000000,0.0000000,189.9810000); //object(cuntwland45b) (15)
- CreateDynamicObject(17114,-916.0000000,-2612.1001000,142.2000000,0.0000000,0.0000000,189.9810000); //object(cuntwland45b) (16)
- CreateDynamicObject(17299,-1165.1000000,-2339.7000000,20.0000000,0.0000000,0.0000000,274.0000000); //object(cunt_rockgp2_27) (1)
- CreateDynamicObject(1337,-744.7294900,-1952.5635000,22.7200200,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (2)
- CreateDynamicObject(14872,-883.0999800,-1863.8000000,87.4000000,0.0000000,0.0000000,0.0000000); //object(kylie_logs) (1)
- CreateDynamicObject(669,-881.7999900,-1866.3000000,86.9000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree4) (1)
- CreateDynamicObject(3414,-734.5999800,-2643.2000000,83.9000000,0.0000000,0.0000000,146.0000000); //object(ce_oldhut1) (1)
- CreateDynamicObject(3418,-716.4000200,-2625.5000000,78.3000000,0.0000000,0.0000000,358.0000000); //object(ce_oldhut02) (1)
- CreateDynamicObject(3415,-728.7999900,-2629.2000000,78.6000000,6.0000000,0.0000000,124.0000000); //object(ce_loghut1) (1)
- CreateDynamicObject(12991,-720.4000200,-2639.0000000,79.6000000,350.0000000,0.0000000,0.0000000); //object(sw_shack02) (1)
- CreateDynamicObject(12937,-737.5000000,-2613.3999000,76.3000000,0.0000000,0.0000000,176.0000000); //object(ce_catshack) (1)
- CreateDynamicObject(11503,-711.0999800,-2644.3000000,83.0000000,0.0000000,0.0000000,218.0000000); //object(des_westrn11_05) (1)
- CreateDynamicObject(9227,-709.0999800,-2612.3000000,73.7000000,0.0000000,0.0000000,274.0000000); //object(moresfnshit20) (1)
- CreateDynamicObject(3644,-181.3000000,-2807.5000000,42.0000000,0.0000000,0.0000000,272.0000000); //object(idlebuild01_lax) (1)
- CreateDynamicObject(3641,-204.8000000,-2818.3000000,45.6000000,0.0000000,0.0000000,318.0000000); //object(glenphouse04_lax) (1)
- CreateDynamicObject(3588,-216.8000000,-2794.8999000,42.8000000,6.0000000,0.0000000,206.0000000); //object(sanped_hse1_las) (1)
- CreateDynamicObject(3355,-156.3000000,-2803.2000000,41.8000000,0.0000000,0.0000000,206.0000000); //object(cxrf_savhus1_) (1)
- CreateDynamicObject(3175,-174.3000000,-2788.3999000,39.6000000,0.0000000,0.0000000,0.0000000); //object(sm_airstrm_med_) (1)
- CreateDynamicObject(3173,-191.1000100,-2786.1001000,38.8000000,0.0000000,0.0000000,0.0000000); //object(trailer_large4_01) (1)
- CreateDynamicObject(1772,-179.1000100,-2795.5000000,40.4000000,0.0000000,0.0000000,0.0000000); //object(cj_hot_dog1) (1)
- CreateDynamicObject(1362,-183.3000000,-2796.1001000,40.2000000,0.0000000,0.0000000,0.0000000); //object(cj_firebin) (1)
- CreateDynamicObject(3594,-183.1000100,-2782.0000000,38.4000000,0.0000000,0.0000000,308.0000000); //object(la_fuckcar1) (1)
- CreateDynamicObject(1334,-191.3000000,-2779.5000000,38.8000000,0.0000000,0.0000000,0.0000000); //object(binnt04_la) (1)
- CreateDynamicObject(12954,-183.8999900,-2778.1001000,38.1000000,0.0000000,0.0000000,0.0000000); //object(sw_furnipile01) (1)
- CreateDynamicObject(12957,-181.3000000,-2807.2000000,41.9000000,0.0000000,0.0000000,20.0000000); //object(sw_pickupwreck01) (1)
- CreateDynamicObject(12957,-196.7000000,-2803.8999000,43.3000000,0.0000000,0.0000000,256.0000000); //object(sw_pickupwreck01) (2)
- CreateDynamicObject(1358,-167.7000000,-2796.8999000,41.3000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (1)
- CreateDynamicObject(1369,-186.7000000,-2799.3999000,44.3000000,0.0000000,0.0000000,0.0000000); //object(cj_wheelchair1) (1)
- CreateDynamicObject(3092,-183.3000000,-2796.1001000,42.5000000,0.0000000,0.0000000,0.0000000); //object(dead_tied_cop) (1)
- CreateDynamicObject(3099,-171.3000000,-2796.0000000,39.8000000,0.0000000,0.0000000,0.0000000); //object(break_wall_3b) (1)
- CreateDynamicObject(852,-182.3000000,-2791.0000000,38.6000000,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_4) (1)
- CreateDynamicObject(1571,-200.3000000,-2783.2000000,40.0000000,0.0000000,0.0000000,154.0000000); //object(cj_noodle_1) (1)
- CreateDynamicObject(3073,-178.8000000,-2768.1001000,41.3000000,0.0000000,0.0000000,228.0000000); //object(kmb_container_broke) (1)
- CreateDynamicObject(12957,-176.6000100,-2753.3000000,37.3000000,0.0000000,0.0000000,203.9980000); //object(sw_pickupwreck01) (3)
- CreateDynamicObject(12957,-185.6000100,-2751.8999000,35.7000000,0.0000000,0.0000000,255.9940000); //object(sw_pickupwreck01) (4)
- CreateDynamicObject(3594,-181.3000000,-2752.2000000,36.6000000,0.0000000,0.0000000,299.9960000); //object(la_fuckcar1) (2)
- CreateDynamicObject(3363,-193.1000100,-2768.8999000,35.7000000,0.0000000,0.0000000,0.0000000); //object(des_ruin1_) (1)
- CreateDynamicObject(3887,-1053.6000000,-2547.3000000,80.1000000,0.0000000,0.0000000,0.0000000); //object(demolish4_sfxrf) (2)
- CreateDynamicObject(3866,-998.7000100,-2530.3999000,90.7000000,0.0000000,0.0000000,174.0000000); //object(demolish1_sfxrf) (1)
- CreateDynamicObject(3887,-1001.6000000,-2557.6001000,84.7000000,0.0000000,0.0000000,146.0000000); //object(demolish4_sfxrf) (3)
- CreateDynamicObject(11088,-1049.0000000,-2608.5000000,86.0000000,3.0000000,0.0000000,184.0000000); //object(cf_ext_dem_sfs) (1)
- CreateDynamicObject(11440,-1017.5000000,-2558.0000000,79.6000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (1)
- CreateDynamicObject(11442,-1028.7000000,-2566.3999000,79.1000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo3) (1)
- CreateDynamicObject(11446,-1032.8000000,-2558.7000000,77.2000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo07) (1)
- CreateDynamicObject(11458,-1039.8000000,-2551.8000000,74.7000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo10) (1)
- CreateDynamicObject(11457,-1043.5000000,-2529.7000000,70.9000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo09) (1)
- CreateDynamicObject(11445,-1014.1000000,-2533.7000000,78.2000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo06) (1)
- CreateDynamicObject(11442,-1028.0000000,-2539.8000000,75.5000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo3) (2)
- CreateDynamicObject(11440,-1025.0000000,-2524.8999000,74.6000000,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (2)
- CreateDynamicObject(11428,-1037.7000000,-2512.7000000,76.2000000,0.0000000,0.0000000,290.0000000); //object(des_indruin02) (1)
- CreateDynamicObject(11427,-1021.4000000,-2585.0000000,90.3000000,0.0000000,0.0000000,288.0000000); //object(des_adobech) (1)
- CreateDynamicObject(11088,-1094.0000000,-2531.8000000,71.9000000,0.0000000,0.0000000,314.0000000); //object(cf_ext_dem_sfs) (2)
- CreateDynamicObject(3866,-1000.8000000,-2511.7000000,84.0000000,0.0000000,0.0000000,343.9960000); //object(demolish1_sfxrf) (2)
- CreateDynamicObject(3866,-1079.9000000,-2499.6001000,67.9000000,0.0000000,0.0000000,313.9930000); //object(demolish1_sfxrf) (3)
- CreateDynamicObject(13296,-295.7000100,-2230.7000000,31.8000000,0.0000000,0.0000000,296.0000000); //object(ce_roadsidegas) (1)
- CreateDynamicObject(17036,-305.2999900,-2210.0000000,28.8000000,0.0000000,0.0000000,0.0000000); //object(cuntw_carport1_) (1)
- CreateDynamicObject(18284,-283.8999900,-2252.3000000,31.8000000,0.0000000,0.0000000,324.0000000); //object(cw_tscanopy) (1)
- CreateDynamicObject(3252,-299.3999900,-2210.8000000,29.0000000,0.0000000,0.0000000,0.0000000); //object(des_oldwattwr_) (1)
- CreateDynamicObject(17324,-291.5000000,-2271.2000000,29.0000000,0.0000000,0.0000000,222.0000000); //object(cw_combbarn) (1)
- CreateDynamicObject(4514,-321.1000100,-2208.0000000,30.4000000,0.0000000,0.0000000,10.0000000); //object(cn2_roadblock01ld) (1)
- CreateDynamicObject(4514,-295.7999900,-2186.8000000,30.3000000,0.0000000,0.0000000,9.9980000); //object(cn2_roadblock01ld) (2)
- CreateDynamicObject(851,-312.7000100,-2222.2000000,28.1000000,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_2) (1)
- CreateDynamicObject(3006,-318.1000100,-2224.7000000,27.8000000,0.0000000,0.0000000,0.0000000); //object(smash_box_brk) (1)
- CreateDynamicObject(2890,-309.8999900,-2231.3000000,28.0000000,0.0000000,0.0000000,0.0000000); //object(kmb_skip) (1)
- CreateDynamicObject(1358,-307.0000000,-2222.7000000,29.4000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (2)
- CreateDynamicObject(1358,-295.8999900,-2241.8000000,29.9000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (3)
- CreateDynamicObject(12954,-308.5000000,-2240.6001000,28.8000000,0.0000000,0.0000000,0.0000000); //object(sw_furnipile01) (2)
- CreateDynamicObject(12957,-307.2999900,-2244.2000000,29.2000000,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (5)
- CreateDynamicObject(3594,-312.7000100,-2240.5000000,28.8000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar1) (3)
- CreateDynamicObject(3593,-297.7999900,-2248.8999000,29.4000000,0.0000000,0.0000000,324.0000000); //object(la_fuckcar2) (1)
- CreateDynamicObject(3399,-301.2000100,-2222.7000000,30.9000000,0.0000000,0.0000000,298.0000000); //object(cxrf_a51_stairs) (1)
- // BAMBIS ABAIXO
- Bambi = CreateObject(19315, -448.4130,-2647.3594,155.5421,0.0000000,0.0000000,0.0000000,0.0000000); // bambi
- // TEXT'S BAMBIS
- BambiText = Create3DTextLabel("* Bambi * \n {A9A9A9} Atire nele para matar! Depois /degolar!",AMARELO_2, -448.4129940,-2647.3593750,155.5420980, 20, 0);
- // PILHAS DE MADEIRA
- CreateDynamicObject(1463,-534.3222040,-2753.0402830,137.0267480,-17.0999960,-9.4999980,91.5000000); //
- CreateDynamicObject(1463,-410.0322870,-2683.9238280,158.8573450,9.1999990,-4.6000000,81.6000060); //
- CreateDynamicObject(1463,-568.3247070,-2639.3981930,146.2480160,-10.4999980,-2.7999990,93.1999350); //
- CreateDynamicObject(1463,-461.0124810,-2632.1486810,153.5100860,0.0000000,25.8999990,90.0000000); //
- // TEXT'S PILHAS DE MADEIRA
- Create3DTextLabel("* Pilha de Madeiras * \n {A9A9A9} Pegue Madeiras!",AMARELO_2, -534.3222040,-2753.0402830,137.0267480, 20, 0);
- Create3DTextLabel("* Pilha de Madeiras * \n {A9A9A9} Pegue Madeiras!",AMARELO_2, -410.0322870,-2683.9238280,158.8573450, 20, 0);
- Create3DTextLabel("* Pilha de Madeiras * \n {A9A9A9} Pegue Madeiras!",AMARELO_2, -568.3247070,-2639.3981930,146.2480160, 20, 0);
- Create3DTextLabel("* Pilha de Madeiras * \n {A9A9A9} Pegue Madeiras!",AMARELO_2, -461.0124810,-2632.1486810,153.5100860, 20, 0);
- // ARVORES ABAIXO
- // id:647 bush -748, -2453, 68 id:1463 wood pile
- Arvores[0] = CreateDynamicObject(657,-748.5999800,-2453.7000000,68.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (1)
- Arvores[1] = CreateDynamicObject(657,-717.9000200,-2465.5000000,68.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (2)
- Arvores[2] = CreateDynamicObject(657,-718.5000000,-2431.6001000,62.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (3)
- Arvores[3] = CreateDynamicObject(657,-691.0999800,-2438.5000000,63.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (4)
- Arvores[4] = CreateDynamicObject(657,-701.7000100,-2382.8000000,49.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (5)
- Arvores[5] = CreateDynamicObject(657,-576.0999800,-2230.5000000,27.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (6)
- Arvores[6] = CreateDynamicObject(657,-689.2000100,-2351.1001000,36.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (7)
- Arvores[7] = CreateDynamicObject(657,-645.4000200,-2373.2000000,33.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (8)
- Arvores[8] = CreateDynamicObject(657,-663.7998000,-2349.5996000,34.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (9)
- Arvores[9] = CreateDynamicObject(657,-654.2998000,-2321.5996000,34.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (10)
- Arvores[10] = CreateDynamicObject(657,-671.5996100,-2298.0996000,28.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (11)
- Arvores[11] = CreateDynamicObject(657,-632.2998000,-2291.5000000,27.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (12)
- Arvores[12] = CreateDynamicObject(657,-599.5996100,-2264.7002000,24.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (13)
- Arvores[13] = CreateDynamicObject(657,-569.7999900,-2258.8000000,25.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (14)
- Arvores[14] = CreateDynamicObject(657,-1058.1000000,-2456.8000000,60.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (15)
- Arvores[15] = CreateDynamicObject(657,-1090.2000000,-2338.3999000,49.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (16)
- Arvores[16] = CreateDynamicObject(657,-1024.4004000,-2431.2998000,65.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (17)
- Arvores[17] = CreateDynamicObject(657,-1055.0996000,-2416.0996000,58.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (18)
- Arvores[18] = CreateDynamicObject(657,-1080.0996000,-2355.0996000,47.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (19)
- Arvores[19] = CreateDynamicObject(657,-1106.7000000,-2298.8999000,41.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (20)
- Arvores[20] = CreateDynamicObject(657,-1112.6000000,-2332.5000000,42.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (21)
- Arvores[21] = CreateDynamicObject(657,-1092.7998000,-2323.2998000,51.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (22)
- Arvores[22] = CreateDynamicObject(657,-1061.0000000,-2309.7000000,53.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (23)
- Arvores[23] = CreateDynamicObject(657,-995.2999900,-2311.0000000,61.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (24)
- Arvores[24] = CreateDynamicObject(657,-968.0999800,-2339.3999000,65.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (25)
- Arvores[25] = CreateDynamicObject(657,-976.2000100,-2288.0000000,58.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (26)
- Arvores[26] = CreateDynamicObject(657,-908.0000000,-2401.3999000,58.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (27)
- Arvores[27] = CreateDynamicObject(657,-943.7999900,-2499.8999000,103.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (28)
- Arvores[28] = CreateDynamicObject(657,-914.9003900,-2438.2002000,80.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (29)
- Arvores[29] = CreateDynamicObject(657,-945.7002000,-2477.7002000,99.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (30)
- Arvores[30] = CreateDynamicObject(657,-764.5000000,-2409.0000000,64.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (31)
- Arvores[31] = CreateDynamicObject(657,-690.4000200,-2191.7000000,19.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (32)
- Arvores[32] = CreateDynamicObject(657,-726.5000000,-2197.8994000,34.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (33)
- Arvores[33] = CreateDynamicObject(657,-736.7998000,-2213.0996000,36.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (34)
- Arvores[34] = CreateDynamicObject(657,-665.0000000,-2180.5000000,18.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (35)
- Arvores[35] = CreateDynamicObject(657,-680.5000000,-2166.5000000,22.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (36)
- Arvores[36] = CreateDynamicObject(657,-670.4000200,-2115.8000000,25.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (37)
- Arvores[37] = CreateDynamicObject(657,-659.0996100,-2126.5996000,26.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (38)
- Arvores[38] = CreateDynamicObject(657,-643.9000200,-2090.5000000,27.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (39)
- Arvores[39] = CreateDynamicObject(657,-690.7999900,-2137.0000000,24.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (40)
- Arvores[40] = CreateDynamicObject(657,-763.5999800,-2221.8000000,21.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (41)
- Arvores[41] = CreateDynamicObject(657,-863.4000200,-2274.2000000,25.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (42)
- Arvores[42] = CreateDynamicObject(657,-870.4003900,-2246.0000000,26.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (43)
- Arvores[43] = CreateDynamicObject(657,-902.9000200,-2259.5000000,37.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (44)
- Arvores[44] = CreateDynamicObject(657,-804.5000000,-2297.3999000,28.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (45)
- Arvores[45] = CreateDynamicObject(657,-792.2000100,-2343.2000000,43.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (46)
- Arvores[46] = CreateDynamicObject(657,-809.4003900,-2328.5000000,38.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (47)
- Arvores[47] = CreateDynamicObject(657,-845.2000100,-2362.2000000,57.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (48)
- Arvores[48] = CreateDynamicObject(657,-576.7000100,-1995.9000000,45.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (49)
- Arvores[49] = CreateDynamicObject(657,-607.5996100,-2047.4004000,40.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (50)
- Arvores[50] = CreateDynamicObject(657,-572.7998000,-2016.0000000,47.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (51)
- Arvores[51] = CreateDynamicObject(657,-587.5000000,-1980.0000000,42.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (52)
- Arvores[52] = CreateDynamicObject(657,-603.7999900,-1948.3000000,33.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (53)
- Arvores[53] = CreateDynamicObject(657,-571.7998000,-1952.5996000,38.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (54)
- Arvores[54] = CreateDynamicObject(657,-513.7999900,-2002.7000000,47.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (55)
- Arvores[55] = CreateDynamicObject(657,-519.2998000,-1965.7002000,41.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (56)
- Arvores[56] = CreateDynamicObject(657,-531.2998000,-1988.9004000,46.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (57)
- Arvores[57] = CreateDynamicObject(657,-657.2999900,-1838.5000000,20.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (58)
- Arvores[58] = CreateDynamicObject(657,-587.7999900,-1831.6000000,29.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (59)
- Arvores[59] = CreateDynamicObject(657,-613.7002000,-1868.7002000,16.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (60)
- Arvores[60] = CreateDynamicObject(657,-557.5999800,-1858.4000000,18.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (61)
- Arvores[61] = CreateDynamicObject(657,-540.5000000,-1843.0000000,21.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (62)
- Arvores[62] = CreateDynamicObject(657,-529.5000000,-1862.7000000,13.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (63)
- Arvores[63] = CreateDynamicObject(657,-505.5000000,-1854.0000000,14.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (64)
- Arvores[64] = CreateDynamicObject(657,-393.7999900,-1952.2000000,19.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (65)
- Arvores[65] = CreateDynamicObject(657,-398.1000100,-1971.5000000,24.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (66)
- Arvores[66] = CreateDynamicObject(657,-397.8999900,-2003.4000000,30.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (67)
- Arvores[67] = CreateDynamicObject(657,-423.2999900,-2083.8000000,77.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (68)
- Arvores[68] = CreateDynamicObject(657,-422.7000100,-2113.1001000,83.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (69)
- Arvores[69] = CreateDynamicObject(657,-456.1000100,-2094.7000000,85.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (70)
- Arvores[70] = CreateDynamicObject(657,-486.7999900,-2112.8999000,89.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (71)
- Arvores[71] = CreateDynamicObject(657,-453.0000000,-2141.7000000,87.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (72)
- Arvores[72] = CreateDynamicObject(657,-568.5000000,-2120.6001000,70.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (73)
- Arvores[73] = CreateDynamicObject(657,-537.0999800,-2126.1001000,78.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (74)
- Arvores[74] = CreateDynamicObject(657,-325.5000000,-2588.3000000,127.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (75)
- Arvores[75] = CreateDynamicObject(657,-473.2998000,-2203.0996000,74.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (76)
- Arvores[76] = CreateDynamicObject(657,-374.6000100,-2221.3999000,65.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (77)
- Arvores[77] = CreateDynamicObject(657,-348.2999900,-2301.8999000,67.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (78)
- Arvores[78] = CreateDynamicObject(657,-351.2000100,-2343.3999000,82.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (79)
- Arvores[79] = CreateDynamicObject(657,-295.7000100,-2380.5000000,65.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (80)
- Arvores[80] = CreateDynamicObject(657,-317.4003900,-2319.0996000,62.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (81)
- Arvores[81] = CreateDynamicObject(657,-313.6000100,-2364.1001000,72.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (82)
- Arvores[82] = CreateDynamicObject(657,-310.2000100,-2429.5000000,80.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (83)
- Arvores[83] = CreateDynamicObject(657,-208.5000000,-2571.3999000,47.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (84)
- Arvores[84] = CreateDynamicObject(657,-290.2002000,-2456.5996000,73.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (85)
- Arvores[85] = CreateDynamicObject(657,-230.9003900,-2440.0996000,41.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (86)
- Arvores[86] = CreateDynamicObject(657,-250.9003900,-2437.0996000,50.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (87)
- Arvores[87] = CreateDynamicObject(657,-190.2002000,-2473.0996000,34.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (88)
- Arvores[88] = CreateDynamicObject(657,-199.2002000,-2529.7998000,35.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (89)
- Arvores[89] = CreateDynamicObject(657,-137.0000000,-2598.6001000,63.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (90)
- Arvores[90] = CreateDynamicObject(657,-135.0000000,-2492.0000000,29.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (91)
- Arvores[91] = CreateDynamicObject(657,-150.2002000,-2514.5996000,28.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (92)
- Arvores[92] = CreateDynamicObject(657,-131.2998000,-2572.0996000,55.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (93)
- Arvores[93] = CreateDynamicObject(657,-105.5996100,-2576.7002000,62.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (94)
- Arvores[94] = CreateDynamicObject(657,-105.5996100,-2576.7002000,62.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (95)
- Arvores[95] = CreateDynamicObject(657,-115.4000000,-2631.1001000,70.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (96)
- Arvores[96] = CreateDynamicObject(657,-127.5000000,-2665.3000000,69.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (97)
- Arvores[97] = CreateDynamicObject(657,-143.5000000,-2628.6001000,63.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (98)
- Arvores[98] = CreateDynamicObject(657,-149.0000000,-2701.1001000,72.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (99)
- Arvores[99] = CreateDynamicObject(657,-137.0000000,-2752.8999000,60.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (100)
- Arvores[100] = CreateDynamicObject(657,-423.5000000,-2218.3994000,70.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (101)
- Arvores[101] = CreateDynamicObject(657,-315.2002000,-2560.7998000,118.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (102)
- Arvores[102] = CreateDynamicObject(657,-381.5000000,-2663.8000000,146.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (103)
- Arvores[103] = CreateDynamicObject(657,-302.2000100,-2606.2000000,128.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (104)
- Arvores[104] = CreateDynamicObject(657,-344.7002000,-2611.5996000,137.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (105)
- Arvores[105] = CreateDynamicObject(657,-323.6000100,-2664.2000000,119.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (106)
- Arvores[106] = CreateDynamicObject(657,-451.3999900,-2320.5000000,77.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (107)
- Arvores[107] = CreateDynamicObject(657,-479.1000100,-2313.8000000,63.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (108)
- Arvores[108] = CreateDynamicObject(657,-523.5999800,-2376.1001000,53.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (109)
- Arvores[109] = CreateDynamicObject(657,-470.2998000,-2356.2002000,71.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (110)
- Arvores[110] = CreateDynamicObject(657,-411.5000000,-2410.3000000,87.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (111)
- Arvores[111] = CreateDynamicObject(657,-426.2998000,-2368.7998000,86.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (112)
- Arvores[112] = CreateDynamicObject(657,-392.3999900,-2439.8000000,94.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (113)
- Arvores[113] = CreateDynamicObject(657,-372.1000100,-2419.1001000,96.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (114)
- Arvores[114] = CreateDynamicObject(657,-364.5000000,-2459.6001000,102.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (115)
- Arvores[115] = CreateDynamicObject(657,-390.1000100,-2504.3000000,109.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (116)
- Arvores[116] = CreateDynamicObject(657,-368.6000100,-2520.6001000,115.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (117)
- Arvores[117] = CreateDynamicObject(657,-403.2999900,-2604.8000000,144.6000100,0.0000000,0.0000000,0.0000000); //object(pinetree02) (118)
- Arvores[118] = CreateDynamicObject(657,-381.8999900,-2557.5000000,130.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (119)
- Arvores[119] = CreateDynamicObject(657,-410.8999900,-2536.7000000,121.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (120)
- Arvores[120] = CreateDynamicObject(657,-464.0000000,-2749.5000000,145.8999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (121)
- Arvores[121] = CreateDynamicObject(657,-444.2999900,-2787.1001000,115.6000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (122)
- Arvores[122] = CreateDynamicObject(657,-421.2998000,-2654.5996000,151.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (123)
- Arvores[123] = CreateDynamicObject(657,-463.8999900,-2600.3999000,139.8999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (124)
- Arvores[124] = CreateDynamicObject(657,-443.5000000,-2682.7998000,159.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (125)
- Arvores[125] = CreateDynamicObject(657,-464.0000000,-2657.8994000,156.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (126)
- Arvores[126] = CreateDynamicObject(657,-474.2999900,-2519.6001000,109.4000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (127)
- Arvores[127] = CreateDynamicObject(657,-461.2998000,-2539.8994000,115.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (128)
- Arvores[128] = CreateDynamicObject(657,-501.6000100,-2423.3999000,105.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (129)
- Arvores[129] = CreateDynamicObject(657,-479.7002000,-2474.0000000,111.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (130)
- Arvores[130] = CreateDynamicObject(657,-452.0000000,-2436.8000000,112.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (131)
- Arvores[131] = CreateDynamicObject(657,-380.0000000,-2726.6001000,128.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (132)
- Arvores[132] = CreateDynamicObject(657,-406.5000000,-2753.3999000,129.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (133)
- Arvores[133] = CreateDynamicObject(657,-370.7999900,-2771.5000000,98.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (134)
- Arvores[134] = CreateDynamicObject(657,-336.1000100,-2776.3000000,82.9000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (135)
- Arvores[135] = CreateDynamicObject(657,-431.4003900,-2724.8994000,158.6000100,0.0000000,0.0000000,0.0000000); //object(pinetree02) (136)
- Arvores[136] = CreateDynamicObject(657,-606.0999800,-2781.8999000,111.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (137)
- Arvores[137] = CreateDynamicObject(657,-510.5996100,-2778.2002000,123.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (138)
- Arvores[138] = CreateDynamicObject(657,-543.7998000,-2781.8994000,122.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (139)
- Arvores[139] = CreateDynamicObject(657,-577.0000000,-2786.7998000,115.3000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (140)
- Arvores[140] = CreateDynamicObject(657,-573.4000200,-2755.8999000,127.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (141)
- Arvores[141] = CreateDynamicObject(657,-605.2999900,-2745.6001000,117.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (142)
- Arvores[142] = CreateDynamicObject(657,-576.4000200,-2722.0000000,128.3999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (143)
- Arvores[143] = CreateDynamicObject(657,-526.9000200,-2726.5000000,142.2000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (144)
- Arvores[144] = CreateDynamicObject(657,-557.0996100,-2737.3994000,133.8999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (145)
- Arvores[145] = CreateDynamicObject(657,-481.3999900,-2707.2000000,157.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (146)
- Arvores[146] = CreateDynamicObject(657,-578.9000200,-2673.3999000,137.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (147)
- Arvores[147] = CreateDynamicObject(657,-608.7000100,-2615.6001000,132.8000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (148)
- Arvores[148] = CreateDynamicObject(657,-618.2998000,-2655.7998000,121.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (149)
- Arvores[149] = CreateDynamicObject(657,-565.5999800,-2625.8000000,146.1000100,0.0000000,0.0000000,0.0000000); //object(pinetree02) (150)
- Arvores[150] = CreateDynamicObject(657,-506.0000000,-2622.8999000,161.6000100,0.0000000,0.0000000,0.0000000); //object(pinetree02) (151)
- Arvores[151] = CreateDynamicObject(657,-578.9003900,-2579.2002000,130.7000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (152)
- Arvores[152] = CreateDynamicObject(657,-595.4003900,-2560.7002000,124.5000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (153)
- Arvores[153] = CreateDynamicObject(657,-554.7998000,-2549.2998000,135.8999900,0.0000000,0.0000000,0.0000000); //object(pinetree02) (154)
- Arvores[154] = CreateDynamicObject(657,-526.5996100,-2578.2002000,146.0000000,0.0000000,0.0000000,0.0000000); //object(pinetree02) (155)
- // TEXT'S ARVORS
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -748.5999800,-2453.7000000,68.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -717.9000200,-2465.5000000,68.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -718.5000000,-2431.6001000,62.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -691.0999800,-2438.5000000,63.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -701.7000100,-2382.8000000,49.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -576.0999800,-2230.5000000,27.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -689.2000100,-2351.1001000,36.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -645.4000200,-2373.2000000,33.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -663.7998000,-2349.5996000,34.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -654.2998000,-2321.5996000,34.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -671.5996100,-2298.0996000,28.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -632.2998000,-2291.5000000,27.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -599.5996100,-2264.7002000,24.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -569.7999900,-2258.8000000,25.9000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1058.1000000,-2456.8000000,60.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1090.2000000,-2338.3999000,49.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1024.4004000,-2431.2998000,65.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1055.0996000,-2416.0996000,58.9000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1080.0996000,-2355.0996000,47.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1106.7000000,-2298.8999000,41.9000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1112.6000000,-2332.5000000,42.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1092.7998000,-2323.2998000,51.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -1061.0000000,-2309.7000000,53.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -995.2999900,-2311.0000000,61.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -968.0999800,-2339.3999000,65.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -976.2000100,-2288.0000000,58.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -908.0000000,-2401.3999000,58.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -943.7999900,-2499.8999000,103.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -914.9003900,-2438.2002000,80.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -945.7002000,-2477.7002000,99.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -764.5000000,-2409.0000000,64.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -690.4000200,-2191.7000000,19.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -726.5000000,-2197.8994000,34.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -736.7998000,-2213.0996000,36.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -665.0000000,-2180.5000000,18.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -680.5000000,-2166.5000000,22.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -670.4000200,-2115.8000000,25.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -659.0996100,-2126.5996000,26.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -643.9000200,-2090.5000000,27.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -690.7999900,-2137.0000000,24.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -763.5999800,-2221.8000000,21.6000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -863.4000200,-2274.2000000,25.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -870.4003900,-2246.0000000,26.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -902.9000200,-2259.5000000,37.9000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -804.5000000,-2297.3999000,28.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -792.2000100,-2343.2000000,43.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -809.4003900,-2328.5000000,38.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -845.2000100,-2362.2000000,57.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -576.7000100,-1995.9000000,45.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -607.5996100,-2047.4004000,40.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -572.7998000,-2016.0000000,47.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -587.5000000,-1980.0000000,42.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -603.7999900,-1948.3000000,33.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -571.7998000,-1952.5996000,38.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -513.7999900,-2002.7000000,47.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -519.2998000,-1965.7002000,41.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -531.2998000,-1988.9004000,46.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -657.2999900,-1838.5000000,20.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -587.7999900,-1831.6000000,29.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -613.7002000,-1868.7002000,16.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -557.5999800,-1858.4000000,18.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -540.5000000,-1843.0000000,21.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -529.5000000,-1862.7000000,13.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -505.5000000,-1854.0000000,14.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -393.7999900,-1952.2000000,19.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -398.1000100,-1971.5000000,24.6000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -397.8999900,-2003.4000000,30.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -423.2999900,-2083.8000000,77.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -422.7000100,-2113.1001000,83.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -456.1000100,-2094.7000000,85.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -486.7999900,-2112.8999000,89.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -453.0000000,-2141.7000000,87.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -568.5000000,-2120.6001000,70.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -537.0999800,-2126.1001000,78.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -325.5000000,-2588.3000000,127.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -473.2998000,-2203.0996000,74.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -374.6000100,-2221.3999000,65.9000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -348.2999900,-2301.8999000,67.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -351.2000100,-2343.3999000,82.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -295.7000100,-2380.5000000,65.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -317.4003900,-2319.0996000,62.6000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -313.6000100,-2364.1001000,72.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -310.2000100,-2429.5000000,80.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -208.5000000,-2571.3999000,47.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -290.2002000,-2456.5996000,73.6000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -230.9003900,-2440.0996000,41.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -250.9003900,-2437.0996000,50.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -190.2002000,-2473.0996000,34.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -199.2002000,-2529.7998000,35.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -137.0000000,-2598.6001000,63.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -135.0000000,-2492.0000000,29.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -150.2002000,-2514.5996000,28.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -131.2998000,-2572.0996000,55.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -105.5996100,-2576.7002000,62.6000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -105.5996100,-2576.7002000,62.6000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -115.4000000,-2631.1001000,70.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -127.5000000,-2665.3000000,69.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -143.5000000,-2628.6001000,63.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -149.0000000,-2701.1001000,72.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -137.0000000,-2752.8999000,60.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -423.5000000,-2218.3994000,70.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -315.2002000,-2560.7998000,118.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -381.5000000,-2663.8000000,146.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -302.2000100,-2606.2000000,128.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -344.7002000,-2611.5996000,137.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -323.6000100,-2664.2000000,119.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -451.3999900,-2320.5000000,77.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -479.1000100,-2313.8000000,63.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -523.5999800,-2376.1001000,53.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -470.2998000,-2356.2002000,71.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -411.5000000,-2410.3000000,87.9000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -426.2998000,-2368.7998000,86.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -392.3999900,-2439.8000000,94.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -372.1000100,-2419.1001000,96.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -364.5000000,-2459.6001000,102.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -390.1000100,-2504.3000000,109.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -368.6000100,-2520.6001000,115.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -403.2999900,-2604.8000000,144.6000100, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -381.8999900,-2557.5000000,130.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -410.8999900,-2536.7000000,121.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -464.0000000,-2749.5000000,145.8999900, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -444.2999900,-2787.1001000,115.6000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -421.2998000,-2654.5996000,151.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -463.8999900,-2600.3999000,139.8999900, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -443.5000000,-2682.7998000,159.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -464.0000000,-2657.8994000,156.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -474.2999900,-2519.6001000,109.4000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -461.2998000,-2539.8994000,115.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -501.6000100,-2423.3999000,105.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -479.7002000,-2474.0000000,111.9000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -452.0000000,-2436.8000000,112.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -380.0000000,-2726.6001000,128.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -406.5000000,-2753.3999000,129.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -370.7999900,-2771.5000000,98.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -336.1000100,-2776.3000000,82.9000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -431.4003900,-2724.8994000,158.6000100, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -606.0999800,-2781.8999000,111.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -510.5996100,-2778.2002000,123.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -543.7998000,-2781.8994000,122.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -577.0000000,-2786.7998000,115.3000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -573.4000200,-2755.8999000,127.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -605.2999900,-2745.6001000,117.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -576.4000200,-2722.0000000,128.3999900, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -526.9000200,-2726.5000000,142.2000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -557.0996100,-2737.3994000,133.8999900, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -481.3999900,-2707.2000000,157.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -578.9000200,-2673.3999000,137.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -608.7000100,-2615.6001000,132.8000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -618.2998000,-2655.7998000,121.1000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -565.5999800,-2625.8000000,146.1000100, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -506.0000000,-2622.8999000,161.6000100, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -578.9003900,-2579.2002000,130.7000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -595.4003900,-2560.7002000,124.5000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -554.7998000,-2549.2998000,135.8999900, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -526.5996100,-2578.2002000,146.0000000, 20, 0);
- Create3DTextLabel("* Árvore * \n {A9A9A9} Pegue Madeiras e Frutas!",AMARELO_2, -748.5999800, -2453.7000000, 69.0000000, 20, 0);
- // PEDRAS
- CreateDynamicObject(897,-543.0999800,-2619.3999000,154.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (1)
- CreateDynamicObject(897,-651.2999900,-2649.6001000,102.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (2)
- CreateDynamicObject(897,-596.5000000,-2495.0000000,62.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (3)
- CreateDynamicObject(897,-750.2999900,-2473.3000000,75.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (4)
- CreateDynamicObject(897,-584.2999900,-1946.1000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (5)
- CreateDynamicObject(897,-855.2002000,-2290.2998000,26.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (6)
- CreateDynamicObject(897,-600.2002000,-2090.3994000,40.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (7)
- CreateDynamicObject(897,-431.6000100,-2107.8000000,88.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (8)
- CreateDynamicObject(897,-440.9003900,-1838.0000000,8.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (9)
- CreateDynamicObject(897,-297.6000100,-2406.3000000,74.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (10)
- CreateDynamicObject(897,-146.2000000,-2485.3999000,30.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (11)
- CreateDynamicObject(897,-126.7000000,-2601.5000000,69.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (12)
- CreateDynamicObject(897,-142.3999900,-2694.0000000,74.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (13)
- CreateDynamicObject(897,-584.2000100,-2267.7000000,27.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (14)
- CreateDynamicObject(897,-343.7002000,-2641.5000000,135.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (15)
- CreateDynamicObject(897,-418.7002000,-2705.8994000,162.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (16)
- CreateDynamicObject(897,-928.5996100,-2505.7998000,114.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (17)
- CreateDynamicObject(897,-1045.5996000,-2076.5000000,57.9000000,0.0000000,0.0000000,0.0000000); //object(searock01) (18)
- CreateDynamicObject(897,-899.7998000,-1870.5996000,88.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (19)
- CreateDynamicObject(897,-1083.7000000,-2193.0000000,41.0000000,0.0000000,0.0000000,0.0000000); //object(searock01) (20)
- // TEXT'S PEDRAS
- // TEXT'S TODOS
- Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -722.4331,-2055.1331,6.3556, 20, 0);
- Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -782.6783,-2038.8295,6.6471, 20, 0);
- Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -805.0019,-1935.4814,6.3195, 20, 0);
- Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -724.8286,-1873.4583,6.8128, 20, 0);
- Create3DTextLabel("* Açude * \n {A9A9A9} Pegue Peixes e Águas!",AMARELO_2, -706.3614,-1933.9801,6.4755, 20, 0);
- // APOCALYPSE
- CreateDynamicObject(791,-355.7000100,-2326.0000000,60.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (1)
- CreateDynamicObject(791,-620.2002000,-1849.5000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (2)
- CreateDynamicObject(791,-488.7999900,-2424.3999000,100.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (3)
- CreateDynamicObject(791,-363.5000000,-2554.2000000,120.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (4)
- CreateDynamicObject(791,-590.7000100,-2745.1001000,121.5000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (5)
- CreateDynamicObject(791,-451.9003900,-2698.2998000,163.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (6)
- CreateDynamicObject(791,-540.2002000,-2609.0996000,140.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (7)
- CreateDynamicObject(791,-391.5996100,-2435.2998000,93.6000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (8)
- CreateDynamicObject(791,-707.0000000,-2390.8999000,40.0000000,0.0000000,0.0000000,74.9980000); //object(vbg_fir_copse) (9)
- CreateDynamicObject(791,-1015.8000000,-2538.8000000,70.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (10)
- CreateDynamicObject(791,-1037.7000000,-2486.8999000,67.8000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (11)
- CreateDynamicObject(3920,-1055.0000000,-2520.3999000,77.6000000,0.0000000,0.0000000,0.0000000); //object(lib_veg3) (1)
- CreateDynamicObject(647,-1010.4000000,-2494.8000000,78.4000000,0.0000000,0.0000000,0.0000000); //object(new_bushsm) (1)
- CreateDynamicObject(647,-1056.7000000,-2509.3000000,67.5000000,0.0000000,0.0000000,0.0000000); //object(new_bushsm) (2)
- CreateDynamicObject(647,-1062.8000000,-2526.8999000,68.0000000,0.0000000,0.0000000,0.0000000); //object(new_bushsm) (3)
- CreateDynamicObject(647,-1054.1000000,-2520.3999000,68.0000000,0.0000000,0.0000000,0.0000000); //object(new_bushsm) (4)
- CreateDynamicObject(728,-1045.7000000,-2514.2000000,68.6000000,0.0000000,0.0000000,0.0000000); //object(tree_hipoly06) (1)
- CreateDynamicObject(759,-1039.3000000,-2519.5000000,70.7000000,0.0000000,0.0000000,0.0000000); //object(sm_bush_large_1) (1)
- CreateDynamicObject(762,-1029.2000000,-2522.2000000,79.3000000,0.0000000,0.0000000,0.0000000); //object(new_bushtest) (1)
- CreateDynamicObject(762,-1036.0000000,-2579.7000000,79.3000000,0.0000000,0.0000000,0.0000000); //object(new_bushtest) (2)
- CreateDynamicObject(803,-1015.9000000,-2574.6001000,83.6000000,0.0000000,0.0000000,0.0000000); //object(genveg_bush09) (1)
- CreateDynamicObject(805,-1022.6000000,-2556.6001000,80.3000000,0.0000000,0.0000000,0.0000000); //object(genveg_bush11) (1)
- CreateDynamicObject(817,-1056.1000000,-2535.3999000,69.1000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowers01) (1)
- CreateDynamicObject(819,-1037.3000000,-2530.3999000,74.2000000,0.0000000,0.0000000,0.0000000); //object(genveg_tallgrass03) (1)
- CreateDynamicObject(824,-299.3999900,-2231.2000000,30.6000000,0.0000000,0.0000000,0.0000000); //object(genveg_tallgrass08) (1)
- CreateDynamicObject(824,-288.2000100,-2244.0000000,30.6000000,0.0000000,0.0000000,0.0000000); //object(genveg_tallgrass08) (2)
- CreateDynamicObject(825,-321.7999900,-2224.8999000,29.9000000,0.0000000,0.0000000,0.0000000); //object(genveg_bushy) (1)
- CreateDynamicObject(874,-306.0000000,-2232.5000000,29.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (1)
- CreateDynamicObject(874,-303.8999900,-2251.7000000,30.3000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (2)
- CreateDynamicObject(874,-307.6000100,-2211.7000000,30.5000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (3)
- CreateDynamicObject(874,-285.2000100,-2281.3999000,31.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (4)
- CreateDynamicObject(9034,-277.7000100,-2223.8999000,29.6000000,0.0000000,0.0000000,0.0000000); //object(tikitrees01_lvs) (1)
- CreateDynamicObject(13802,-996.5999800,-2475.1001000,79.1000000,0.0000000,0.0000000,0.0000000); //object(skateivy) (1)
- CreateDynamicObject(13802,-996.2000100,-2471.3000000,78.7000000,0.0000000,0.0000000,0.0000000); //object(skateivy) (2)
- CreateDynamicObject(13802,-1004.2000000,-2499.6001000,83.1000000,0.0000000,0.0000000,0.0000000); //object(skateivy) (3)
- CreateDynamicObject(14400,-1001.5000000,-2504.7000000,81.0000000,0.0000000,0.0000000,0.0000000); //object(flower-bush08) (1)
- CreateDynamicObject(16390,-1053.9000000,-2511.8000000,70.2000000,0.0000000,0.0000000,17.2500000); //object(desn2_studbush) (1)
- CreateDynamicObject(874,-1071.7000000,-2518.0000000,67.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (5)
- CreateDynamicObject(874,-1042.5000000,-2501.8999000,69.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (6)
- CreateDynamicObject(874,-1037.3000000,-2520.0000000,73.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (7)
- CreateDynamicObject(874,-1023.9000000,-2500.7000000,74.8000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (8)
- CreateDynamicObject(874,-1032.1000000,-2498.3000000,72.1000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (9)
- CreateDynamicObject(874,-1044.2000000,-2481.6001000,67.6000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (10)
- CreateDynamicObject(874,-1005.9000000,-2554.3000000,83.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (11)
- CreateDynamicObject(874,-1020.6000000,-2566.6001000,82.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (12)
- CreateDynamicObject(874,-1031.7000000,-2592.3000000,84.4000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (13)
- CreateDynamicObject(874,-1078.4000000,-2596.3000000,77.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (14)
- CreateDynamicObject(874,-1071.7000000,-2601.3000000,82.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (15)
- CreateDynamicObject(874,-1119.5000000,-2548.7000000,71.6000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (16)
- CreateDynamicObject(874,-1082.6000000,-2540.6001000,69.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (17)
- CreateDynamicObject(874,-1057.1000000,-2510.0000000,67.4000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (18)
- CreateDynamicObject(874,-1002.3000000,-2484.6001000,80.1000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (19)
- CreateDynamicObject(874,-1017.5000000,-2484.2000000,75.3000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (20)
- CreateDynamicObject(874,-1003.8000000,-2530.0000000,82.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (21)
- CreateDynamicObject(874,-1071.6000000,-2568.0000000,75.0000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (22)
- CreateDynamicObject(874,-181.2000000,-2786.2000000,40.3000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (23)
- CreateDynamicObject(874,-198.0000000,-2791.0000000,41.8000000,0.0000000,0.0000000,17.2500000); //object(veg_procgrasspatch) (24)
- CreateDynamicObject(874,-219.3999900,-2794.0000000,44.1000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (25)
- CreateDynamicObject(874,-214.8000000,-2778.8000000,41.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (26)
- CreateDynamicObject(874,-198.3999900,-2777.8999000,39.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (27)
- CreateDynamicObject(874,-161.8000000,-2777.3000000,43.5000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (28)
- CreateDynamicObject(874,-152.6000100,-2798.2000000,45.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (29)
- CreateDynamicObject(874,-167.7000000,-2817.8999000,42.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (30)
- CreateDynamicObject(874,-206.3000000,-2820.0000000,45.2000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (31)
- CreateDynamicObject(874,-176.1000100,-2763.8999000,40.6000000,0.0000000,0.0000000,18.2500000); //object(veg_procgrasspatch) (32)
- CreateDynamicObject(874,-187.7000000,-2756.6001000,36.8000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (33)
- CreateDynamicObject(8836,-184.8000000,-2764.2000000,39.1000000,0.0000000,0.0000000,0.0000000); //object(pirtetrees02_lvs) (1)
- CreateDynamicObject(791,-236.6000100,-2813.0000000,40.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (12)
- CreateDynamicObject(791,-227.8999900,-2753.3999000,30.0000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (13)
- CreateDynamicObject(874,-591.0999800,-2750.1001000,67.8000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (34)
- CreateDynamicObject(874,-577.4000200,-2747.5000000,67.2000000,0.0000000,0.0000000,54.0000000); //object(veg_procgrasspatch) (35)
- CreateDynamicObject(874,-560.0000000,-2750.7000000,66.9000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (36)
- CreateDynamicObject(874,-546.9000200,-2748.7000000,66.9000000,0.0000000,0.0000000,110.0000000); //object(veg_procgrasspatch) (37)
- CreateDynamicObject(874,-533.7000100,-2754.3000000,66.9000000,0.0000000,0.0000000,297.9950000); //object(veg_procgrasspatch) (38)
- CreateDynamicObject(874,-512.4000200,-2753.3000000,66.9000000,0.0000000,0.0000000,297.9930000); //object(veg_procgrasspatch) (39)
- CreateDynamicObject(874,-500.8999900,-2755.8999000,66.7000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (40)
- CreateDynamicObject(874,-484.7000100,-2757.3999000,66.7000000,0.0000000,0.0000000,288.0000000); //object(veg_procgrasspatch) (41)
- CreateDynamicObject(874,-469.8999900,-2763.0000000,66.7000000,0.0000000,0.0000000,219.9960000); //object(veg_procgrasspatch) (42)
- CreateDynamicObject(874,-459.7999900,-2765.8999000,66.7000000,0.0000000,0.0000000,351.9900000); //object(veg_procgrasspatch) (43)
- CreateDynamicObject(874,-449.1000100,-2766.3000000,66.7000000,0.0000000,0.0000000,9.9850000); //object(veg_procgrasspatch) (44)
- CreateDynamicObject(874,-436.7000100,-2766.3000000,66.7000000,0.0000000,0.0000000,309.9810000); //object(veg_procgrasspatch) (45)
- CreateDynamicObject(874,-427.8999900,-2772.5000000,66.7000000,0.0000000,0.0000000,225.9790000); //object(veg_procgrasspatch) (46)
- CreateDynamicObject(874,-415.2999900,-2775.7000000,66.7000000,0.0000000,0.0000000,225.9780000); //object(veg_procgrasspatch) (47)
- CreateDynamicObject(18451,-591.7000100,-2745.0000000,66.6000000,0.0000000,0.0000000,0.0000000); //object(cs_oldcarjmp) (1)
- CreateDynamicObject(4517,-585.4000200,-2750.0000000,69.2000000,0.0000000,0.0000000,268.0000000); //object(cn2_roadblock04ld) (1)
- CreateDynamicObject(12957,-307.2998000,-2244.2002000,29.2000000,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (6)
- CreateDynamicObject(12957,-562.2999900,-2749.8999000,66.0000000,0.0000000,0.0000000,326.0000000); //object(sw_pickupwreck01) (7)
- CreateDynamicObject(12957,-532.7999900,-2748.1001000,66.0000000,0.0000000,0.0000000,11.9970000); //object(sw_pickupwreck01) (8)
- CreateDynamicObject(3594,-382.5190100,-2780.1228000,63.5141300,0.0000000,0.0000000,0.0000000); //object(la_fuckcar1) (4)
- CreateDynamicObject(3594,-378.3999900,-2787.8000000,63.1000000,0.0000000,0.0000000,130.0000000); //object(la_fuckcar1) (5)
- CreateDynamicObject(3593,-378.8999900,-2781.7000000,63.2000000,0.0000000,0.0000000,216.0000000); //object(la_fuckcar2) (2)
- CreateDynamicObject(13591,-382.7999900,-2788.5000000,63.0000000,0.0000000,0.0000000,40.0000000); //object(kickcar28) (1)
- CreateDynamicObject(3594,-375.0000000,-2781.8999000,62.9000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar1) (6)
- CreateDynamicObject(12957,-392.7000100,-2783.2000000,64.5000000,0.0000000,0.0000000,44.0000000); //object(sw_pickupwreck01) (9)
- CreateDynamicObject(12957,-400.5000000,-2775.6001000,64.9000000,0.0000000,0.0000000,320.0000000); //object(sw_pickupwreck01) (10)
- CreateDynamicObject(1327,-531.2999900,-2748.3000000,65.7000000,0.0000000,0.0000000,0.0000000); //object(junk_tyre) (1)
- CreateDynamicObject(1327,-514.4000200,-2759.6001000,65.7000000,0.0000000,0.0000000,68.0000000); //object(junk_tyre) (2)
- CreateDynamicObject(1358,-476.2000100,-2758.8000000,66.6000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (4)
- CreateDynamicObject(1358,-419.7999900,-2774.3999000,66.1000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (5)
- CreateDynamicObject(1358,-397.0000000,-2779.2998000,65.1000000,0.0000000,0.0000000,0.0000000); //object(cj_skip_rubbish) (6)
- CreateDynamicObject(1441,-409.7000100,-2772.0000000,65.1000000,0.0000000,0.0000000,0.0000000); //object(dyn_box_pile_4) (1)
- CreateDynamicObject(874,-711.9000200,-2603.2000000,71.8000000,0.0000000,0.0000000,84.0000000); //object(veg_procgrasspatch) (48)
- CreateDynamicObject(874,-725.5999800,-2606.3000000,71.8000000,0.0000000,0.0000000,83.9960000); //object(veg_procgrasspatch) (49)
- CreateDynamicObject(874,-716.4000200,-2625.5000000,76.8000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (50)
- CreateDynamicObject(874,-723.0000000,-2648.3000000,82.5000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (51)
- CreateDynamicObject(874,-731.7999900,-2646.0000000,82.5000000,0.0000000,0.0000000,0.0000000); //object(veg_procgrasspatch) (52)
- // CARRO TESTES
- AddStaticVehicleEx(568, -463.6782, -2663.1365, 157.5599, 0, 0, 0, 1, 0);
- /* CREDITOS */
- Info[0] = TextDrawCreate(437.000335, 101.055488, "usebox");
- TextDrawLetterSize(Info[0], 0.000000, 22.265630);
- TextDrawTextSize(Info[0], 202.444442, 0.000000);
- TextDrawAlignment(Info[0], 1);
- TextDrawColor(Info[0], 0);
- TextDrawUseBox(Info[0], true);
- TextDrawBoxColor(Info[0], 60);
- TextDrawSetShadow(Info[0], 0);
- TextDrawSetOutline(Info[0], 0);
- TextDrawFont(Info[0], 0);
- Info[1] = TextDrawCreate(212.555557, 100.537040, "usebox");
- TextDrawLetterSize(Info[1], 0.000000, 22.323251);
- TextDrawTextSize(Info[1], 202.444442, 0.000000);
- TextDrawAlignment(Info[1], 1);
- TextDrawColor(Info[1], 0);
- TextDrawUseBox(Info[1], true);
- TextDrawBoxColor(Info[1], -1979711386);
- TextDrawSetShadow(Info[1], 0);
- TextDrawSetOutline(Info[1], 0);
- TextDrawFont(Info[1], 1);
- Info[2] = TextDrawCreate(436.888793, 100.500007, "usebox");
- TextDrawLetterSize(Info[2], 0.000000, 22.323251);
- TextDrawTextSize(Info[2], 426.333190, 0.000000);
- TextDrawAlignment(Info[2], 1);
- TextDrawColor(Info[2], 0);
- TextDrawUseBox(Info[2], true);
- TextDrawBoxColor(Info[2], -1979711386);
- TextDrawSetShadow(Info[2], 0);
- TextDrawSetOutline(Info[2], 0);
- TextDrawFont(Info[2], 0);
- Info[3] = TextDrawCreate(430.665802, 100.462989, "usebox");
- TextDrawLetterSize(Info[3], 0.000000, 0.045474);
- TextDrawTextSize(Info[3], 207.999862, 0.000000);
- TextDrawAlignment(Info[3], 1);
- TextDrawColor(Info[3], 0);
- TextDrawUseBox(Info[3], true);
- TextDrawBoxColor(Info[3], -1979711386);
- TextDrawSetShadow(Info[3], 0);
- TextDrawSetOutline(Info[3], 0);
- TextDrawFont(Info[3], 0);
- Info[4] = TextDrawCreate(431.110229, 301.092620, "usebox");
- TextDrawLetterSize(Info[4], 0.000000, 0.045474);
- TextDrawTextSize(Info[4], 207.999847, 0.000000);
- TextDrawAlignment(Info[4], 1);
- TextDrawColor(Info[4], 0);
- TextDrawUseBox(Info[4], true);
- TextDrawBoxColor(Info[4], -1979711386);
- TextDrawSetShadow(Info[4], 0);
- TextDrawSetOutline(Info[4], 0);
- TextDrawFont(Info[4], 0);
- Info[5] = TextDrawCreate(430.999114, 126.314796, "usebox");
- TextDrawLetterSize(Info[5], 0.000000, 0.045474);
- TextDrawTextSize(Info[5], 207.999847, 0.000000);
- TextDrawAlignment(Info[5], 1);
- TextDrawColor(Info[5], 0);
- TextDrawUseBox(Info[5], true);
- TextDrawBoxColor(Info[5], -1979711386);
- TextDrawSetShadow(Info[5], 0);
- TextDrawSetOutline(Info[5], 0);
- TextDrawFont(Info[5], 0);
- Info[6] = TextDrawCreate(254.332412, 289.129577, "usebox");
- TextDrawLetterSize(Info[6], 0.000000, 0.489918);
- TextDrawTextSize(Info[6], 210.777587, 0.000000);
- TextDrawAlignment(Info[6], 1);
- TextDrawColor(Info[6], 0);
- TextDrawUseBox(Info[6], true);
- TextDrawBoxColor(Info[6], -1979711386);
- TextDrawSetShadow(Info[6], 0);
- TextDrawSetOutline(Info[6], 0);
- TextDrawFont(Info[6], 0);
- Info[7] = TextDrawCreate(265.555572, 106.814773, "creditos");
- TextDrawLetterSize(Info[7], 0.512777, 1.408149);
- TextDrawAlignment(Info[7], 1);
- TextDrawColor(Info[7], -1);
- TextDrawSetShadow(Info[7], 0);
- TextDrawSetOutline(Info[7], 1);
- TextDrawBackgroundColor(Info[7], 255);
- TextDrawFont(Info[7], 2);
- TextDrawSetProportional(Info[7], 1);
- Info[8] = TextDrawCreate(222.666717, 133.222167, "fundador: Power_X");
- TextDrawLetterSize(Info[8], 0.438333, 1.102223);
- TextDrawAlignment(Info[8], 1);
- TextDrawColor(Info[8], -1);
- TextDrawSetShadow(Info[8], 0);
- TextDrawSetOutline(Info[8], 1);
- TextDrawBackgroundColor(Info[8], 255);
- TextDrawFont(Info[8], 2);
- TextDrawSetProportional(Info[8], 1);
- Info[9] = TextDrawCreate(220.888931, 164.814971, "scripter's: Power_X e Carlos001");
- TextDrawLetterSize(Info[9], 0.265554, 1.418519);
- TextDrawAlignment(Info[9], 1);
- TextDrawColor(Info[9], -1);
- TextDrawSetShadow(Info[9], 0);
- TextDrawSetOutline(Info[9], 1);
- TextDrawBackgroundColor(Info[9], 255);
- TextDrawFont(Info[9], 2);
- TextDrawSetProportional(Info[9], 1);
- Info[10] = TextDrawCreate(221.333389, 202.111160, "Donos: Power e Mozart");
- TextDrawLetterSize(Info[10], 0.353887, 1.200740);
- TextDrawAlignment(Info[10], 1);
- TextDrawColor(Info[10], -1);
- TextDrawSetShadow(Info[10], 0);
- TextDrawSetOutline(Info[10], 1);
- TextDrawBackgroundColor(Info[10], 255);
- TextDrawFont(Info[10], 2);
- TextDrawSetProportional(Info[10], 1);
- Info[11] = TextDrawCreate(222.333389, 238.889038, "email: power.xev1@gmail.com");
- TextDrawLetterSize(Info[11], 0.303887, 1.200740);
- TextDrawAlignment(Info[11], 1);
- TextDrawColor(Info[11], -1);
- TextDrawSetShadow(Info[11], 0);
- TextDrawSetOutline(Info[11], 1);
- TextDrawBackgroundColor(Info[11], 255);
- TextDrawFont(Info[11], 2);
- TextDrawSetProportional(Info[11], 1);
- Info[12] = TextDrawCreate(223.333374, 272.037139, "site: www.islandsurvival.forumeiros.com");
- TextDrawLetterSize(Info[12], 0.204442, 1.423703);
- TextDrawAlignment(Info[12], 1);
- TextDrawColor(Info[12], -1);
- TextDrawSetShadow(Info[12], 0);
- TextDrawSetOutline(Info[12], 1);
- TextDrawBackgroundColor(Info[12], 255);
- TextDrawFont(Info[12], 2);
- TextDrawSetProportional(Info[12], 1);
- /* REGISTRO */
- Registro[0] = TextDrawCreate(427.000061, 106.759269, "usebox");
- TextDrawLetterSize(Registro[0], 0.000000, 21.230659);
- TextDrawTextSize(Registro[0], 214.666625, 0.000000);
- TextDrawAlignment(Registro[0], 1);
- TextDrawColor(Registro[0], 0);
- TextDrawUseBox(Registro[0], true);
- TextDrawBoxColor(Registro[0], 50);
- TextDrawSetShadow(Registro[0], 0);
- TextDrawSetOutline(Registro[0], 0);
- TextDrawFont(Registro[0], 0);
- Registro[1] = TextDrawCreate(223.666625, 106.759262, "usebox");
- TextDrawLetterSize(Registro[1], 0.000000, 21.240943);
- TextDrawTextSize(Registro[1], 214.666656, 0.000000);
- TextDrawAlignment(Registro[1], 1);
- TextDrawColor(Registro[1], 0);
- TextDrawUseBox(Registro[1], true);
- TextDrawBoxColor(Registro[1], -1627389780);
- TextDrawSetShadow(Registro[1], 0);
- TextDrawSetOutline(Registro[1], 0);
- TextDrawFont(Registro[1], 0);
- Registro[2] = TextDrawCreate(426.888702, 106.722229, "usebox");
- TextDrawLetterSize(Registro[2], 0.000000, 21.240943);
- TextDrawTextSize(Registro[2], 416.888732, 0.000000);
- TextDrawAlignment(Registro[2], 1);
- TextDrawColor(Registro[2], 0);
- TextDrawUseBox(Registro[2], true);
- TextDrawBoxColor(Registro[2], -1627389780);
- TextDrawSetShadow(Registro[2], 0);
- TextDrawSetOutline(Registro[2], 0);
- TextDrawFont(Registro[2], 0);
- Registro[3] = TextDrawCreate(421.221801, 106.685211, "usebox");
- TextDrawLetterSize(Registro[3], 0.000000, 0.018721);
- TextDrawTextSize(Registro[3], 219.110885, 0.000000);
- TextDrawAlignment(Registro[3], 1);
- TextDrawColor(Registro[3], 0);
- TextDrawUseBox(Registro[3], true);
- TextDrawBoxColor(Registro[3], -1627389780);
- TextDrawSetShadow(Registro[3], 0);
- TextDrawSetOutline(Registro[3], 0);
- TextDrawFont(Registro[3], 0);
- Registro[4] = TextDrawCreate(422.221801, 297.463073, "usebox");
- TextDrawLetterSize(Registro[4], 0.000000, 0.018721);
- TextDrawTextSize(Registro[4], 219.110885, 0.000000);
- TextDrawAlignment(Registro[4], 1);
- TextDrawColor(Registro[4], 0);
- TextDrawUseBox(Registro[4], true);
- TextDrawBoxColor(Registro[4], -1627389780);
- TextDrawSetShadow(Registro[4], 0);
- TextDrawSetOutline(Registro[4], 0);
- TextDrawFont(Registro[4], 0);
- Registro[5] = TextDrawCreate(421.555175, 136.685302, "usebox");
- TextDrawLetterSize(Registro[5], 0.000000, 0.018721);
- TextDrawTextSize(Registro[5], 218.555328, 0.000000);
- TextDrawAlignment(Registro[5], 1);
- TextDrawColor(Registro[5], 0);
- TextDrawUseBox(Registro[5], true);
- TextDrawBoxColor(Registro[5], -1627389780);
- TextDrawSetShadow(Registro[5], 0);
- TextDrawSetOutline(Registro[5], 0);
- TextDrawFont(Registro[5], 0);
- Registro[6] = TextDrawCreate(392.555084, 152.203826, "usebox");
- TextDrawLetterSize(Registro[6], 0.000000, 2.074277);
- TextDrawTextSize(Registro[6], 246.888687, 0.000000);
- TextDrawAlignment(Registro[6], 1);
- TextDrawColor(Registro[6], 0);
- TextDrawUseBox(Registro[6], true);
- TextDrawBoxColor(Registro[6], -1627389780);
- TextDrawSetShadow(Registro[6], 0);
- TextDrawSetOutline(Registro[6], 0);
- TextDrawFont(Registro[6], 0);
- Registro[7] = TextDrawCreate(392.443878, 186.389007, "usebox");
- TextDrawLetterSize(Registro[7], 0.000000, 2.129832);
- TextDrawTextSize(Registro[7], 246.888687, 0.000000);
- TextDrawAlignment(Registro[7], 1);
- TextDrawColor(Registro[7], 0);
- TextDrawUseBox(Registro[7], true);
- TextDrawBoxColor(Registro[7], -1627389780);
- TextDrawSetShadow(Registro[7], 0);
- TextDrawSetOutline(Registro[7], 0);
- TextDrawFont(Registro[7], 0);
- Registro[8] = TextDrawCreate(221.666671, 70.000022, "Survival The Island");
- TextDrawLetterSize(Registro[8], 0.709999, 3.316293);
- TextDrawAlignment(Registro[8], 1);
- TextDrawColor(Registro[8], -16776961);
- TextDrawSetShadow(Registro[8], 0);
- TextDrawSetOutline(Registro[8], 1);
- TextDrawBackgroundColor(Registro[8], 255);
- TextDrawFont(Registro[8], 0);
- TextDrawSetProportional(Registro[8], 1);
- Registro[9] = TextDrawCreate(391.777252, 222.129760, "usebox");
- TextDrawLetterSize(Registro[9], 0.000000, 2.129832);
- TextDrawTextSize(Registro[9], 246.888687, 0.000000);
- TextDrawAlignment(Registro[9], 1);
- TextDrawColor(Registro[9], 0);
- TextDrawUseBox(Registro[9], true);
- TextDrawBoxColor(Registro[9], -1627389780);
- TextDrawSetShadow(Registro[9], 0);
- TextDrawSetOutline(Registro[9], 0);
- TextDrawFont(Registro[9], 0);
- Registro[10] = TextDrawCreate(392.221740, 258.389038, "usebox");
- TextDrawLetterSize(Registro[10], 0.000000, 2.129832);
- TextDrawTextSize(Registro[10], 246.333129, 0.000000);
- TextDrawAlignment(Registro[10], 1);
- TextDrawColor(Registro[10], 0);
- TextDrawUseBox(Registro[10], true);
- TextDrawBoxColor(Registro[10], -1627389780);
- TextDrawSetShadow(Registro[10], 0);
- TextDrawSetOutline(Registro[10], 0);
- TextDrawFont(Registro[10], 0);
- Registro[11] = TextDrawCreate(257.777801, 114.592613, "Bem vindo");
- TextDrawLetterSize(Registro[11], 0.551666, 1.646668);
- TextDrawAlignment(Registro[11], 1);
- TextDrawColor(Registro[11], -1);
- TextDrawSetShadow(Registro[11], 0);
- TextDrawSetOutline(Registro[11], 1);
- TextDrawBackgroundColor(Registro[11], 255);
- TextDrawFont(Registro[11], 2);
- TextDrawSetProportional(Registro[11], 1);
- //============================ TEXT DA TELA ==============================//
- //BlackRadar= GangZoneCreate(-3334.758544, -3039.903808, 3049.241455, 3184.096191);
- //RadarPreto= GangZoneCreate(-3334.758544, -3039.903808, 3049.241455, 3184.096191);
- barrinha1 = TextDrawCreate(3.500000, 324.187500, "-");
- TextDrawLetterSize(barrinha1, 11.464503, 1.061874);
- TextDrawTextSize(barrinha1, -37.000000, -3.500000);
- TextDrawAlignment(barrinha1, 1);
- TextDrawColor(barrinha1, -1);
- TextDrawSetShadow(barrinha1, 0);
- TextDrawSetOutline(barrinha1, 1);
- TextDrawBackgroundColor(barrinha1, 51);
- TextDrawFont(barrinha1, 1);
- TextDrawSetProportional(barrinha1, 1);
- forum1 = TextDrawCreate(33.500000, 301.437500, "Survival The Island");
- TextDrawLetterSize(forum1, 0.449999, 1.600000);
- TextDrawAlignment(forum1, 1);
- TextDrawColor(forum1, -16776961);
- TextDrawSetShadow(forum1, 0);
- TextDrawSetOutline(forum1, 1);
- TextDrawBackgroundColor(forum1, 255);
- TextDrawFont(forum1, 0);
- TextDrawSetProportional(forum1, 1);
- forum2 = TextDrawCreate(58.500000, 314.437500, "v.Beta");
- TextDrawLetterSize(forum2, 0.449999, 1.600000);
- TextDrawAlignment(forum2, 1);
- TextDrawColor(forum2, 255);
- TextDrawSetShadow(forum2, 0);
- TextDrawSetOutline(forum2, 0);
- TextDrawBackgroundColor(forum2, 255);
- TextDrawFont(forum2, 1);
- TextDrawSetProportional(forum2, 1);
- barrinha2 = TextDrawCreate(8.500000, 292.375000, "-");
- TextDrawLetterSize(barrinha2, 11.464503, 1.061874);
- TextDrawTextSize(barrinha2, -37.000000, -3.500000);
- TextDrawAlignment(barrinha2, 1);
- TextDrawColor(barrinha2, -1);
- TextDrawSetShadow(barrinha2, 0);
- TextDrawSetOutline(barrinha2, 1);
- TextDrawBackgroundColor(barrinha2, 51);
- TextDrawFont(barrinha2, 1);
- TextDrawSetProportional(barrinha2, 1);
- forum3 = TextDrawCreate(2.500000, 430.937500, "Sugestoes, ideias, denuncias. Visite: www.inslandsurvival.forumeiros.com");
- TextDrawLetterSize(forum3, 0.217998, 1.739999);
- TextDrawAlignment(forum3, 1);
- TextDrawColor(forum3, -16776961);
- TextDrawSetShadow(forum3, 0);
- TextDrawSetOutline(forum3, 1);
- TextDrawBackgroundColor(forum3, 255);
- TextDrawFont(forum3, 1);
- TextDrawSetProportional(forum3, 1);
- DataC = TextDrawCreate(500.000000, 9.000000, "");
- TextDrawBackgroundColor(DataC, 255);
- TextDrawFont(DataC, 3);
- TextDrawLetterSize(DataC, 0.310000, 1.500000);
- TextDrawColor(DataC, -1);
- TextDrawSetOutline(DataC, 1);
- TextDrawSetProportional(DataC, 1);
- TextDrawSetSelectable(DataC, 0);
- //============================================================================//
- FrioT = TextDrawCreate(556, 429, "F");
- TextDrawBackgroundColor(FrioT, 255);
- TextDrawFont(FrioT, 1);
- TextDrawLetterSize(FrioT, 0.320000, 1.100000);
- TextDrawColor(FrioT, 0xFFFFFFFF);
- TextDrawSetOutline(FrioT, 1);
- TextDrawSetProportional(FrioT, 1);
- Textdraw0 = TextDrawCreate(552.500000, 447.312500, "usebox");
- TextDrawLetterSize(Textdraw0, 0.000000, -5.420833);
- TextDrawTextSize(Textdraw0, 635.000000, 0.000000);
- TextDrawAlignment(Textdraw0, 1);
- TextDrawColor(Textdraw0, 0);
- TextDrawUseBox(Textdraw0, true);
- TextDrawBoxColor(Textdraw0, 102);
- TextDrawSetShadow(Textdraw0, 0);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawFont(Textdraw0, 0);
- sprite1 = TextDrawCreate(555, 405, "hud:radar_dateFood");
- TextDrawFont(sprite1, 4); ///// aqui é a fonte
- TextDrawTextSize(sprite1, 10.000, 10.000);////importante!!Está parte em definir o tamanho da imagem essa proporção será boa em caso você queria colocar do lado de seu status
- TextDrawUseBox(sprite1, 1);
- sprite2 = TextDrawCreate(555, 417, "hud:radar_diner");
- TextDrawFont(sprite2, 4);
- TextDrawTextSize(sprite2, 10.000, 10.000);
- TextDrawUseBox(sprite2, 1);
- TextCash1 = TextDrawCreate(600.000000, 99.937500, "usebox");
- TextDrawLetterSize(TextCash1, 0.000000, 0.704164);
- TextDrawTextSize(TextCash1, 514.000000, 0.000000);
- TextDrawAlignment(TextCash1, 1);
- TextDrawColor(TextCash1, 0);
- TextDrawUseBox(TextCash1, true);
- TextDrawBoxColor(TextCash1, 255);
- TextDrawSetShadow(TextCash1, 0);
- TextDrawSetOutline(TextCash1, 0);
- TextDrawFont(TextCash1, 0);
- TextCash2 = TextDrawCreate(542.500000, 99.312500, "Cash:");
- TextDrawLetterSize(TextCash2, 0.215996, 0.755631);
- TextDrawAlignment(TextCash2, 2);
- TextDrawColor(TextCash2, -1061109505);
- TextDrawSetShadow(TextCash2, 0);
- TextDrawSetOutline(TextCash2, 0);
- TextDrawBackgroundColor(TextCash2, 51);
- TextDrawFont(TextCash2, 1);
- TextDrawSetProportional(TextCash2, 1);
- TextCash3 = TextDrawCreate(553.000000, 99.750000, "...");
- TextDrawLetterSize(TextCash3, 0.177000, 0.738125);
- TextDrawAlignment(TextCash3, 1);
- TextDrawColor(TextCash3, -1061109505);
- TextDrawSetShadow(TextCash3, 0);
- TextDrawSetOutline(TextCash3, 1);
- TextDrawBackgroundColor(TextCash3, 51);
- TextDrawFont(TextCash3, 1);
- TextDin0 = TextDrawCreate(627.000000, 78.500000, "usebox");
- TextDrawLetterSize(TextDin0, 0.000000, 1.980555);
- TextDrawTextSize(TextDin0, 486.500000, 0.000000);
- TextDrawAlignment(TextDin0, 1);
- TextDrawColor(TextDin0, 0);
- TextDrawUseBox(TextDin0, true);
- TextDrawBoxColor(TextDin0, -16776961);
- TextDrawSetShadow(TextDin0, 0);
- TextDrawSetOutline(TextDin0, 0);
- TextDrawFont(TextDin0, 0);
- TextDin1 = TextDrawCreate(520.000000, 80.500000, "...");
- TextDrawLetterSize(TextDin1, 0.210997, 1.368126);
- TextDrawAlignment(TextDin1, 1);
- TextDrawColor(TextDin1, -1061109505);
- TextDrawSetShadow(TextDin1, 0);
- TextDrawSetOutline(TextDin1, -1);
- TextDrawBackgroundColor(TextDin1, 255);
- TextDrawFont(TextDin1, 2);
- TextDrawSetProportional(TextDin1, 1);
- TextDin2 = TextDrawCreate(626.000000, 79.375000, "usebox");
- TextDrawLetterSize(TextDin2, 0.000000, 1.824998);
- TextDrawTextSize(TextDin2, 487.500000, 0.000000);
- TextDrawAlignment(TextDin2, 1);
- TextDrawColor(TextDin2, 0);
- TextDrawUseBox(TextDin2, true);
- TextDrawBoxColor(TextDin2, 255);
- TextDrawSetShadow(TextDin2, 0);
- TextDrawSetOutline(TextDin2, 0);
- TextDrawFont(TextDin2, 0);
- TextGPS = TextDrawCreate(33.000000, 333.083404, "ld_pool:ball");
- TextDrawLetterSize(TextGPS, 0.000000, 0.000000);
- TextDrawTextSize(TextGPS, 107.500000, 99.166633);
- TextDrawAlignment(TextGPS, 1);
- TextDrawColor(TextGPS, 255);
- TextDrawSetShadow(TextGPS, 0);
- TextDrawSetOutline(TextGPS, 0);
- TextDrawFont(TextGPS, 4);
- //============================================================================//
- FomeA = CreateProgressBar(570, 409, 60.55, 4.50, -8716033, 100.0);
- SetProgressBarMaxValue(FomeA, 100);
- SetProgressBarColor(FomeA, 0xFFA500FF);
- SedeB = CreateProgressBar(570.00, 421.00, 60.55, 4.50, -8716033, 100.0);
- SetProgressBarMaxValue(SedeB, 100);
- SetProgressBarColor(SedeB, 0x00BFFFFF);
- FrioD = CreateProgressBar(570.00, 433, 60.55, 4.50, -8716033, 100.0);
- SetProgressBarMaxValue(FrioD, 100);
- SetProgressBarColor(FrioD, 0x00FF00FF);
- Exemplo = CreateProgressBar(53.000000, 400.00, 60.55, 3.699997, -1429936641, 100.0); //cria a bar
- Exemplo2 = CreateProgressBar(53.000000, 400.00, 60.55, 3.699997, -1429936641, 100.0); //cria a bar
- //======================== Logo Text Draw ===========================//
- STILogoTextDraw[0] = TextDrawCreate(530.000000, 5.760019, "Survive_The_Island");
- TextDrawLetterSize(STILogoTextDraw[0], 0.400000, 1.600000);
- TextDrawAlignment(STILogoTextDraw[0], 1);
- TextDrawColor(STILogoTextDraw[0], -1);
- TextDrawSetShadow(STILogoTextDraw[0], 0);
- TextDrawSetOutline(STILogoTextDraw[0], 1);
- TextDrawBackgroundColor(STILogoTextDraw[0], 255);
- TextDrawFont(STILogoTextDraw[0], 0);
- TextDrawSetProportional(STILogoTextDraw[0], 1);
- STILogoTextDraw[1] = TextDrawCreate(610.500000, 19.199987, "Beta");
- TextDrawLetterSize(STILogoTextDraw[1], 0.243499, 1.376000);
- TextDrawAlignment(STILogoTextDraw[1], 1);
- TextDrawColor(STILogoTextDraw[1], -1);
- TextDrawSetShadow(STILogoTextDraw[1], 0);
- TextDrawSetOutline(STILogoTextDraw[1], 1);
- TextDrawBackgroundColor(STILogoTextDraw[1], 255);
- TextDrawFont(STILogoTextDraw[1], 1);
- TextDrawSetProportional(STILogoTextDraw[1], 1);
- //====================== Material Stats Text Draw ===============================//
- StatsTextDrawContainer[0] = TextDrawCreate(539.099975, 329.299865, "box");
- TextDrawLetterSize(StatsTextDrawContainer[0], 0.000000, 6.799997);
- TextDrawTextSize(StatsTextDrawContainer[0], 643.000000, 0.000000);
- TextDrawAlignment(StatsTextDrawContainer[0], 1);
- TextDrawColor(StatsTextDrawContainer[0], -65281);
- TextDrawUseBox(StatsTextDrawContainer[0], 1);
- TextDrawBoxColor(StatsTextDrawContainer[0], -65478);
- TextDrawSetShadow(StatsTextDrawContainer[0], 0);
- TextDrawBackgroundColor(StatsTextDrawContainer[0], -65281);
- TextDrawFont(StatsTextDrawContainer[0], 1);
- TextDrawSetProportional(StatsTextDrawContainer[0], 1);
- StatsTextDrawContainer[1] = TextDrawCreate(538.599853, 332.096588, "box");
- TextDrawLetterSize(StatsTextDrawContainer[1], 0.000000, 0.099998);
- TextDrawTextSize(StatsTextDrawContainer[1], 646.000000, 0.000000);
- TextDrawAlignment(StatsTextDrawContainer[1], 1);
- TextDrawColor(StatsTextDrawContainer[1], -65281);
- TextDrawUseBox(StatsTextDrawContainer[1], 1);
- TextDrawBoxColor(StatsTextDrawContainer[1], 112);
- TextDrawSetShadow(StatsTextDrawContainer[1], 0);
- TextDrawBackgroundColor(StatsTextDrawContainer[1], -65281);
- TextDrawFont(StatsTextDrawContainer[1], 1);
- TextDrawSetProportional(StatsTextDrawContainer[1], 1);
- //============================================================================//
- for ( new i ; i < MAX_PLAYERS ; ++i )
- {
- Wood[i] = TextDrawCreate(564.000000, 292.687500, "1 x Madeira");
- TextDrawLetterSize(Wood[i], 0.248500, 1.429373);
- TextDrawAlignment(Wood[i], 1);
- TextDrawColor(Wood[i], -2139062017);
- TextDrawSetShadow(Wood[i], 0);
- TextDrawSetOutline(Wood[i], 1);
- TextDrawBackgroundColor(Wood[i], 51);
- TextDrawFont(Wood[i], 1);
- TextDrawSetProportional(Wood[i], 1);
- Wood3[i] = TextDrawCreate(564.000000, 292.687500, "3 x Madeira");
- TextDrawLetterSize(Wood3[i], 0.248500, 1.429373);
- TextDrawAlignment(Wood3[i], 1);
- TextDrawColor(Wood3[i], -2139062017);
- TextDrawSetShadow(Wood3[i], 0);
- TextDrawSetOutline(Wood3[i], 1);
- TextDrawBackgroundColor(Wood3[i], 51);
- TextDrawFont(Wood3[i], 1);
- TextDrawSetProportional(Wood3[i], 1);
- Boxzin[i] = TextDrawCreate(621.000000, 292.000000, "usebox");
- TextDrawLetterSize(Boxzin[i], 0.000000, 1.676388);
- TextDrawTextSize(Boxzin[i], 553.500000, 0.000000);
- TextDrawAlignment(Boxzin[i], 1);
- TextDrawColor(Boxzin[i], 0);
- TextDrawUseBox(Boxzin[i], true);
- TextDrawBoxColor(Boxzin[i], 102);
- TextDrawSetShadow(Boxzin[i], 0);
- TextDrawSetOutline(Boxzin[i], 0);
- TextDrawFont(Boxzin[i], 0);
- Stone[i] = TextDrawCreate(564.000000, 292.687500, "5 x Pedra");
- TextDrawLetterSize(Stone[i], 0.248500, 1.429373);
- TextDrawAlignment(Stone[i], 1);
- TextDrawColor(Stone[i], -2139062017);
- TextDrawSetShadow(Stone[i], 0);
- TextDrawSetOutline(Stone[i], 1);
- TextDrawBackgroundColor(Stone[i], 51);
- TextDrawFont(Stone[i], 1);
- TextDrawSetProportional(Stone[i], 1);
- Boxzin2[i] = TextDrawCreate(621.500000, 312.687500, "usebox");
- TextDrawLetterSize(Boxzin2[i], 0.000000, 1.626387);
- TextDrawTextSize(Boxzin2[i], 553.500000, 0.000000);
- TextDrawAlignment(Boxzin2[i], 1);
- TextDrawColor(Boxzin2[i], 0);
- TextDrawUseBox(Boxzin2[i], true);
- TextDrawBoxColor(Boxzin2[i], 102);
- TextDrawSetShadow(Boxzin2[i], 0);
- TextDrawSetOutline(Boxzin2[i], 0);
- TextDrawFont(Boxzin2[i], 0);
- MetalF[i] = TextDrawCreate(564.500000, 312.937500, "2 x Metal");
- TextDrawLetterSize(MetalF[i], 0.248500, 1.429373);
- TextDrawAlignment(MetalF[i], 1);
- TextDrawColor(MetalF[i], -2139062017);
- TextDrawSetShadow(MetalF[i], 0);
- TextDrawSetOutline(MetalF[i], 1);
- TextDrawBackgroundColor(MetalF[i], 51);
- TextDrawFont(MetalF[i], 1);
- TextDrawSetProportional(MetalF[i], 1);
- LimiteMaterial[i] = TextDrawCreate(564.000000, 292.687500, "Limite");
- TextDrawLetterSize(LimiteMaterial[i], 0.248500, 1.429373);
- TextDrawAlignment(LimiteMaterial[i], 1);
- TextDrawColor(LimiteMaterial[i], -2139062017);
- TextDrawSetShadow(LimiteMaterial[i], 0);
- TextDrawSetOutline(LimiteMaterial[i], 1);
- TextDrawBackgroundColor(LimiteMaterial[i], 51);
- TextDrawFont(LimiteMaterial[i], 1);
- TextDrawSetProportional(LimiteMaterial[i], 1);
- //====================== Material Stats Text Draw ===============================//
- StatsTextDraw[i][0] = CreatePlayerTextDraw(i, 517.000000, 334.016540, "");
- PlayerTextDrawTextSize(i, StatsTextDraw[i][0], 67.000000, 59.000000);
- PlayerTextDrawAlignment(i, StatsTextDraw[i][0], 1);
- PlayerTextDrawColor(i, StatsTextDraw[i][0], -1);
- PlayerTextDrawBackgroundColor(i, StatsTextDraw[i][0], 0);
- PlayerTextDrawSetShadow(i, StatsTextDraw[i][0], 0);
- PlayerTextDrawFont(i, StatsTextDraw[i][0], 5);
- PlayerTextDrawSetProportional(i, StatsTextDraw[i][0], 0);
- PlayerTextDrawSetPreviewModel(i, StatsTextDraw[i][0], 0);
- PlayerTextDrawSetPreviewRot(i, StatsTextDraw[i][0], 0.000000, 0.000000, 0.000000, 1.000000);
- StatsTextDraw[i][1] = CreatePlayerTextDraw(i, 598.398193, 338.516815, "Mad:500_Ped:500~n~Met:500_Par:500~n~Bor:500_Fru:10~n~Pei:5_Carn:5~n~Cou:500_Agu:10");
- PlayerTextDrawLetterSize(i, StatsTextDraw[i][1], 0.213999, 0.995199);
- PlayerTextDrawTextSize(i, StatsTextDraw[i][1], 0.000000, 569.500000);
- PlayerTextDrawAlignment(i, StatsTextDraw[i][1], 2);
- PlayerTextDrawColor(i, StatsTextDraw[i][1], -1);
- PlayerTextDrawSetShadow(i, StatsTextDraw[i][1], 0);
- PlayerTextDrawSetOutline(i, StatsTextDraw[i][1], 1);
- PlayerTextDrawBackgroundColor(i, StatsTextDraw[i][1], 255);
- PlayerTextDrawFont(i, StatsTextDraw[i][1], 1);
- PlayerTextDrawSetProportional(i, StatsTextDraw[i][1], 1);
- }
- //===============================================
- for(new i; i < MAX_BASES; i++)
- {
- CarregarBases(i);
- }
- for(new i; i < MAX_BANCADAS; i++)
- {
- CarregarBancadas(i);
- }
- for(new i; i < MAX_PORTAS; i++)
- {
- CarregarPortas(i);
- }
- for(new i; i < MAX_BAU; i++)
- {
- CarregarBaus(i);
- }
- for(new i; i < MAX_RAMPAS; i++)
- {
- CarregarRampas(i);
- }
- for(new i; i < MAX_DOOR; i++)
- {
- CarregarDoor(i);
- }
- for(new i; i < MAX_CAMA; i++)
- {
- CarregarCama(i);
- }
- for(new i; i < MAX_WINDOWN; i++)
- {
- CarregarWindowns(i);
- }
- for(new i; i < MAX_FORNO; i++)
- {
- CarregarForno(i);
- }
- return 1;
- }
- CarregarTextPlayer(playerid)
- {
- PlayerRegistro[0] = CreatePlayerTextDraw(playerid, 263.777801, 153.962951, "Registrar");
- PlayerTextDrawLetterSize(playerid, PlayerRegistro[0], 0.480555, 1.496297);
- PlayerTextDrawAlignment(playerid, PlayerRegistro[0], 1);
- PlayerTextDrawColor(playerid, PlayerRegistro[0], -1);
- PlayerTextDrawSetShadow(playerid, PlayerRegistro[0], 0);
- PlayerTextDrawSetOutline(playerid, PlayerRegistro[0], 1);
- PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[0], 255);
- PlayerTextDrawFont(playerid, PlayerRegistro[0], 2);
- PlayerTextDrawSetProportional(playerid, PlayerRegistro[0], 1);
- PlayerRegistro[1] = CreatePlayerTextDraw(playerid, 279.777709, 188.666687, "logar");
- PlayerTextDrawLetterSize(playerid, PlayerRegistro[1], 0.480555, 1.496297);
- PlayerTextDrawAlignment(playerid, PlayerRegistro[1], 1);
- PlayerTextDrawColor(playerid, PlayerRegistro[1], -1);
- PlayerTextDrawSetShadow(playerid, PlayerRegistro[1], 0);
- PlayerTextDrawSetOutline(playerid, PlayerRegistro[1], 1);
- PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[1], 255);
- PlayerTextDrawFont(playerid, PlayerRegistro[1], 2);
- PlayerTextDrawSetProportional(playerid, PlayerRegistro[1], 1);
- PlayerRegistro[2] = CreatePlayerTextDraw(playerid, 269.666748, 224.925949, "creditos");
- PlayerTextDrawLetterSize(playerid, PlayerRegistro[2], 0.480555, 1.496297);
- PlayerTextDrawAlignment(playerid, PlayerRegistro[2], 1);
- PlayerTextDrawColor(playerid, PlayerRegistro[2], -1);
- PlayerTextDrawSetShadow(playerid, PlayerRegistro[2], 0);
- PlayerTextDrawSetOutline(playerid, PlayerRegistro[2], 1);
- PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[2], 255);
- PlayerTextDrawFont(playerid, PlayerRegistro[2], 2);
- PlayerTextDrawSetProportional(playerid, PlayerRegistro[2], 1);
- PlayerRegistro[3] = CreatePlayerTextDraw(playerid, 292.333282, 261.185211, "sair");
- PlayerTextDrawLetterSize(playerid, PlayerRegistro[3], 0.480555, 1.496297);
- PlayerTextDrawAlignment(playerid, PlayerRegistro[3], 1);
- PlayerTextDrawColor(playerid, PlayerRegistro[3], -1);
- PlayerTextDrawSetShadow(playerid, PlayerRegistro[3], 0);
- PlayerTextDrawSetOutline(playerid, PlayerRegistro[3], 1);
- PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[3], 255);
- PlayerTextDrawFont(playerid, PlayerRegistro[3], 2);
- PlayerTextDrawSetProportional(playerid, PlayerRegistro[3], 1);
- PlayerRegistro[4] = CreatePlayerTextDraw(playerid, 216.666641, 287.777770, "voltar");
- PlayerTextDrawLetterSize(playerid, PlayerRegistro[4], 0.196666, 0.754816);
- PlayerTextDrawAlignment(playerid, PlayerRegistro[4], 1);
- PlayerTextDrawColor(playerid, PlayerRegistro[4], -1);
- PlayerTextDrawSetShadow(playerid, PlayerRegistro[4], 0);
- PlayerTextDrawSetOutline(playerid, PlayerRegistro[4], 1);
- PlayerTextDrawBackgroundColor(playerid, PlayerRegistro[4], 255);
- PlayerTextDrawFont(playerid, PlayerRegistro[4], 2);
- PlayerTextDrawSetProportional(playerid, PlayerRegistro[4], 1);
- for(new a; a < sizeof(PlayerRegistro); ++a) PlayerTextDrawSetSelectable(playerid, PlayerText:PlayerRegistro[a], true);
- return 1;
- }
- stock CarregarPlayerText(playerid)
- {
- INV_DESIGN[playerid][0] = CreatePlayerTextDraw(playerid,123.000000, 130.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][0], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][0], 0.500000, 27.899990);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][0], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][0], 117);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][0], 477.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][0], 0);
- INV_DESIGN[playerid][1] = CreatePlayerTextDraw(playerid,123.000000, 130.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][1], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][1], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][1], 0.500000, -0.599998);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][1], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][1], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][1], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][1], 144);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][1], 477.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][1], 0);
- INV_DESIGN[playerid][2] = CreatePlayerTextDraw(playerid,261.000000, 129.000000, "Inventario");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][2], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][2], 3);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][2], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][2], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][2], 1);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][2], 0);
- INV_DESIGN[playerid][3] = CreatePlayerTextDraw(playerid,468.000000, 129.000000, "X");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][3], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][3], 3);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][3], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][3], -16776961);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][3], 1);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][3], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][3], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][3], -2021161216);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][3], 477.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][3], 1);
- INV_DESIGN[playerid][4] = CreatePlayerTextDraw(playerid,126.000000, 148.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][4], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][4], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][4], 0.500000, 17.999982);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][4], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][4], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][4], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][4], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][4], -2021161184);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][4], 474.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][4], 0);
- INV_DESIGN[playerid][5] = CreatePlayerTextDraw(playerid,126.000000, 130.000000, "__");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][5], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][5], 3);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][5], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][5], -2021160961);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][5], 1);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][5], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][5], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][5], -2021161216);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][5], 202.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][5], 0);
- INV_DESIGN[playerid][6] = CreatePlayerTextDraw(playerid,372.000000, 130.000000, "__");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][6], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][6], 3);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][6], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][6], -2021160961);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][6], 1);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][6], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][6], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][6], -2021161216);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][6], 443.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][6], 0);
- INV_DESIGN[playerid][7] = CreatePlayerTextDraw(playerid,182.000000, 148.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][7], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][7], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][7], 0.500000, 17.799995);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][7], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][7], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][7], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][7], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][7], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][7], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][7], 177.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][7], 0);
- INV_DESIGN[playerid][8] = CreatePlayerTextDraw(playerid,241.000000, 148.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][8], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][8], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][8], 0.500000, 17.799999);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][8], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][8], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][8], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][8], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][8], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][8], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][8], 236.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][8], 0);
- INV_DESIGN[playerid][9] = CreatePlayerTextDraw(playerid,301.000000, 148.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][9], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][9], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][9], 0.500000, 17.899999);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][9], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][9], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][9], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][9], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][9], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][9], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][9], 296.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][9], 0);
- INV_DESIGN[playerid][10] = CreatePlayerTextDraw(playerid,361.000000, 148.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][10], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][10], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][10], 0.500000, 17.799999);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][10], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][10], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][10], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][10], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][10], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][10], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][10], 356.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][10], 0);
- INV_DESIGN[playerid][11] = CreatePlayerTextDraw(playerid,420.000000, 148.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][11], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][11], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][11], 0.500000, 17.999992);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][11], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][11], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][11], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][11], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][11], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][11], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][11], 415.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][11], 0);
- INV_DESIGN[playerid][12] = CreatePlayerTextDraw(playerid,126.000000, 188.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][12], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][12], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][12], 0.500000, -0.200000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][12], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][12], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][12], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][12], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][12], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][12], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][12], 475.000000, -3.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][12], 0);
- INV_DESIGN[playerid][13] = CreatePlayerTextDraw(playerid,126.000000, 229.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][13], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][13], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][13], 0.500000, -0.200000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][13], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][13], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][13], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][13], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][13], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][13], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][13], 475.000000, -3.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][13], 0);
- INV_DESIGN[playerid][14] = CreatePlayerTextDraw(playerid,126.000000, 270.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][14], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][14], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][14], 0.500000, -0.200000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][14], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][14], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][14], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][14], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][14], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][14], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][14], 475.000000, -3.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][14], 0);
- INV_DESIGN[playerid][15] = CreatePlayerTextDraw(playerid,126.000000, 312.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][15], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][15], 1);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][15], 0.500000, -0.200000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][15], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][15], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][15], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][15], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][15], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][15], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][15], 475.000000, -3.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][15], 0);
- INV_DESIGN[playerid][16] = CreatePlayerTextDraw(playerid,131.000000, 316.000000, "Maos");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][16], -2021161104);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][16], 5);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][16], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][16], -1);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][16], 0);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][16], 1);
- PlayerTextDrawSetShadow(playerid,INV_DESIGN[playerid][16], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][16], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][16], 255);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][16], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_DESIGN[playerid][16], 60000);
- PlayerTextDrawSetPreviewRot(playerid, INV_DESIGN[playerid][16], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][16], 1);
- INV_DESIGN[playerid][17] = CreatePlayerTextDraw(playerid,428.000000, 321.000000, "USAR");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][17], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][17], 3);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][17], 0.410000, 1.500000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][17], -2021160961);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][17], 1);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][17], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][17], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][17], -2021161216);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][17], 460.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][17], 1);
- INV_DESIGN[playerid][18] = CreatePlayerTextDraw(playerid,428.000000, 357.000000, "DROP");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][18], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][18], 3);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][18], 0.410000, 1.500000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][18], -2021160961);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][18], 1);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][18], 1);
- PlayerTextDrawUseBox(playerid,INV_DESIGN[playerid][18], 1);
- PlayerTextDrawBoxColor(playerid,INV_DESIGN[playerid][18], -2021161216);
- PlayerTextDrawTextSize(playerid,INV_DESIGN[playerid][18], 460.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][18], 1);
- INV_DESIGN[playerid][19] = CreatePlayerTextDraw(playerid,415.000000, 339.000000, "[]");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][19], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][19], 0);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][19], 0.410000, 1.500000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][19], -2021160961);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][19], 1);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][19], 1);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][19], 0);
- INV_DESIGN[playerid][20] = CreatePlayerTextDraw(playerid,436.000000, 339.000000, "[]");
- PlayerTextDrawBackgroundColor(playerid,INV_DESIGN[playerid][20], 255);
- PlayerTextDrawFont(playerid,INV_DESIGN[playerid][20], 0);
- PlayerTextDrawLetterSize(playerid,INV_DESIGN[playerid][20], 0.410000, 1.500000);
- PlayerTextDrawColor(playerid,INV_DESIGN[playerid][20], -2021160961);
- PlayerTextDrawSetOutline(playerid,INV_DESIGN[playerid][20], 1);
- PlayerTextDrawSetProportional(playerid,INV_DESIGN[playerid][20], 1);
- PlayerTextDrawSetSelectable(playerid,INV_DESIGN[playerid][20], 0);
- INV_SLOTS[playerid][0] = CreatePlayerTextDraw(playerid,112.000000, 133.000000, "Item00");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][0], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][0], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][0], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][0], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][0], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][0], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][0], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][0], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][0], 1);
- INV_SLOTS[playerid][1] = CreatePlayerTextDraw(playerid,170.000000, 133.000000, "Item01");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][1], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][1], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][1], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][1], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][1], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][1], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][1], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][1], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][1], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][1], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][1], 1);
- INV_SLOTS[playerid][2] = CreatePlayerTextDraw(playerid,229.000000, 133.000000, "Item02");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][2], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][2], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][2], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][2], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][2], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][2], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][2], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][2], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][2], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][2], 1);
- INV_SLOTS[playerid][3] = CreatePlayerTextDraw(playerid,290.000000, 133.000000, "Item03");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][3], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][3], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][3], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][3], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][3], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][3], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][3], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][3], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][3], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][3], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][3], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][3], 1);
- INV_SLOTS[playerid][4] = CreatePlayerTextDraw(playerid,348.000000, 133.000000, "Item04");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][4], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][4], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][4], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][4], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][4], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][4], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][4], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][4], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][4], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][4], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][4], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][4], 1);
- INV_SLOTS[playerid][5] = CreatePlayerTextDraw(playerid,408.000000, 133.000000, "Item05");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][5], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][5], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][5], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][5], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][5], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][5], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][5], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][5], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][5], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][5], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][5], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][5], 1);
- INV_SLOTS[playerid][6] = CreatePlayerTextDraw(playerid,112.000000, 175.000000, "Item06");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][6], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][6], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][6], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][6], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][6], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][6], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][6], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][6], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][6], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][6], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][6], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][6], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][6], 1);
- INV_SLOTS[playerid][7] = CreatePlayerTextDraw(playerid,112.000000, 216.000000, "Item07");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][7], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][7], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][7], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][7], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][7], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][7], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][7], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][7], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][7], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][7], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][7], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][7], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][7], 1);
- INV_SLOTS[playerid][8] = CreatePlayerTextDraw(playerid,112.000000, 258.000000, "Item08");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][8], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][8], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][8], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][8], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][8], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][8], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][8], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][8], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][8], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][8], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][8], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][8], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][8], 1);
- INV_SLOTS[playerid][9] = CreatePlayerTextDraw(playerid,170.000000, 258.000000, "Item09");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][9], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][9], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][9], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][9], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][9], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][9], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][9], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][9], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][9], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][9], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][9], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][9], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][9], 1);
- INV_SLOTS[playerid][10] = CreatePlayerTextDraw(playerid,229.000000, 258.000000, "Item10");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][10], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][10], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][10], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][10], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][10], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][10], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][10], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][10], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][10], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][10], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][10], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][10], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][10], 1);
- INV_SLOTS[playerid][11] = CreatePlayerTextDraw(playerid,287.000000, 258.000000, "Item11");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][11], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][11], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][11], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][11], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][11], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][11], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][11], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][11], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][11], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][11], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][11], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][11], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][11], 1);
- INV_SLOTS[playerid][12] = CreatePlayerTextDraw(playerid,348.000000, 258.000000, "Item12");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][12], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][12], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][12], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][12], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][12], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][12], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][12], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][12], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][12], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][12], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][12], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][12], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][12], 1);
- INV_SLOTS[playerid][13] = CreatePlayerTextDraw(playerid,407.000000, 258.000000, "Item13");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][13], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][13], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][13], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][13], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][13], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][13], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][13], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][13], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][13], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][13], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][13], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][13], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][13], 1);
- INV_SLOTS[playerid][14] = CreatePlayerTextDraw(playerid,407.000000, 215.000000, "Item14");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][14], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][14], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][14], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][14], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][14], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][14], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][14], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][14], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][14], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][14], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][14], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][14], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][14], 1);
- INV_SLOTS[playerid][15] = CreatePlayerTextDraw(playerid,347.000000, 215.000000, "Item15");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][15], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][15], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][15], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][15], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][15], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][15], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][15], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][15], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][15], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][15], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][15], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][15], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][15], 1);
- INV_SLOTS[playerid][16] = CreatePlayerTextDraw(playerid,289.000000, 215.000000, "Item16");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][16], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][16], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][16], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][16], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][16], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][16], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][16], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][16], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][16], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][16], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][16], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][16], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][16], 1);
- INV_SLOTS[playerid][17] = CreatePlayerTextDraw(playerid,229.000000, 215.000000, "Item17");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][17], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][17], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][17], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][17], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][17], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][17], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][17], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][17], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][17], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][17], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][17], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][17], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][17], 1);
- INV_SLOTS[playerid][18] = CreatePlayerTextDraw(playerid,169.000000, 215.000000, "Item18");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][18], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][18], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][18], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][18], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][18], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][18], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][18], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][18], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][18], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][18], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][18], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][18], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][18], 1);
- INV_SLOTS[playerid][19] = CreatePlayerTextDraw(playerid,169.000000, 176.000000, "Item19");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][19], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][19], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][19], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][19], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][19], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][19], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][19], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][19], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][19], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][19], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][19], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][19], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][19], 1);
- INV_SLOTS[playerid][20] = CreatePlayerTextDraw(playerid,228.000000, 176.000000, "Item20");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][20], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][20], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][20], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][20], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][20], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][20], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][20], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][20], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][20], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][20], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][20], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][20], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][20], 1);
- INV_SLOTS[playerid][21] = CreatePlayerTextDraw(playerid,289.000000, 176.000000, "Item21");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][21], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][21], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][21], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][21], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][21], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][21], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][21], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][21], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][21], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][21], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][21], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][21], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][21], 1);
- INV_SLOTS[playerid][22] = CreatePlayerTextDraw(playerid,348.000000, 176.000000, "Item22");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][22], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][22], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][22], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][22], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][22], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][22], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][22], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][22], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][22], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][22], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][22], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][22], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][22], 1);
- INV_SLOTS[playerid][23] = CreatePlayerTextDraw(playerid,407.000000, 176.000000, "Item23");
- PlayerTextDrawBackgroundColor(playerid,INV_SLOTS[playerid][23], -2021161216);
- PlayerTextDrawFont(playerid,INV_SLOTS[playerid][23], 5);
- PlayerTextDrawLetterSize(playerid,INV_SLOTS[playerid][23], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,INV_SLOTS[playerid][23], -1);
- PlayerTextDrawSetOutline(playerid,INV_SLOTS[playerid][23], 0);
- PlayerTextDrawSetProportional(playerid,INV_SLOTS[playerid][23], 1);
- PlayerTextDrawSetShadow(playerid,INV_SLOTS[playerid][23], 1);
- PlayerTextDrawUseBox(playerid,INV_SLOTS[playerid][23], 1);
- PlayerTextDrawBoxColor(playerid,INV_SLOTS[playerid][23], 255);
- PlayerTextDrawTextSize(playerid,INV_SLOTS[playerid][23], 79.000000, 61.000000);
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][23], 11738);
- PlayerTextDrawSetPreviewRot(playerid, INV_SLOTS[playerid][23], 1.000000, 1.000000, 1.000000, 1.000000);
- PlayerTextDrawSetSelectable(playerid,INV_SLOTS[playerid][23], 1);
- return 1;
- }
- public OnGameModeExit()
- {
- for(new i; i < MAX_BASES; i++)
- {
- if(Base[i][Existe]) SalvarBases(i);
- }
- for(new i; i < MAX_BANCADAS; i++)
- {
- if(Bancada[i][Existe]) SalvarBancadas(i);
- }
- for(new i; i < MAX_PORTAS; i++)
- {
- if(Porta[i][Existe]) SalvarPortas(i);
- }
- for(new i; i < MAX_BAU; i++)
- {
- if(Bau[i][Existe]) SalvarBaus(i);
- }
- for(new i; i < MAX_RAMPAS; i++)
- {
- if(Rampa[i][Existe]) SalvarRampas(i);
- }
- for(new i; i < MAX_DOOR; i++)
- {
- if(Door[i][Existe]) SalvarDoor(i);
- }
- for(new i; i < MAX_CAMA; i++)
- {
- if(Cama[i][Existe]) SalvarCama(i);
- }
- for(new i; i < MAX_WINDOWN; i++)
- {
- if(Windown[i][Existe]) SalvarWindowns(i);
- }
- for(new i; i < MAX_FORNO; i++)
- {
- if(Forno[i][Existe]) SalvarForno(i);
- }
- HideProgressBarForAll(FomeA);
- HideProgressBarForAll(SedeB);
- HideProgressBarForAll(FrioD);
- DOF2_Exit();
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- TogglePlayerSpectating(playerid, 1);
- InterpolateCameraPos(playerid, -2397.553710, 1436.038452, 140.798019, -2876.055175, 1382.189697, 159.150161, 17000);
- InterpolateCameraLookAt(playerid, -2401.776855, 1438.431640, 139.599197, -2872.188964, 1384.818359, 157.377395, 17000);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- PlayerPlaySound(playerid, 176, 0, 0, 0);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- TogglePlayerClock(playerid, 0);
- SetPlayerTime(playerid, 0, 0);
- EditBaseID[playerid] = -1;
- EditBancadaID[playerid] = -1;
- EditPortaID[playerid] = -1;
- EditBauID[playerid] = -1;
- EditRampaID[playerid] = -1;
- EditDoorID[playerid] = -1;
- EditCamaID[playerid] = -1;
- EditWindownID[playerid] = -1;
- EditFornoID[playerid] = -1;
- PortaAberta[playerid] = false;
- pInfo[playerid][pSlots] = 0;
- pInfo[playerid][pBackpack] = 24;
- new strdialog[512];
- format(arquivo1, sizeof arquivo1, "lang/%s.ini",Nome(playerid));
- idioma[playerid] = DOF2_GetInt(arquivo1,"Idioma"); // Puxa o idioma do arquivo
- if(idioma[playerid]==0)
- {
- format(strdialog, sizeof(strdialog),"%s%s",strdialog, "Selecione seu idioma/Select your langague");
- return ShowPlayerDialog(playerid, 9548, DIALOG_STYLE_MSGBOX, "Idioma/Langague", strdialog, "Português", "English");
- }
- if(idioma[playerid]==PT)format(string1, sizeof string1,"%s logou", Nome(playerid)); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"%s login", Nome(playerid)); // String em inglês
- SendClientMessageToAll(verde,string1);
- //================================================
- SedeT[playerid] = CreatePlayerTextDraw(playerid,564.000000, 111.000000, "");
- PlayerTextDrawBackgroundColor(playerid, SedeT[playerid], 255);
- PlayerTextDrawFont(playerid, SedeT[playerid], 0);
- PlayerTextDrawLetterSize(playerid, SedeT[playerid], 0.320000, 1.100000);
- PlayerTextDrawColor(playerid, SedeT[playerid], 0xFFFFFFFF);
- PlayerTextDrawSetOutline(playerid, SedeT[playerid], 1);
- PlayerTextDrawSetProportional(playerid, SedeT[playerid], 1);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- SalvarPlayer(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- PlayerPlaySound(playerid, 0, 0, 0, 0);
- SetPlayerPos(playerid, -601.9653,-2654.6538,136.7200);
- SetPlayerAttachedObject(playerid, 1,371,1,0.01,-0.1,0.0,0.0,90.0,0.0,0.9,1.0,0.9,-1,0);
- GivePlayerWeapon(playerid, 4, 1);
- GangZoneShowForPlayer(playerid, BlackRadar, 0x000000FF);
- GangZoneShowForPlayer(playerid, RadarPreto, 0x000000FF);
- SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
- PlayerTextDrawSetPreviewModel(playerid, StatsTextDraw[playerid][0], PlayerInfo[playerid][Skin]);
- PlayerTextDrawShow(playerid, SedeT[playerid]);
- TextDrawShowForPlayer(playerid, FrioT);
- TextDrawShowForPlayer(playerid, DataC);
- TextDrawShowForPlayer(playerid, forum1);
- TextDrawShowForPlayer(playerid, forum2);
- TextDrawShowForPlayer(playerid, forum3);
- TextDrawShowForPlayer(playerid, barrinha1);
- TextDrawShowForPlayer(playerid, barrinha2);
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, TextGPS);
- TextDrawShowForPlayer(playerid, TextCash1);
- TextDrawShowForPlayer(playerid, TextCash2);
- TextDrawShowForPlayer(playerid, TextCash3);
- TextDrawShowForPlayer(playerid, TextDin0);
- TextDrawShowForPlayer(playerid, TextDin1);
- TextDrawShowForPlayer(playerid, TextDin2);
- TextDrawShowForPlayer(playerid, sprite1);
- TextDrawShowForPlayer(playerid, sprite2);
- TextDrawShowForPlayer(playerid, STILogoTextDraw[0]);
- TextDrawShowForPlayer(playerid, STILogoTextDraw[1]);
- TextDrawShowForPlayer(playerid, StatsTextDrawContainer[0]);
- TextDrawShowForPlayer(playerid, StatsTextDrawContainer[1]);
- PlayerTextDrawShow(playerid, StatsTextDraw[playerid][0]);
- PlayerTextDrawShow(playerid, StatsTextDraw[playerid][1]);
- PlayerTextDrawHide(playerid,PlayerRegistro[0]);
- SetPVarInt(playerid,"Fome", 99);
- ShowProgressBarForPlayer(playerid, FomeA);
- SetPVarInt(playerid,"Sede", 99);
- ShowProgressBarForPlayer(playerid, SedeB);
- SetPVarInt(playerid,"Frio", 99);
- ShowProgressBarForPlayer(playerid, FrioD);
- new Nami[24];
- format(Nami,sizeof(Nami),"%s", Nome(playerid));
- TextDrawSetString(TextDin1, Nami);
- //============================================================================//
- SetTimerEx("Fome",FomeTempo, 120000, "i", playerid);
- SetTimerEx("Sede",SedeTempo, 60000, "i", playerid);
- SetTimerEx("Frio",FrioTempo, 180000, "i", playerid);
- SetTimerEx("Correction", 1000, true, "i", playerid);
- SetTimer("Relogio",1000,true);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(killerid != INVALID_PLAYER_ID)
- {
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- PlayerInfo[playerid][Cash] += 1;
- SalvarPlayer(playerid);
- }
- GameTextForPlayer(playerid, "~r~Voce Morreu", 5000, 1);
- SetProgressBarValue(FomeA, 100);
- UpdateProgressBar(FomeA,playerid);
- SetPVarInt(playerid,"Fome", 100);
- SetProgressBarValue(SedeB, 100);
- UpdateProgressBar(SedeB,playerid);
- SetPVarInt(playerid,"Sede", 100);
- SetProgressBarValue(FrioD, 100);
- UpdateProgressBar(FrioD,playerid);
- SetPVarInt(playerid,"Frio", 100);
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(PlayerInfo[playerid][Logado] == false) return 0;
- if(calado[playerid] == true)
- {
- SendClientMessage(playerid,fail,"[!] Você foi calado e não poderá mais falar.");
- return 0;
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/camera", true) == 0)
- {
- if(pUsarCamera[playerid] == 0)
- {
- SendClientMessage(playerid, -1, "Pronto! Agora você podera usar camera em primeira pessoa!");
- SendClientMessage(playerid, -1, "Para usar pressione e tecla de barra invertida ou use /primeiro.");
- pUsarCamera[playerid] = 1;
- }
- else if(pUsarCamera[playerid] == 1)
- {
- if(pPrimeiro[playerid] == 0)//camera desligada
- {
- SendClientMessage(playerid, VERMELHO, "Ativação desligada! Você desabilitou a camera em primeira pessoa.");
- pUsarCamera[playerid] = 0;
- }
- else
- {
- SendClientMessage(playerid, VERDE, " Sua camera esta ativada, desative-a antes.");
- }
- }
- return true;
- }
- if(strcmp(cmdtext, "/primeira", true) == 0)
- {
- if(pUsarCamera[playerid] == 1)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid,VERDE,"Você não pode usar essa camêra em um veiculo!");
- }
- if(pPrimeiro[playerid] == 0)
- {
- CameraPrimeira(playerid,1);
- GameTextForPlayer(playerid, "~w~camera~g~ ligada", 5000, 6);
- pPrimeiro[playerid] = 1;//ligou a camera
- }
- else
- {
- pPrimeiro[playerid] = 0;
- GameTextForPlayer(playerid, "~w~camera~r~ desligada", 5000, 6);
- CameraPrimeira(playerid,0);
- }
- }
- else
- {
- SendClientMessage(playerid, VERDE, "Para poder usar camera em primeira pessoa tera que usar /camera antes!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/bandito", true) == 0)
- {
- if(PlayerInfo[playerid][Madeira] >= 1)
- {
- new Float:X, Float:Y, Float:Z, Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- CreateVehicle(568, X, Y+2, Z+1, A+180, -1, -1, 60);
- GameTextForPlayer(playerid, "~b~BANDITAO", 200, 0);
- PlayerInfo[playerid][Madeira] -= 1;
- }
- return 1;
- }
- if(strcmp(cmdtext, "/inv", true) == 0 || strcmp(cmdtext, "/inventario", true) == 0)
- {
- MostrarInventario(playerid);
- return 1;
- }
- if(strcmp(cmdtext, "/kit basico", true) == 0 || strcmp(cmdtext, "/kit basic", true) == 0)
- {
- if(PegouPresente[playerid] == 0)
- {
- SetPlayerArmour(playerid, 25.0);
- GivePlayerWeapon(playerid, 33, 10);
- GivePlayerWeapon(playerid, 1, 1);
- GivePlayerWeapon(playerid, 4, 1);
- PegouPresente[playerid] = 1;
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] O Player {FFFFFF}%s {FF6600}acabou de pegar seu kit basico, pegue você tambem digite: {FFFFFF}/kit basico", Nome(playerid)); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Player {FFFFFF}%s {FF6600}just got his kit basic, get you also type: {FFFFFF}/kit basic", Nome(playerid)); // String em inglês
- SendClientMessageToAll(LARANJA, string1);
- SetTimer("Payday", 1800000, 0);
- }
- else if(PegouPresente[playerid] == 1)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você já pegou seu kit basico, espere 20 minutos para pegar de novo!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You already got your kit basics, wait 20 minutes to get it again!"); // String em inglês
- SendClientMessageToAll(fail, string1);
- }
- return 1;
- }
- if(strcmp(cmdtext, "/editar bau", true) == 0)
- {
- if(EditBauID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id = GetPlayerRangeBau(playerid);
- if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Bau[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditBauID[playerid] = id;
- EditDynamicObject(playerid, Bau[id][ObjectD]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- return 1;
- }
- if(strcmp(cmdtext, "/editar cama", true) == 0)
- {
- if(EditCamaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id = GetPlayerRangeCama(playerid);
- if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Cama[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditCamaID[playerid] = id;
- EditDynamicObject(playerid, Cama[id][ObjectG]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- return 1;
- }
- if(strcmp(cmdtext, "/editar forno", true) == 0)
- {
- if(EditFornoID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id = GetPlayerRangeForno(playerid);
- if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Forno[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditFornoID[playerid] = id;
- EditDynamicObject(playerid, Forno[id][ObjectJ]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- return 1;
- }
- if(strcmp(cmdtext, "/editar windown", true) == 0)
- {
- if(EditWindownID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id = GetPlayerRangeWindown(playerid);
- if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Windown[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditWindownID[playerid] = id;
- EditDynamicObject(playerid, Windown[id][ObjectH]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- return 1;
- }
- if(strcmp(cmdtext, "/editar door", true) == 0)
- {
- if(EditDoorID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id = GetPlayerRangeDoor(playerid);
- if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Door[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditDoorID[playerid] = id;
- EditDynamicObject(playerid, Door[id][ObjectF]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- return 1;
- }
- if(strcmp(cmdtext, "/editar rampa", true) == 0)
- {
- if(EditRampaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id = GetPlayerRangeRampa(playerid);
- if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Rampa[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditRampaID[playerid] = id;
- EditDynamicObject(playerid, Rampa[id][ObjectE]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- return 1;
- }
- if(strcmp(cmdtext, "/editar porta", true) == 0)
- {
- if(EditPortaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id = GetPlayerRangePorta(playerid);
- if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Porta[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditPortaID[playerid] = id;
- EditDynamicObject(playerid, Porta[id][ObjectC]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- return 1;
- }
- if(strcmp(cmdtext, "/editar bancada", true) == 0)
- {
- if(EditBancadaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id = GetPlayerRangeBancada(playerid);
- if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Bancada[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditBancadaID[playerid] = id;
- EditDynamicObject(playerid, Bancada[id][ObjectA]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- return 1;
- }
- if(strcmp(cmdtext, "/editar base", true) == 0)
- {
- if(EditBaseID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id = GetPlayerRangeBase(playerid);
- if(id == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Base[id][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditBaseID[playerid] = id;
- EditDynamicObject(playerid, Base[id][ObjectB]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- return 1;
- }
- if(strcmp(cmdtext, "/beber agua", true) == 0)
- {
- if(PlayerInfo[playerid][Agua] >= 1)
- {
- PlayerInfo[playerid][Agua] -= 1;
- SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+15);
- SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
- UpdateProgressBar(SedeB,playerid);
- ApplyPlayerAnimation(playerid, "VENDING", "VEND_Drink2_P", 4.1, 0, 1, 1, 1, 1, 1);
- SendClientMessage(playerid, COR_VERDE, "Você acabou de beber uma água e sua sede diminuiu.");
- }
- else if(PlayerInfo[playerid][Agua] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem água para beber, vá buscar em um lago!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/comer fruta", true) == 0)
- {
- if(PlayerInfo[playerid][Frutas] >= 1)
- {
- PlayerInfo[playerid][Frutas] -= 1;
- SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
- SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
- UpdateProgressBar(FomeA,playerid);
- ApplyPlayerAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid, COR_VERDE, "[!] Você comeu uma fruta e sua fome diminuiu.");
- }
- else if(PlayerInfo[playerid][Frutas] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "[!]Você não tem nenhuma fruta para comer!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/comer carne", true) == 0)
- {
- if(PlayerInfo[playerid][Carne] >= 1)
- {
- PlayerInfo[playerid][Carne] -= 1;
- SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+20);
- SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
- UpdateProgressBar(FomeA,playerid);
- ApplyPlayerAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid, COR_VERDE, "Você comeu uma carne e sua fome diminuiu.");
- }
- else if(PlayerInfo[playerid][Carne] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhuma carne para comer!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/comer peixe", true) == 0)
- {
- if(PlayerInfo[playerid][Peixe] >= 1)
- {
- PlayerInfo[playerid][Peixe] -= 1;
- SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+15);
- SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
- UpdateProgressBar(FomeA,playerid);
- ApplyPlayerAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid, COR_VERDE, "Você comeu um peixe e sua fome diminuiu.");
- }
- else if(PlayerInfo[playerid][Peixe] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhum peixe para comer!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/aquecer", true) == 0)
- {
- new Float:x, Float:y, Float:z;
- Streamer_GetFloatData(STREAMER_TYPE_OBJECT, Fogarel, E_STREAMER_X, x);
- Streamer_GetFloatData(STREAMER_TYPE_OBJECT, Fogarel, E_STREAMER_Y, y);
- Streamer_GetFloatData(STREAMER_TYPE_OBJECT, Fogarel, E_STREAMER_Z, z);
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) return SendClientMessage(playerid, 0xFF0000FF, "Você não está perto de uma campfire!");
- {
- SetPVarInt(playerid,"Frio",GetPVarInt(playerid,"Frio")+100);
- SetProgressBarValue(FrioD, GetPVarInt(playerid,"Frio"));
- UpdateProgressBar(FrioD,playerid);
- SendClientMessage(playerid,-1,"{FFFF00}Você se esquentou e por isso não está mais com frio!");
- return 1;
- }
- }
- if(strcmp(cmdtext, "/bandagem", true) == 0)
- {
- if(Bandagem[playerid] >= 1)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- Bandagem[playerid] = Bandagem[playerid] -= 1;
- SetPlayerHealth(playerid, health + 10);
- SendClientMessage(playerid, COR_VERDE, "Você usou uma bandagem e curou 10 da sua vida!");
- }
- else if(Bandagem[playerid] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhuma bandagem!!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/remedio", true) == 0)
- {
- if(Remedio[playerid] >= 1)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- Remedio[playerid] = Remedio[playerid] -= 1;
- SetPlayerHealth(playerid, health + 30);
- SendClientMessage(playerid, COR_VERDE, "Você usou um analgésico e curou 30 de sua vida!");
- }
- else if(Remedio[playerid] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhum analgésico!!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/pegar agua", true) == 0)
- {
- if(PlayerNoLugar(playerid,3.0,-722.4331,-2055.1331,6.3556) || PlayerNoLugar(playerid,3.0,-782.6783,-2038.8295,6.6471) || PlayerNoLugar(playerid,3.0,-805.0019,-1935.4814,6.3195) ||
- PlayerNoLugar(playerid,3.0,-724.8286,-1873.4583,6.8128) || PlayerNoLugar(playerid,3.0, -706.3614,-1933.9801,6.4755))
- {
- GameTextForPlayer(playerid, "~w~Pegando ~n~~b~Agua", 1000, 1);
- ApplyPlayerAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
- Valor2 [playerid] = 0 ;
- ShowProgressBarForPlayer(playerid, Exemplo2); //mostra a bar pro player
- SetProgressBarValue ( Exemplo, Valor2[playerid] ) ; //seta o valor dela
- Baru2[playerid] = SetTimerEx("pegandoagua", 500, true, "i" , playerid) ;//inicia o timer
- }
- else
- {
- SendClientMessage(playerid, COR_VERMELHO, "[!] Você não pode pegar água aqui, procure por um lago!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/degolar", true) == 0)
- {
- if(BambiDead[playerid] == 1)
- {
- if(GetPlayerWeapon(playerid) != 4) return SendClientMessage(playerid, COR_VERMELHO, "[!] Você precisa estar segurando uma faca para degolar!");
- ApplyPlayerAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
- SetTimer("Degolado", 5000, 0);
- }
- else if(BambiDead[playerid] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "[!] Você não matou nenhum bambi!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/pescar", true) == 0)
- {
- if(PlayerNoLugar(playerid,3.0,-722.4331,-2055.1331,6.3556) || PlayerNoLugar(playerid,3.0,-782.6783,-2038.8295,6.6471) || PlayerNoLugar(playerid,3.0,-805.0019,-1935.4814,6.3195) ||
- PlayerNoLugar(playerid,3.0,-724.8286,-1873.4583,6.8128) || PlayerNoLugar(playerid,3.0, -706.3614,-1933.9801,6.4755))
- {
- if(pPescando[playerid] == 1)
- {
- SetPlayerAttachedObject(playerid, 2, 18632, 6, 0.1, 0.05, 0.02, 270.0, 270.0, 0.0, 1.0, 1.0, 1.0);
- GameTextForPlayer(playerid, "~w~Pescando ~n~~b~Aguarde...", 100, 1);
- ApplyPlayerAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- SetTimer("Pescando", 10000, 0);
- } else
- {
- SendClientMessage(playerid, COR_VERMELHO, "[!] Você já está pescando!");
- }
- }
- else
- {
- SendClientMessage(playerid, COR_VERMELHO, "[!] Você não pode pescar aqui, procure por um lago!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/colher frutas", true) == 0)
- {
- if(PlayerNoLugar(playerid, 2.0, -748.5999800,-2453.7000,68.0000) || PlayerNoLugar(playerid, 2.0, -717.9000200,-2465.5000,68.1000) || PlayerNoLugar(playerid, 2.0, -718.5000,-2431.6001,62.0000) || PlayerNoLugar(playerid, 2.0, -691.0999800,-2438.5000,63.5000) ||
- PlayerNoLugar(playerid, 2.0, -701.7000100,-2382.8000,49.0000) || PlayerNoLugar(playerid, 2.0, -576.0999800,-2230.5000,27.4000) || PlayerNoLugar(playerid, 2.0, -689.2000100,-2351.1001,36.8000) || PlayerNoLugar(playerid, 2.0, -645.4000200,-2373.2000,33.8000) ||
- PlayerNoLugar(playerid, 2.0, -663.7998,-2349.5996,34.7000) || PlayerNoLugar(playerid, 2.0, -654.2998,-2321.5996,34.5000) || PlayerNoLugar(playerid, 2.0, -671.5996100,-2298.0996,28.3000) || PlayerNoLugar(playerid, 2.0, -632.2998,-2291.5000,27.8000) ||
- PlayerNoLugar(playerid, 2.0, -599.5996100,-2264.7002,24.4000) || PlayerNoLugar(playerid, 2.0, -569.7999900,-2258.8000,25.9000) || PlayerNoLugar(playerid, 2.0, -1058.1000,-2456.8000,60.0000) || PlayerNoLugar(playerid, 2.0, -1090.2000,-2338.3999,49.8000) ||
- PlayerNoLugar(playerid, 2.0, -1024.4004,-2431.2998,65.5000) || PlayerNoLugar(playerid, 2.0, -1055.0996,-2416.0996,58.9000) || PlayerNoLugar(playerid, 2.0, -1080.0996,-2355.0996,47.8000) || PlayerNoLugar(playerid, 2.0, -1106.7000,-2298.8999,41.9000) ||
- PlayerNoLugar(playerid, 2.0, -1112.6000,-2332.5000,42.5000) || PlayerNoLugar(playerid, 2.0, -1092.7998,-2323.2998,51.7000) || PlayerNoLugar(playerid, 2.0, -1061.0000,-2309.7000,53.4000) || PlayerNoLugar(playerid, 2.0, -995.2999900,-2311.0000,61.8000) ||
- PlayerNoLugar(playerid, 2.0, -968.0999800,-2339.3999,65.5000) || PlayerNoLugar(playerid, 2.0, -976.2000100,-2288.0000,58.7000) || PlayerNoLugar(playerid, 2.0, -908.0000,-2401.3999,58.4000) || PlayerNoLugar(playerid, 2.0, -943.7999900,-2499.8999,103.2000) ||
- PlayerNoLugar(playerid, 2.0, -914.9003900,-2438.2002,80.1000) || PlayerNoLugar(playerid, 2.0, -945.7002,-2477.7002,99.3000) || PlayerNoLugar(playerid, 2.0, -764.5000,-2409.0000,64.0000) || PlayerNoLugar(playerid, 2.0, -690.4000200,-2191.7000,19.5000) ||
- PlayerNoLugar(playerid, 2.0, -726.5000,-2197.8994,34.4000) || PlayerNoLugar(playerid, 2.0, -736.7998,-2213.0996,36.5000) || PlayerNoLugar(playerid, 2.0, -665.0000,-2180.5000,18.3000) || PlayerNoLugar(playerid, 2.0, -680.5000,-2166.5000,22.1000) ||
- PlayerNoLugar(playerid, 2.0, -670.4000200,-2115.8000,25.5000) || PlayerNoLugar(playerid, 2.0, -659.0996100,-2126.5996,26.2000) || PlayerNoLugar(playerid, 2.0, -643.9000200,-2090.5000,27.7000) || PlayerNoLugar(playerid, 2.0, -690.7999900,-2137.0000,24.7000) ||
- PlayerNoLugar(playerid, 2.0, -763.5999800,-2221.8000,21.6000) || PlayerNoLugar(playerid, 2.0, -863.4000200,-2274.2000,25.3000) || PlayerNoLugar(playerid, 2.0, -870.4003900,-2246.0000,26.5000) || PlayerNoLugar(playerid, 2.0, -902.9000200,-2259.5000,37.9000) ||
- PlayerNoLugar(playerid, 2.0, -804.5000,-2297.3999,28.3000) || PlayerNoLugar(playerid, 2.0, -792.2000100,-2343.2000,43.4000) || PlayerNoLugar(playerid, 2.0, -809.4003900,-2328.5000,38.1000) || PlayerNoLugar(playerid, 2.0, -845.2000100,-2362.2000,57.7000) ||
- PlayerNoLugar(playerid, 2.0, -576.7000100,-1995.9000,45.4000) || PlayerNoLugar(playerid, 2.0, -607.5996100,-2047.4004,40.2000) || PlayerNoLugar(playerid, 2.0, -572.7998,-2016.0000,47.0000) || PlayerNoLugar(playerid, 2.0, -587.5000,-1980.0000,42.1000) ||
- PlayerNoLugar(playerid, 2.0, -603.7999900,-1948.3000,33.2000) || PlayerNoLugar(playerid, 2.0, -571.7998,-1952.5996,38.4000) || PlayerNoLugar(playerid, 2.0, -513.7999900,-2002.7000,47.5000) || PlayerNoLugar(playerid, 2.0, -519.2998,-1965.7002,41.4000) ||
- PlayerNoLugar(playerid, 2.0, -531.2998,-1988.9004,46.2000) || PlayerNoLugar(playerid, 2.0, -657.2999900,-1838.5000,20.7000) || PlayerNoLugar(playerid, 2.0, -587.7999900,-1831.6000,29.3000) || PlayerNoLugar(playerid, 2.0, -613.7002,-1868.7002,16.1000) ||
- PlayerNoLugar(playerid, 2.0, -557.5999800,-1858.4000,18.2000) || PlayerNoLugar(playerid, 2.0, -540.5000,-1843.0000,21.3000) || PlayerNoLugar(playerid, 2.0, -529.5000,-1862.7000,13.1000) || PlayerNoLugar(playerid, 2.0, -505.5000,-1854.0000,14.8000) ||
- PlayerNoLugar(playerid, 2.0, -393.7999900,-1952.2000,19.2000) || PlayerNoLugar(playerid, 2.0, -398.1000100,-1971.5000,24.6000) || PlayerNoLugar(playerid, 2.0, -397.8999900,-2003.4000,30.4000) || PlayerNoLugar(playerid, 2.0, -423.2999900,-2083.8000,77.0000) ||
- PlayerNoLugar(playerid, 2.0, -422.7000100,-2113.1001,83.8000) || PlayerNoLugar(playerid, 2.0, -456.1000100,-2094.7000,85.2000) || PlayerNoLugar(playerid, 2.0, -486.7999900,-2112.8999,89.0000) || PlayerNoLugar(playerid, 2.0, -453.0000,-2141.7000,87.8000) ||
- PlayerNoLugar(playerid, 2.0, -568.5000,-2120.6001,70.0000) || PlayerNoLugar(playerid, 2.0, -537.0999800,-2126.1001,78.1000) || PlayerNoLugar(playerid, 2.0, -325.5000,-2588.3000,127.7000) || PlayerNoLugar(playerid, 2.0, -473.2998,-2203.0996,74.1000) ||
- PlayerNoLugar(playerid, 2.0, -374.6000100,-2221.3999,65.9000) || PlayerNoLugar(playerid, 2.0, -348.2999900,-2301.8999,67.3000) || PlayerNoLugar(playerid, 2.0, -351.2000100,-2343.3999,82.3000) || PlayerNoLugar(playerid, 2.0, -295.7000100,-2380.5000,65.7000))
- {
- PlayerInfo[playerid][Frutas] += 5;
- SendClientMessage(playerid, AZUL_AGUA, "[!] Você acabou de colher algumas frutas!");
- }
- else
- {
- SendClientMessage(playerid, COR_VERMELHO, "[!] Você não está perto de uma árvore de frutas!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/cmds", true) == 0 || strcmp(cmdtext, "/comandos", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new meudialog[500];
- strins(meudialog, "{33FF00} => Olá caro jogador, desejamos lhe um ótimo jogo no servidor, seja muito bem vindo aqui!\n", strlen(meudialog));
- strins(meudialog, "{33FF00} => Abaixo iremos mostrar-lhe algums comandos do servidor!\n\n", strlen(meudialog));
- strins(meudialog, "{43BBDE} =>{33FF00}Comandos Materiais:{43BBDE} /cortar madeira, /pegar pedras, /procurar parafusos,\n", strlen(meudialog));
- strins(meudialog, "{43BBDE} =>{33FF00}Comandos Materiais:{43BBDE} /cozinhar stone [Produzir Ferro].\n", strlen(meudialog));
- strins(meudialog, "{43BBDE} =>{33FF00}Comandos Crafting:{43BBDE} /construir [Base/Cama/Bancada/Baú], /fabricar vara,\n", strlen(meudialog));
- strins(meudialog, "{43BBDE} =>{33FF00}Comandos Crafting:{43BBDE} /campfire, /fabricar rifle, /fabricar faca, /fabricar colete.\n", strlen(meudialog));
- strins(meudialog, "{43BBDE} =>{33FF00}Comandos Fome:{43BBDE} /colher [frutas], /comer [Fruta/Carne/Peixe].\n", strlen(meudialog));
- strins(meudialog, "{43BBDE} =>{33FF00}Comandos Fome:{43BBDE} /assar [Peixe/Carne].\n", strlen(meudialog));
- strins(meudialog, "{43BBDE} =>{33FF00}Comandos Sede:{43BBDE} /pegar agua /fazer suco, /beber [agua/suco].\n", strlen(meudialog));
- strins(meudialog, "{43BBDE} =>{33FF00}Comandos Frio:{43BBDE} /aquecer, /casaco.\n", strlen(meudialog));
- strins(meudialog, "{43BBDE} =>{33FF00}Comandos Úteis:{43BBDE} /infocash, /admins, /bug, /cmds, /relatorio, /forum!\n", strlen(meudialog));
- ShowPlayerDialog(playerid, 1281, DIALOG_STYLE_MSGBOX, "Comandos Island Survival", meudialog, "Entendido", "");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/info", true) == 0)
- {
- new coordsstring[300];
- new DialogStatus[2000];
- format(coordsstring, sizeof(coordsstring), "{33FFFF}Social: {FFFFFF}Nome: {33FFFF}[%s] {FFFFFF}Level: {33FFFF}[%d] {FFFFFF}Cash: {33FFFF}[%d].\n", Nome(playerid), PlayerInfo[playerid][Level], PlayerInfo[playerid][Cash]);
- strcat(DialogStatus,coordsstring);
- format(coordsstring, sizeof(coordsstring), "{33FFFF}Materiais: {FFFFFF}Madeiras:{33FFFF}[%d] {FFFFFF}Pedras:{33FFFF}[%d] {FFFFFF}Metais:{33FFFF}[%d]\n", PlayerInfo[playerid][Madeira], PlayerInfo[playerid][Pedra], PlayerInfo[playerid][Metal]);
- strcat(DialogStatus,coordsstring);
- format(coordsstring, sizeof(coordsstring), "{33FFFF}Materiais: {FFFFFF}Cloth{33FFFF}[%d] {FFFFFF}Parafusos{33FFFF}[%d]\n", PlayerInfo[playerid][Cloth], PlayerInfo[playerid][Parafuso]);
- strcat(DialogStatus,coordsstring);
- format(coordsstring, sizeof(coordsstring), "{33FFFF}Alimentos: {FFFFFF}Peixes:{33FFFF}[%d] {FFFFFF}Carne:{33FFFF}[%d] {FFFFFF}Frutas:{33FFFF}[%d]\n", PlayerInfo[playerid][Peixe], PlayerInfo[playerid][Carne], PlayerInfo[playerid][Frutas]);
- strcat(DialogStatus,coordsstring);
- format(coordsstring, sizeof(coordsstring), "{33FFFF}Alimentos: {FFFFFF}Laranjas:{33FFFF}[%d] {FFFFFF}Aguas:{33FFFF}[%d] {FFFFFF}Sucos:{33FFFF}[%s]\n ", PlayerInfo[playerid][Level], PlayerInfo[playerid][Agua], PlayerInfo[playerid][Cash]);
- strcat(DialogStatus,coordsstring);
- ShowPlayerDialog(playerid, 8789, DIALOG_STYLE_MSGBOX, "{00F6F6}Informações\n", DialogStatus, "Fechar", "");
- return 1;
- }
- if(strcmp(cmdtext, "/creditos", true) == 0)
- {
- new frank[500];
- strins(frank, "{FFFFFF}================= Créditos do Survival the Island =================\n\n", strlen(frank));
- strins(frank, "{FF0000}•{FFFFFF} GameMode criado totalmente do zero por: {FF0000}Power.\n", strlen(frank));
- strins(frank, "{FF0000}•{FFFFFF} Fundadores do Survival the Island: {FF0000}Power e Mozart.\n", strlen(frank));
- strins(frank, "{FF0000}•{FFFFFF} Mapper do Survival the Island: {FF0000}Power.\n", strlen(frank));
- strins(frank, "{FF0000}•{FFFFFF} Agradecimentos por ajudas e tutoriais: {FF0000} Fórum SA-MP e Carlos001.\n", strlen(frank));
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Créditos do Survival the Island\n", frank, "Fechar", "");
- return 1;
- }
- if(strcmp(cmdtext, "/infocash", true) == 0)
- {
- new frank2[410];
- strins(frank2, "{00FF00} Plano 20 de Cash = {FF0000}R$ 5. {00FF00}Use: /forum e confira.\n", strlen(frank2));
- strins(frank2, "{00FF00} Plano 50 de Cash = {FF0000}R$ 10. {00FF00}Use: /forum e confira.\n", strlen(frank2));
- strins(frank2, "{00FF00} Plano 75 de Cash = {FF0000}R$ 15. {00FF00}Use: /forum e confira.\n", strlen(frank2));
- strins(frank2, "{00FF00} Plano 100 de Cash = {FF0000}R$ 20. {00FF00}Use: /forum e confira.\n", strlen(frank2));
- strins(frank2, "{00FFFF} Veja outros valores e promoções no nosso fórum. Use: /forum.\n", strlen(frank2));
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Planos Cash do Survival the Island\n", frank2, "Fechar", "");
- return 1;
- }
- if(strcmp(cmdtext, "/loja", true) == 0)
- {
- if(PlayerInfo[playerid][Cash] < 1)
- {
- return SendClientMessage(playerid,COR_VERMELHO,"Você não tem cash para acessar a loja!");
- }
- ShowPlayerDialog(playerid,123,DIALOG_STYLE_LIST,"Loja de Cash","Armamentos\nMedicamentos\n","Aceitar","Cancelar");
- return 1;
- }
- /* COMANDOS CRAFTING */
- if(strcmp(cmdtext, "/construir", true) == 0 || strcmp(cmdtext, "/craft", true) == 0)
- {
- ShowPlayerDialog(playerid,9964,DIALOG_STYLE_LIST,"Crafting's"," - Crafting Casa/House\n - Crafting Mobilias/Furniture\n - Crafting Veiculos/Vehicles\n","Aceitar","Cancelar");
- return 1;
- }
- if(strcmp(cmdtext, "/construir tenda", true) == 0)
- {
- new Float:x,Float:y,Float:z;
- CreateTentP(playerid);
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x+0.01, y, z); // move o jogador quase nada para a tenda aparecer
- return 1;
- }
- if(strcmp(cmdtext, "/bancada", true) == 0)
- {
- for(new i; i < MAX_BANCADAS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Bancada[i][PosX], Bancada[i][PosY], Bancada[i][PosZ]))
- {
- ShowPlayerDialog(playerid,9798,DIALOG_STYLE_LIST,"Bancada","Fabricar Armas\nFabricar Medicamentos\n","Aceitar","Cancelar");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/construir forno", true) == 0)
- {
- new id = -1;
- for(new i; i < MAX_FORNO; i++)
- {
- if(!Forno[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Forno[id][Dono] = pName(playerid);
- Forno[id][Existe] = 1;
- Forno[id][PosX] = X;
- Forno[id][PosY] = Y;
- Forno[id][PosZ] = Z;
- Forno[id][RZ] = A + 180;
- Forno[id][ObjectJ] = CreateDynamicObject(forno, Forno[id][PosX], Forno[id][PosY], Forno[id][PosZ], Forno[id][RX], Forno[id][RY], Forno[id][RZ]);
- SendClientMessage(playerid, -1, "Forno criado com Sucesso");
- SalvarForno(id);
- return 1;
- }
- if(strcmp(cmdtext, "/construir cama", true) == 0)
- {
- new id = -1;
- for(new i; i < MAX_CAMA; i++)
- {
- if(!Cama[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Cama[id][Dono] = pName(playerid);
- Cama[id][Existe] = 1;
- Cama[id][PosX] = X;
- Cama[id][PosY] = Y;
- Cama[id][PosZ] = Z;
- Cama[id][RZ] = A + 180;
- Cama[id][ObjectG] = CreateDynamicObject(cama, Cama[id][PosX], Cama[id][PosY], Cama[id][PosZ], Cama[id][RX], Cama[id][RY], Cama[id][RZ]);
- SendClientMessage(playerid, -1, "Cama criado com Sucesso");
- SalvarCama(id);
- return 1;
- }
- if(strcmp(cmdtext, "/construir windown", true) == 0)
- {
- new id = -1;
- for(new i; i < MAX_WINDOWN; i++)
- {
- if(!Windown[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Windown[id][Dono] = pName(playerid);
- Windown[id][Existe] = 1;
- Windown[id][PosX] = X;
- Windown[id][PosY] = Y;
- Windown[id][PosZ] = Z;
- Windown[id][RZ] = A + 180;
- Windown[id][ObjectH] = CreateDynamicObject(windown1, Windown[id][PosX], Windown[id][PosY], Windown[id][PosZ], Windown[id][RX], Windown[id][RY], Windown[id][RZ]);
- SendClientMessage(playerid, -1, "windown criado com Sucesso");
- SalvarWindowns(id);
- return 1;
- }
- if(strcmp(cmdtext, "/construir walldoor", true) == 0)
- {
- new id = -1;
- for(new i; i < MAX_DOOR; i++)
- {
- if(!Door[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Door[id][Dono] = pName(playerid);
- Door[id][Existe] = 1;
- Door[id][PosX] = X;
- Door[id][PosY] = Y;
- Door[id][PosZ] = Z;
- Door[id][RZ] = A + 180;
- Door[id][ObjectF] = CreateDynamicObject(walldoor, Door[id][PosX], Door[id][PosY], Door[id][PosZ], Door[id][RX], Door[id][RY], Door[id][RZ]);
- SendClientMessage(playerid, -1, "Door criado com Sucesso");
- SalvarDoor(id);
- return 1;
- }
- if(strcmp(cmdtext, "/construir rampa", true) == 0)
- {
- new id = -1;
- for(new i; i < MAX_RAMPAS; i++)
- {
- if(!Rampa[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Rampa[id][Dono] = pName(playerid);
- Rampa[id][Existe] = 1;
- Rampa[id][PosX] = X;
- Rampa[id][PosY] = Y;
- Rampa[id][PosZ] = Z;
- Rampa[id][RZ] = A + 180;
- Rampa[id][ObjectE] = CreateDynamicObject(rampa, Rampa[id][PosX], Rampa[id][PosY], Rampa[id][PosZ], Rampa[id][RX], Rampa[id][RY], Rampa[id][RZ]);
- SendClientMessage(playerid, -1, "Rampa criado com Sucesso");
- SalvarRampas(id);
- return 1;
- }
- if(strcmp(cmdtext, "/construir bau", true) == 0)
- {
- new id = -1;
- for(new i; i < MAX_BAU; i++)
- {
- if(!Bau[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Bau[id][Dono] = pName(playerid);
- Bau[id][Existe] = 1;
- Bau[id][PosX] = X;
- Bau[id][PosY] = Y;
- Bau[id][PosZ] = Z;
- Bau[id][RZ] = A + 180;
- Bau[id][ObjectD] = CreateDynamicObject(bau, Bau[id][PosX], Bau[id][PosY], Bau[id][PosZ], Bau[id][RX], Bau[id][RY], Bau[id][RZ]);
- SendClientMessage(playerid, -1, "Bau criado com Sucesso");
- SalvarBaus(id);
- return 1;
- }
- if(strcmp(cmdtext, "/construir porta", true) == 0)
- {
- new id = -1;
- for(new i; i < MAX_PORTAS; i++)
- {
- if(!Porta[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Porta[id][Dono] = pName(playerid);
- Porta[id][Existe] = 1;
- Porta[id][PosX] = X;
- Porta[id][PosY] = Y;
- Porta[id][PosZ] = Z;
- Porta[id][RZ] = A + 180;
- Porta[id][ObjectC] = CreateDynamicObject(porta, Porta[id][PosX], Porta[id][PosY], Porta[id][PosZ], Porta[id][RX], Porta[id][RY], Porta[id][RZ]);
- SendClientMessage(playerid, -1, "Porta criada com Sucesso");
- SalvarPortas(id);
- return 1;
- }
- if(strcmp(cmdtext, "/construir bancada", true) == 0)
- {
- new id = -1;
- for(new i; i < MAX_BANCADAS; i++)
- {
- if(!Bancada[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Bancada[id][Dono] = pName(playerid);
- Bancada[id][Existe] = 1;
- Bancada[id][PosX] = X;
- Bancada[id][PosY] = Y;
- Bancada[id][PosZ] = Z -1;
- Bancada[id][RZ] = A + 180;
- Bancada[id][ObjectA] = CreateDynamicObject(bancada, Bancada[id][PosX], Bancada[id][PosY], Bancada[id][PosZ], Bancada[id][RX], Bancada[id][RY], Bancada[id][RZ]);
- SendClientMessage(playerid, -1, "Bancada criada com Sucesso");
- SalvarBancadas(id);
- return 1;
- }
- if(strcmp(cmdtext, "/construir base", true) == 0)
- {
- new id = -1;
- for(new i; i < MAX_BASES; i++)
- {
- if(!Base[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Base[id][Dono] = pName(playerid);
- Base[id][Existe] = 1;
- Base[id][PosX] = X;
- Base[id][PosY] = Y;
- Base[id][PosZ] = Z+1;
- Base[id][RZ] = A + 180;
- Base[id][ObjectB] = CreateDynamicObject(ObjectBase, Base[id][PosX], Base[id][PosY], Base[id][PosZ], Base[id][RX], Base[id][RY], Base[id][RZ]);
- SendClientMessage(playerid, verde, "[!] Base criada com Sucesso");
- SalvarBases(id);
- return 1;
- }
- if(strcmp(cmdtext, "/campfire", true) == 0)
- {
- if(PlayerInfo[playerid][Madeira] >= 5)
- {
- if(Fogo[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~Fazendo ~n~~w~campfire", 100, 1);
- ApplyPlayerAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
- TogglePlayerControllable(playerid, 0);
- SetTimer("campfire", 10000, 0);
- }
- else if(Fogo[playerid] == 1)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você já tem uma CampFire, espere até que ela apague!");
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem as Madeira necessarias!");
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/usar tocha", true) == 0)
- {
- if(Tocha[playerid] >= 1)
- {
- SetPlayerAttachedObject(playerid, 1, 3525, 6, 0.1, 0.05, 0.02, 360.0, 360.0, 0.0, 1.0, 1.0, 1.0);
- SendClientMessage(playerid, COR_VERDE, "Você usou sua tocha!");
- SetTimer("ApagarTocha", 300000, 0);
- }
- else if(Tocha[playerid] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem nenhuma tocha!!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/fazer tocha", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(Tocha[playerid] == 0)
- {
- if(PlayerInfo[playerid][Madeira] >= 1)
- {
- PlayerInfo[playerid][Madeira] -= 1;
- SendClientMessage(playerid, COR_VERDE, "Você fez uma tocha para usa-la digite /usar tocha");
- Tocha[playerid] += 1;
- } else {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem madeira suficiente. Use: /ajuda.");
- }
- } else if(Tocha[playerid] >= 1){
- SendClientMessage(playerid, COR_VERMELHO, "Você ja tem 1 tocha!");
- }
- }
- return 1;
- }
- //comandos para destruir
- if(strcmp(cmdtext, "/destruir forno", true) == 0)
- {
- new id = GetPlayerRangeForno(playerid);
- if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Forno!");
- if(strcmp(Forno[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta Forno não é sua!");
- DestroyDynamicObject(Forno[id][ObjectJ]);
- Forno[id][Existe] = 0;
- Forno[id][PosX] = 0;
- Forno[id][PosY] = 0;
- Forno[id][PosZ] = 0;
- Forno[id][RX] = 0;
- Forno[id][RY] = 0;
- Forno[id][RZ] = 0;
- new file[64];
- format(file, sizeof(file), "Saves/Fornalhas/%d.ini", id);
- if(DOF2_FileExists(file))
- DOF2_RemoveFile(file);
- SendClientMessage(playerid, -1, "Forno Apagada");
- return 1;
- }
- if(strcmp(cmdtext, "/destruir cama", true) == 0)
- {
- new id = GetPlayerRangeCama(playerid);
- if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Cama!");
- if(strcmp(Cama[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta cama não é sua!");
- DestroyDynamicObject(Cama[id][ObjectG]);
- Cama[id][Existe] = 0;
- Cama[id][PosX] = 0;
- Cama[id][PosY] = 0;
- Cama[id][PosZ] = 0;
- Cama[id][RX] = 0;
- Cama[id][RY] = 0;
- Cama[id][RZ] = 0;
- new file[64];
- format(file, sizeof(file), "Saves/Cama/%d.ini", id);
- if(DOF2_FileExists(file))
- DOF2_RemoveFile(file);
- SendClientMessage(playerid, -1, "Cama Apagada");
- return 1;
- }
- if(strcmp(cmdtext, "/destruir walldoor", true) == 0)
- {
- new id = GetPlayerRangeDoor(playerid);
- if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua WallDoor!");
- if(strcmp(Door[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta WallDoor não é sua!");
- DestroyDynamicObject(Door[id][ObjectF]);
- Door[id][Existe] = 0;
- Door[id][PosX] = 0;
- Door[id][PosY] = 0;
- Door[id][PosZ] = 0;
- Door[id][RX] = 0;
- Door[id][RY] = 0;
- Door[id][RZ] = 0;
- new file[64];
- format(file, sizeof(file), "Saves/Door/%d.ini", id);
- if(DOF2_FileExists(file))
- DOF2_RemoveFile(file);
- SendClientMessage(playerid, -1, "Door Apagada");
- return 1;
- }
- if(strcmp(cmdtext, "/destruir rampa", true) == 0)
- {
- new id = GetPlayerRangeRampa(playerid);
- if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Rampa!");
- if(strcmp(Rampa[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta rampa não é sua!");
- DestroyDynamicObject(Rampa[id][ObjectE]);
- Rampa[id][Existe] = 0;
- Rampa[id][PosX] = 0;
- Rampa[id][PosY] = 0;
- Rampa[id][PosZ] = 0;
- Rampa[id][RX] = 0;
- Rampa[id][RY] = 0;
- Rampa[id][RZ] = 0;
- new file[64];
- format(file, sizeof(file), "Saves/Rampas/%d.ini", id);
- if(DOF2_FileExists(file))
- DOF2_RemoveFile(file);
- SendClientMessage(playerid, -1, "Rampa Apagada");
- return 1;
- }
- if(strcmp(cmdtext, "/destruir bau", true) == 0)
- {
- new id = GetPlayerRangeBau(playerid);
- if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto do seu Baú!");
- if(strcmp(Bau[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Este baú não é seu!");
- DestroyDynamicObject(Bau[id][ObjectD]);
- Bau[id][Existe] = 0;
- Bau[id][PosX] = 0;
- Bau[id][PosY] = 0;
- Bau[id][PosZ] = 0;
- Bau[id][RX] = 0;
- Bau[id][RY] = 0;
- Bau[id][RZ] = 0;
- new file[64];
- format(file, sizeof(file), "Saves/Baus/%d.ini", id);
- if(DOF2_FileExists(file))
- DOF2_RemoveFile(file);
- SendClientMessage(playerid, -1, "Bau Apagada");
- return 1;
- }
- if(strcmp(cmdtext, "/destruir porta", true) == 0)
- {
- new id = GetPlayerRangePorta(playerid);
- if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Porta!");
- if(strcmp(Porta[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta porta não é sua!");
- DestroyDynamicObject(Porta[id][ObjectC]);
- Porta[id][Existe] = 0;
- Porta[id][PosX] = 0;
- Porta[id][PosY] = 0;
- Porta[id][PosZ] = 0;
- Porta[id][RX] = 0;
- Porta[id][RY] = 0;
- Porta[id][RZ] = 0;
- new file[64];
- format(file, sizeof(file), "Saves/Portas/%d.ini", id);
- if(DOF2_FileExists(file))
- DOF2_RemoveFile(file);
- SendClientMessage(playerid, -1, "Porta Apagada");
- return 1;
- }
- if(strcmp(cmdtext, "/destruir base", true) == 0)
- {
- new id = GetPlayerRangeBase(playerid);
- if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Base!");
- if(strcmp(Base[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta base não é sua!");
- DestroyDynamicObject(Base[id][ObjectB]);
- Base[id][Existe] = 0;
- Base[id][PosX] = 0;
- Base[id][PosY] = 0;
- Base[id][PosZ] = 0;
- Base[id][RX] = 0;
- Base[id][RY] = 0;
- Base[id][RZ] = 0;
- new file[64];
- format(file, sizeof(file), "Saves/Bases/%d.ini", id);
- if(DOF2_FileExists(file))
- DOF2_RemoveFile(file);
- SendClientMessage(playerid, -1, "Base Apagada");
- return 1;
- }
- if(strcmp(cmdtext, "/destruir bancada", true) == 0)
- {
- new id = GetPlayerRangeBancada(playerid);
- if(id == -1) return SendClientMessage(playerid, -1, "Você não está perto de sua Bancada!");
- if(strcmp(Bancada[id][Dono], pName(playerid))) return SendClientMessage(playerid, -1, "Esta bancada não é sua!");
- DestroyDynamicObject(Bancada[id][ObjectA]);
- Bancada[id][Existe] = 0;
- Bancada[id][PosX] = 0;
- Bancada[id][PosY] = 0;
- Bancada[id][PosZ] = 0;
- Bancada[id][RX] = 0;
- Bancada[id][RY] = 0;
- Bancada[id][RZ] = 0;
- new file[64];
- format(file, sizeof(file), "Saves/Bancadas/%d.ini", id);
- if(DOF2_FileExists(file))
- DOF2_RemoveFile(file);
- SendClientMessage(playerid, -1, "Bancada Apagada");
- return 1;
- }
- if(strcmp(cmdtext, "/admins", true) == 0 || strcmp(cmdtext, "/administradores", true) == 0)
- {
- SendClientMessage(playerid, 0x2DFFFFFF, "||- Online no Survival The Island -||");
- paramount(i,MAX_PLAYERS)
- {
- new lolz[20];
- if(PlayerInfo[playerid][Administrador] == 1)
- {
- lolz = "[1] Iniciante";
- }
- if(PlayerInfo[playerid][Administrador] == 2)
- {
- lolz = "[2] Moderador";
- }
- if(PlayerInfo[playerid][Administrador] == 3)
- {
- lolz = "[3] Master";
- }
- if(PlayerInfo[playerid][Administrador] == 4)
- {
- lolz = "[4] Sub-Dono";
- }
- if(PlayerInfo[playerid][Administrador] == 5)
- {
- lolz = "[5] Dono/Fundador";
- }
- if(PlayerInfo[playerid][Administrador] >= 1 && PlayerInfo[playerid][Administrador] >= 5)
- {
- format(string_,sizeof(string_), "{00FFFF} %s {FF7F00}|| %s || ", Nome(playerid), lolz);
- SendClientMessage(playerid, 0x3366FFFF, string_);
- }
- }
- return 1;
- }
- if(strcmp(cmdtext,"/skin", true, 5) == 0)
- {
- if(PlayerInfo[playerid][Cloth] >= 1)
- {
- static
- string[128],
- skinid
- ;
- if(sscanf(cmdtext[6],"i",skinid)) return SendClientMessage(playerid, 0xF60000AA, "Erro: Tu deves escrever o numero da skin!");
- SetPlayerSkin(playerid, skinid);
- PlayerInfo[playerid][Skin] = skinid;
- format(string, 128, "Tu mudaste o teu skin para: %i" ,skinid);
- SendClientMessage(playerid, 0xF60000AA, string);
- }
- else if(PlayerInfo[playerid][Cloth] == 0)
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "Você não tem Clouth suficiente!");
- }
- return 1;
- }
- if(strcmp(cmdtext,"/guardar arma", true) == 0)
- {
- switch(GetPlayerWeapon(playerid)){
- }
- return 1;
- }
- // comandos admin apartir daqui
- if(strcmp(cmdtext, "/gmx", true) == 0 || strcmp(cmdtext, "/reiniciar", true) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 5)
- {
- GameTextForPlayer(playerid, "~b~GMX ~w~AGUARDE", 200, 0);
- SendRconCommand("Gmx");
- }
- else return SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/setskin", true, 7) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 2)
- {
- new
- idx,
- skinid;
- if(sscanf(cmdtext[8],"ud",idx,skinid)) return SendClientMessage(playerid,-1,"use /mudarskin [playerid] [skinid]");
- if(!IsPlayerConnected(idx)) return SendClientMessage(playerid,-1,"Jogador Off-line.");
- if(skinid < 0 || skinid > 311) return SendClientMessage(playerid,-1,"use de 0-311");
- SetPlayerSkin(idx,skinid);
- SendClientMessage(playerid,-1,"Você setou uma skin com sucesso.");
- SendClientMessage(playerid,-1,"O administrador mudou sua skin.");
- PlayerInfo[playerid][SkinAnterior] = PlayerInfo[playerid][Skin];
- PlayerInfo[playerid][Skin] = skinid;
- SalvarPlayer(playerid);
- }
- else return SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/darnivel", true, 8) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 5)
- {
- new
- String[64],
- idx,
- nivel;
- if(sscanf(cmdtext[9], "dd",idx,nivel)) return SendClientMessage(playerid, COR_BRANCO, "USE: /darnivel [id] [Quantidade]");
- if(!IsPlayerConnected(idx)) return SendClientMessage(playerid,fail,"Jogador Off-line.");
- SetPlayerScore(idx, nivel);
- PlayerInfo[playerid][Level] += nivel;
- format(String, sizeof(String), "Você recebeu [%d] de niveis do Admin [%s]", nivel, Nome(playerid));
- SendClientMessage(idx, COR_AZUL, String);
- format(String, sizeof(String), "Você deu [%d] de niveis para [%s]", nivel, Nome(idx));
- SendClientMessage(playerid, COR_AZUL, String);
- SalvarPlayer(playerid);
- }
- else return SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/darcash", true, 8) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 5)
- {
- new
- String[64],
- idx,
- cash;
- if(sscanf(cmdtext[9], "dd",idx,cash)) return SendClientMessage(playerid, COR_BRANCO, "USE: /darcash [id] [Quantidade]");
- if(!IsPlayerConnected(idx)) return SendClientMessage(playerid,fail,"Jogador Off-line.");
- PlayerInfo[playerid][Cash] += cash;
- format(String, sizeof(String), "Você recebeu [%d] de cash do Admin [%s]", cash, Nome(playerid));
- SendClientMessage(idx, COR_AZUL, String);
- format(String, sizeof(String), "Você deu [%d] de cash para [%s]", cash, Nome(idx));
- SendClientMessage(playerid, COR_AZUL, String);
- SalvarPlayer(playerid);
- }
- else return SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/autorizar", true) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 4)
- {
- new
- idx;
- if(sscanf(cmdtext,"jj",idx)) return SendClientMessage(playerid,COR_BRANCO,"/autorizar [playerid]");
- if(!IsPlayerConnected(idx)) return SendClientMessage(playerid,fail,"Jogador Off-line.");
- pInfo2[idx][pAutorizado] = 1;
- SendClientMessage(idx,verde,"foi autorizado a mudar de nick.");
- }
- else return SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/mudarnick", true) == 0)
- {
- if(pInfo2[playerid][pAutorizado] == 1)
- {
- if(sscanf(cmdtext,"s[24]",string_)) return SendClientMessage(playerid,verde,"use /mudarnick [nome_novo]");
- SetPlayerName(playerid,string_);
- SendClientMessage(playerid,verde,"nick alterado com sucesso.");
- pInfo2[playerid][pAutorizado] = 0;
- }
- else return SendClientMessage(playerid,verde,"não está autorizado.");
- return 1;
- }
- if(strcmp(cmdtext, "/descalar", true) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 2)
- {
- new
- idx;
- if(sscanf(cmdtext,"uu",idx)) return SendClientMessage(playerid,verde,"/calar [id/ou nome do individuo] ");
- calado[idx] = false;
- SendClientMessage(playerid,verde,"individuo descalado com sucesso.");
- SendClientMessage(idx,fail,"foi descalado pelo admin!");
- }
- else return SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/calar", true) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 2)
- {
- new
- idx;
- if(sscanf(cmdtext,"ls",idx)) return SendClientMessage(playerid,verde,"/calar [id/ou nome do individuo] ");
- calado[idx] = true;
- SendClientMessage(playerid,verde,"individuo calado com sucesso.");
- SendClientMessage(idx,fail,"foi calado pelo admin seu noob, cala boca um pouco!");
- }
- else return SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/votacao", true) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 1)
- {
- new
- pergunta[128]
- ;
- if(sscanf(cmdtext,"s[128]",pergunta)) return SendClientMessage(playerid,0xFFFFFFAA, "Use: /votacao [pergunta]");
- SendClientMessageToAll(LARANJA,"====================================");
- format(string_, sizeof string_, "==> [%s] Votação: %s?", Nome(playerid), pergunta);
- SendClientMessageToAll(VERDECLARO, string_);
- SendClientMessageToAll(LARANJA," ");
- SendClientMessageToAll(LARANJA," > Para votar digite:");
- SendClientMessageToAll(VERDEMEDIO, "* /sim - Se você concorda digite.");
- SendClientMessageToAll(VERDEMEDIO, "* /não - Se você discorda digite.");
- SendClientMessageToAll(LARANJA,"====================================");
- GameTextForAll("~w~Nova ~r~votacao~w~ foi~b~ iniciada!",6000,3);
- enquete = true;
- }
- else return SendClientMessage(playerid, fail, NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/sim", true) == 0)
- {
- if(enquete == true)
- {
- if(votou[playerid] == false)
- {
- sim++;
- SendClientMessage(playerid,verde,"voto computado com sucesso.");
- votou[playerid] = true;
- }
- else return SendClientMessage(playerid,fail,"já votou");
- }
- else return SendClientMessage(playerid,fail,"não há votação em andamento.");
- return 1;
- }
- if(strcmp(cmdtext, "/nao", true) == 0)
- {
- if(enquete == true)
- {
- if(votou[playerid] == false)
- {
- SendClientMessage(playerid,LARANJA, "Seu voto foi computado com sucesso!");
- nao++;
- votou[playerid] = true;
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/encerrar", true) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 1)
- {
- if(enquete == true)
- {
- enquete = false;
- SendClientMessageToAll(LARANJA,"====================================");
- SendClientMessageToAll(LARANJA, "==> Votacâo encerrada! <<==");
- format(string_, sizeof string_, "* %d jogador(es) concordaram com a pergunta.", sim);
- SendClientMessageToAll(VERDEMEDIO, string_);
- format(string_, sizeof string_, "* %d jogador(es) discordaram com a pergunta.", nao);
- SendClientMessageToAll(VERDEMEDIO, string_);
- paramount(i,MAX_PLAYERS) return votou[i] = false;
- if(sim == nao)
- {
- SendClientMessageToAll(VERMELHO, "==> Houve um empate!");
- } else if(sim > nao)
- {
- SendClientMessageToAll(VERMELHO, "==> A maioria CONCORDA com a pergunta.");
- } else if(sim > nao)
- {
- SendClientMessageToAll(VERMELHO, "==> A maioria DISCORDA com a pergunta.");
- }
- SendClientMessageToAll(LARANJA,"====================================");
- }
- else return SendClientMessage(playerid,fail,"Não há uma votação em andamento");
- }
- else SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/lchat", true) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 1)
- {
- for(new a = 0; a < 100; a++)
- SendClientMessageToAll(-1,"");
- }
- else SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/dia", true) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 1)
- {
- SetWorldTime(12);
- SendClientMessage(playerid, COR_VERMELHO, "Horario do jogo alterado para 12 horas");
- }
- else SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- if(strcmp(cmdtext, "/noite", true) == 0)
- {
- if(PlayerInfo[playerid][Administrador] >= 1)
- {
- SetWorldTime(0);
- SendClientMessage(playerid, COR_VERMELHO, "Horario do jogo alterado para 0 horas");
- }
- else SendClientMessage(playerid,fail,NAOADM);
- return 1;
- }
- // comandos admin rcon
- if(strcmp(cmdtext, "/virar admin", true) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 1;
- PlayerInfo[playerid][Administrador] = 5;
- SalvarPlayer(playerid);
- return 1;
- }
- if(strcmp(cmdtext, "/kill", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- SetPlayerHealth(playerid, 0);
- return 1;
- }
- if(strcmp(cmdtext, "/cash", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- PlayerInfo[playerid][Cash] += 999999999;
- PlayerPlaySound(playerid, 1084, 0.0, 0.0, 0.0);
- return 1;
- }
- if(strcmp(cmdtext, "/cloth", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- PlayerInfo[playerid][Cloth] += 100;
- return 1;
- }
- if(strcmp(cmdtext, "/parafuso", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- PlayerInfo[playerid][Parafuso] += 100;
- return 1;
- }
- if(strcmp(cmdtext, "/borracha", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- PlayerInfo[playerid][Borracha] += 100;
- return 1;
- }
- if(strcmp(cmdtext, "/metal", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- PlayerInfo[playerid][Metal] += 100;
- return 1;
- }
- if(strcmp(cmdtext, "/pegar rifle", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- GivePlayerWeapon(playerid, 33, 20);
- SendClientMessageToAll(-1,"Você pegou seu rifle");
- return 1;
- }
- if(strcmp(cmdtext, "/pegar sniper", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- GivePlayerWeapon(playerid, 34, 20);
- SendClientMessageToAll(-1,"Você pegou sua sniper");
- return 1;
- }
- if(strcmp(cmdtext, "/pegar shot", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- GivePlayerWeapon(playerid, 25, 20);
- SendClientMessageToAll(-1,"Você pegou sua shotgun");
- return 1;
- }
- if(strcmp(cmdtext, "/pegar shot", true) == 0)
- {
- if (!IsPlayerAdmin(playerid))
- return SendClientMessage(playerid,-1,"Você não é um Administrador RCON");
- GivePlayerWeapon(playerid, 25, 20);
- SendClientMessageToAll(-1,"Você pegou sua shotgun");
- return 1;
- }
- return SendClientMessage(playerid, COR_VERMELHO, "Esse comando não existe, digite: /ajuda ou chame um administrador no /duvida");
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- TogglePlayerSpectating(playerid, 1);
- InterpolateCameraPos(playerid, -2397.553710, 1436.038452, 140.798019, -2876.055175, 1382.189697, 159.150161, 17000);
- InterpolateCameraLookAt(playerid, -2401.776855, 1438.431640, 139.599197, -2872.188964, 1384.818359, 157.377395, 17000);
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- if(response == EDIT_RESPONSE_FINAL) {
- new id = EditBaseID[playerid];
- if(id != -1)
- {
- Base[id][PosX] = x;
- Base[id][PosY] = y;
- Base[id][PosZ] = z;
- Base[id][RX] = rx;
- Base[id][RY] = ry;
- Base[id][RZ] = rz;
- SetDynamicObjectPos(objectid, x, y, z);
- SetDynamicObjectRot(objectid, rx, ry, rz);
- EditBaseID[playerid] = -1;
- SalvarBases(id);
- }
- }else if(response == EDIT_RESPONSE_CANCEL) {
- new id = EditBaseID[playerid];
- if(id != -1)
- {
- SetDynamicObjectPos(objectid, Base[id][PosX], Base[id][PosY], Base[id][PosZ]);
- SetDynamicObjectRot(objectid, Base[id][RX], Base[id][RY], Base[id][RZ]);
- EditBaseID[playerid] = -1;
- }
- }
- if(response == EDIT_RESPONSE_FINAL) {
- new id = EditBancadaID[playerid];
- if(id != -1)
- {
- Bancada[id][PosX] = x;
- Bancada[id][PosY] = y;
- Bancada[id][PosZ] = z;
- Bancada[id][RX] = rx;
- Bancada[id][RY] = ry;
- Bancada[id][RZ] = rz;
- SetDynamicObjectPos(objectid, x, y, z);
- SetDynamicObjectRot(objectid, rx, ry, rz);
- EditBancadaID[playerid] = -1;
- SalvarBancadas(id);
- }
- }else if(response == EDIT_RESPONSE_CANCEL) {
- new id = EditBancadaID[playerid];
- if(id != -1)
- {
- SetDynamicObjectPos(objectid, Bancada[id][PosX], Bancada[id][PosY], Bancada[id][PosZ]);
- SetDynamicObjectRot(objectid, Bancada[id][RX], Bancada[id][RY], Bancada[id][RZ]);
- EditBancadaID[playerid] = -1;
- }
- }
- if(response == EDIT_RESPONSE_FINAL) {
- new id = EditPortaID[playerid];
- if(id != -1)
- {
- Porta[id][PosX] = x;
- Porta[id][PosY] = y;
- Porta[id][PosZ] = z;
- Porta[id][RX] = rx;
- Porta[id][RY] = ry;
- Porta[id][RZ] = rz;
- SetDynamicObjectPos(objectid, x, y, z);
- SetDynamicObjectRot(objectid, rx, ry, rz);
- EditPortaID[playerid] = -1;
- SalvarPortas(id);
- }
- }else if(response == EDIT_RESPONSE_CANCEL) {
- new id = EditPortaID[playerid];
- if(id != -1)
- {
- SetDynamicObjectPos(objectid, Porta[id][PosX], Porta[id][PosY], Porta[id][PosZ]);
- SetDynamicObjectRot(objectid, Porta[id][RX], Porta[id][RY], Porta[id][RZ]);
- EditPortaID[playerid] = -1;
- }
- }
- if(response == EDIT_RESPONSE_FINAL) {
- new id = EditBauID[playerid];
- if(id != -1)
- {
- Bau[id][PosX] = x;
- Bau[id][PosY] = y;
- Bau[id][PosZ] = z;
- Bau[id][RX] = rx;
- Bau[id][RY] = ry;
- Bau[id][RZ] = rz;
- SetDynamicObjectPos(objectid, x, y, z);
- SetDynamicObjectRot(objectid, rx, ry, rz);
- EditBauID[playerid] = -1;
- SalvarBaus(id);
- }
- }else if(response == EDIT_RESPONSE_CANCEL) {
- new id = EditBauID[playerid];
- if(id != -1)
- {
- SetDynamicObjectPos(objectid, Bau[id][PosX], Bau[id][PosY], Bau[id][PosZ]);
- SetDynamicObjectRot(objectid, Bau[id][RX], Bau[id][RY], Bau[id][RZ]);
- EditBauID[playerid] = -1;
- }
- }
- if(response == EDIT_RESPONSE_FINAL) {
- new id = EditRampaID[playerid];
- if(id != -1)
- {
- Rampa[id][PosX] = x;
- Rampa[id][PosY] = y;
- Rampa[id][PosZ] = z;
- Rampa[id][RX] = rx;
- Rampa[id][RY] = ry;
- Rampa[id][RZ] = rz;
- SetDynamicObjectPos(objectid, x, y, z);
- SetDynamicObjectRot(objectid, rx, ry, rz);
- EditRampaID[playerid] = -1;
- SalvarRampas(id);
- }
- }else if(response == EDIT_RESPONSE_CANCEL) {
- new id = EditRampaID[playerid];
- if(id != -1)
- {
- SetDynamicObjectPos(objectid, Rampa[id][PosX], Rampa[id][PosY], Rampa[id][PosZ]);
- SetDynamicObjectRot(objectid, Rampa[id][RX], Rampa[id][RY], Rampa[id][RZ]);
- EditRampaID[playerid] = -1;
- }
- }
- if(response == EDIT_RESPONSE_FINAL) {
- new id = EditDoorID[playerid];
- if(id != -1)
- {
- Door[id][PosX] = x;
- Door[id][PosY] = y;
- Door[id][PosZ] = z;
- Door[id][RX] = rx;
- Door[id][RY] = ry;
- Door[id][RZ] = rz;
- SetDynamicObjectPos(objectid, x, y, z);
- SetDynamicObjectRot(objectid, rx, ry, rz);
- EditDoorID[playerid] = -1;
- SalvarDoor(id);
- }
- }else if(response == EDIT_RESPONSE_CANCEL) {
- new id = EditDoorID[playerid];
- if(id != -1)
- {
- SetDynamicObjectPos(objectid, Door[id][PosX], Door[id][PosY], Door[id][PosZ]);
- SetDynamicObjectRot(objectid, Door[id][RX], Door[id][RY], Door[id][RZ]);
- EditDoorID[playerid] = -1;
- }
- }
- if(response == EDIT_RESPONSE_FINAL) {
- new id = EditCamaID[playerid];
- if(id != -1)
- {
- Cama[id][PosX] = x;
- Cama[id][PosY] = y;
- Cama[id][PosZ] = z;
- Cama[id][RX] = rx;
- Cama[id][RY] = ry;
- Cama[id][RZ] = rz;
- SetDynamicObjectPos(objectid, x, y, z);
- SetDynamicObjectRot(objectid, rx, ry, rz);
- EditCamaID[playerid] = -1;
- SalvarCama(id);
- }
- }else if(response == EDIT_RESPONSE_CANCEL) {
- new id = EditCamaID[playerid];
- if(id != -1)
- {
- SetDynamicObjectPos(objectid, Cama[id][PosX], Cama[id][PosY], Cama[id][PosZ]);
- SetDynamicObjectRot(objectid, Cama[id][RX], Cama[id][RY], Cama[id][RZ]);
- EditCamaID[playerid] = -1;
- }
- }
- if(response == EDIT_RESPONSE_FINAL) {
- new id = EditWindownID[playerid];
- if(id != -1)
- {
- Windown[id][PosX] = x;
- Windown[id][PosY] = y;
- Windown[id][PosZ] = z;
- Windown[id][RX] = rx;
- Windown[id][RY] = ry;
- Windown[id][RZ] = rz;
- SetDynamicObjectPos(objectid, x, y, z);
- SetDynamicObjectRot(objectid, rx, ry, rz);
- EditWindownID[playerid] = -1;
- SalvarWindowns(id);
- }
- }else if(response == EDIT_RESPONSE_CANCEL) {
- new id = EditWindownID[playerid];
- if(id != -1)
- {
- SetDynamicObjectPos(objectid, Windown[id][PosX], Windown[id][PosY], Windown[id][PosZ]);
- SetDynamicObjectRot(objectid, Windown[id][RX], Windown[id][RY], Windown[id][RZ]);
- EditWindownID[playerid] = -1;
- }
- }
- if(response == EDIT_RESPONSE_FINAL) {
- new id = EditFornoID[playerid];
- if(id != -1)
- {
- Forno[id][PosX] = x;
- Forno[id][PosY] = y;
- Forno[id][PosZ] = z;
- Forno[id][RX] = rx;
- Forno[id][RY] = ry;
- Forno[id][RZ] = rz;
- SetDynamicObjectPos(objectid, x, y, z);
- SetDynamicObjectRot(objectid, rx, ry, rz);
- EditFornoID[playerid] = -1;
- SalvarForno(id);
- }
- }else if(response == EDIT_RESPONSE_CANCEL) {
- new id = EditFornoID[playerid];
- if(id != -1)
- {
- SetDynamicObjectPos(objectid, Forno[id][PosX], Forno[id][PosY], Forno[id][PosZ]);
- SetDynamicObjectRot(objectid, Forno[id][RX], Forno[id][RY], Forno[id][RZ]);
- EditFornoID[playerid] = -1;
- }
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(PRESSED(KEY_FIRE))
- {
- if(PlayerNoLugar(playerid, 2.0, -748.5999800,-2453.7000,68.0000) || PlayerNoLugar(playerid, 2.0, -717.9000200,-2465.5000,68.1000) || PlayerNoLugar(playerid, 2.0, -718.5000,-2431.6001,62.0000) || PlayerNoLugar(playerid, 2.0, -691.0999800,-2438.5000,63.5000) ||
- PlayerNoLugar(playerid, 2.0, -701.7000100,-2382.8000,49.0000) || PlayerNoLugar(playerid, 2.0, -576.0999800,-2230.5000,27.4000) || PlayerNoLugar(playerid, 2.0, -689.2000100,-2351.1001,36.8000) || PlayerNoLugar(playerid, 2.0, -645.4000200,-2373.2000,33.8000) ||
- PlayerNoLugar(playerid, 2.0, -663.7998,-2349.5996,34.7000) || PlayerNoLugar(playerid, 2.0, -654.2998,-2321.5996,34.5000) || PlayerNoLugar(playerid, 2.0, -671.5996100,-2298.0996,28.3000) || PlayerNoLugar(playerid, 2.0, -632.2998,-2291.5000,27.8000) ||
- PlayerNoLugar(playerid, 2.0, -599.5996100,-2264.7002,24.4000) || PlayerNoLugar(playerid, 2.0, -569.7999900,-2258.8000,25.9000) || PlayerNoLugar(playerid, 2.0, -1058.1000,-2456.8000,60.0000) || PlayerNoLugar(playerid, 2.0, -1090.2000,-2338.3999,49.8000) ||
- PlayerNoLugar(playerid, 2.0, -1024.4004,-2431.2998,65.5000) || PlayerNoLugar(playerid, 2.0, -1055.0996,-2416.0996,58.9000) || PlayerNoLugar(playerid, 2.0, -1080.0996,-2355.0996,47.8000) || PlayerNoLugar(playerid, 2.0, -1106.7000,-2298.8999,41.9000) ||
- PlayerNoLugar(playerid, 2.0, -1112.6000,-2332.5000,42.5000) || PlayerNoLugar(playerid, 2.0, -1092.7998,-2323.2998,51.7000) || PlayerNoLugar(playerid, 2.0, -1061.0000,-2309.7000,53.4000) || PlayerNoLugar(playerid, 2.0, -995.2999900,-2311.0000,61.8000) ||
- PlayerNoLugar(playerid, 2.0, -968.0999800,-2339.3999,65.5000) || PlayerNoLugar(playerid, 2.0, -976.2000100,-2288.0000,58.7000) || PlayerNoLugar(playerid, 2.0, -908.0000,-2401.3999,58.4000) || PlayerNoLugar(playerid, 2.0, -943.7999900,-2499.8999,103.2000) ||
- PlayerNoLugar(playerid, 2.0, -914.9003900,-2438.2002,80.1000) || PlayerNoLugar(playerid, 2.0, -945.7002,-2477.7002,99.3000) || PlayerNoLugar(playerid, 2.0, -764.5000,-2409.0000,64.0000) || PlayerNoLugar(playerid, 2.0, -690.4000200,-2191.7000,19.5000) ||
- PlayerNoLugar(playerid, 2.0, -726.5000,-2197.8994,34.4000) || PlayerNoLugar(playerid, 2.0, -736.7998,-2213.0996,36.5000) || PlayerNoLugar(playerid, 2.0, -665.0000,-2180.5000,18.3000) || PlayerNoLugar(playerid, 2.0, -680.5000,-2166.5000,22.1000) ||
- PlayerNoLugar(playerid, 2.0, -670.4000200,-2115.8000,25.5000) || PlayerNoLugar(playerid, 2.0, -659.0996100,-2126.5996,26.2000) || PlayerNoLugar(playerid, 2.0, -643.9000200,-2090.5000,27.7000) || PlayerNoLugar(playerid, 2.0, -690.7999900,-2137.0000,24.7000) ||
- PlayerNoLugar(playerid, 2.0, -763.5999800,-2221.8000,21.6000) || PlayerNoLugar(playerid, 2.0, -863.4000200,-2274.2000,25.3000) || PlayerNoLugar(playerid, 2.0, -870.4003900,-2246.0000,26.5000) || PlayerNoLugar(playerid, 2.0, -902.9000200,-2259.5000,37.9000) ||
- PlayerNoLugar(playerid, 2.0, -804.5000,-2297.3999,28.3000) || PlayerNoLugar(playerid, 2.0, -792.2000100,-2343.2000,43.4000) || PlayerNoLugar(playerid, 2.0, -809.4003900,-2328.5000,38.1000) || PlayerNoLugar(playerid, 2.0, -845.2000100,-2362.2000,57.7000) ||
- PlayerNoLugar(playerid, 2.0, -576.7000100,-1995.9000,45.4000) || PlayerNoLugar(playerid, 2.0, -607.5996100,-2047.4004,40.2000) || PlayerNoLugar(playerid, 2.0, -572.7998,-2016.0000,47.0000) || PlayerNoLugar(playerid, 2.0, -587.5000,-1980.0000,42.1000) ||
- PlayerNoLugar(playerid, 2.0, -603.7999900,-1948.3000,33.2000) || PlayerNoLugar(playerid, 2.0, -571.7998,-1952.5996,38.4000) || PlayerNoLugar(playerid, 2.0, -513.7999900,-2002.7000,47.5000) || PlayerNoLugar(playerid, 2.0, -519.2998,-1965.7002,41.4000) ||
- PlayerNoLugar(playerid, 2.0, -531.2998,-1988.9004,46.2000) || PlayerNoLugar(playerid, 2.0, -657.2999900,-1838.5000,20.7000) || PlayerNoLugar(playerid, 2.0, -587.7999900,-1831.6000,29.3000) || PlayerNoLugar(playerid, 2.0, -613.7002,-1868.7002,16.1000) ||
- PlayerNoLugar(playerid, 2.0, -557.5999800,-1858.4000,18.2000) || PlayerNoLugar(playerid, 2.0, -540.5000,-1843.0000,21.3000) || PlayerNoLugar(playerid, 2.0, -529.5000,-1862.7000,13.1000) || PlayerNoLugar(playerid, 2.0, -505.5000,-1854.0000,14.8000) ||
- PlayerNoLugar(playerid, 2.0, -393.7999900,-1952.2000,19.2000) || PlayerNoLugar(playerid, 2.0, -398.1000100,-1971.5000,24.6000) || PlayerNoLugar(playerid, 2.0, -397.8999900,-2003.4000,30.4000) || PlayerNoLugar(playerid, 2.0, -423.2999900,-2083.8000,77.0000) ||
- PlayerNoLugar(playerid, 2.0, -422.7000100,-2113.1001,83.8000) || PlayerNoLugar(playerid, 2.0, -456.1000100,-2094.7000,85.2000) || PlayerNoLugar(playerid, 2.0, -486.7999900,-2112.8999,89.0000) || PlayerNoLugar(playerid, 2.0, -453.0000,-2141.7000,87.8000) ||
- PlayerNoLugar(playerid, 2.0, -568.5000,-2120.6001,70.0000) || PlayerNoLugar(playerid, 2.0, -537.0999800,-2126.1001,78.1000) || PlayerNoLugar(playerid, 2.0, -325.5000,-2588.3000,127.7000) || PlayerNoLugar(playerid, 2.0, -473.2998,-2203.0996,74.1000) ||
- PlayerNoLugar(playerid, 2.0, -374.6000100,-2221.3999,65.9000) || PlayerNoLugar(playerid, 2.0, -348.2999900,-2301.8999,67.3000) || PlayerNoLugar(playerid, 2.0, -351.2000100,-2343.3999,82.3000) || PlayerNoLugar(playerid, 2.0, -295.7000100,-2380.5000,65.7000)) {
- if(GetPlayerWeapon(playerid) == 4){
- if (HandleMaterialLoot(playerid, 0)) { // handle material loot, id, material id
- TextDrawShowForPlayer(playerid, Boxzin[playerid]);
- TextDrawShowForPlayer(playerid, Wood[playerid]);
- SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
- PlayerInfo[playerid][Madeira] += 1;
- }else{
- PlayerInfo[playerid][Madeira] = def_LimiteMadeira;
- TextDrawShowForPlayer(playerid, Boxzin[playerid]);
- TextDrawShowForPlayer(playerid, LimiteMaterial[playerid]);
- SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
- }
- }
- }
- }
- if(PRESSED(KEY_FIRE))
- {
- if(PlayerNoLugar(playerid, 2.0, -317.4003900,-2319.0996,62.6000) || PlayerNoLugar(playerid, 2.0, -313.6000100,-2364.1001,72.4000) || PlayerNoLugar(playerid, 2.0, -310.2000100,-2429.5000,80.3000) || PlayerNoLugar(playerid, 2.0, -208.5000,-2571.3999,47.2000) ||
- PlayerNoLugar(playerid, 2.0, -290.2002,-2456.5996,73.6000) || PlayerNoLugar(playerid, 2.0, -230.9003900,-2440.0996,41.8000) || PlayerNoLugar(playerid, 2.0, -250.9003900,-2437.0996,50.3000) || PlayerNoLugar(playerid, 2.0, -190.2002,-2473.0996,34.0000) ||
- PlayerNoLugar(playerid, 2.0, -199.2002,-2529.7998,35.2000) || PlayerNoLugar(playerid, 2.0, -137.0000,-2598.6001,63.8000) || PlayerNoLugar(playerid, 2.0, -135.0000,-2492.0000,29.8000) || PlayerNoLugar(playerid, 2.0, -150.2002,-2514.5996,28.8000) ||
- PlayerNoLugar(playerid, 2.0, -131.2998,-2572.0996,55.8000) || PlayerNoLugar(playerid, 2.0, -105.5996100,-2576.7002,62.6000) || PlayerNoLugar(playerid, 2.0, -105.5996100,-2576.7002,62.6000) || PlayerNoLugar(playerid, 2.0, -115.4000,-2631.1001,70.8000) ||
- PlayerNoLugar(playerid, 2.0, -127.5000,-2665.3000,69.7000) || PlayerNoLugar(playerid, 2.0, -143.5000,-2628.6001,63.0000) || PlayerNoLugar(playerid, 2.0, -149.0000,-2701.1001,72.0000) || PlayerNoLugar(playerid, 2.0, -137.0000,-2752.8999,60.5000) ||
- PlayerNoLugar(playerid, 2.0, -423.5000,-2218.3994,70.7000) || PlayerNoLugar(playerid, 2.0, -315.2002,-2560.7998,118.4000) || PlayerNoLugar(playerid, 2.0, -381.5000,-2663.8000,146.3000) || PlayerNoLugar(playerid, 2.0, -302.2000100,-2606.2000,128.2000) ||
- PlayerNoLugar(playerid, 2.0, -344.7002,-2611.5996,137.3000) || PlayerNoLugar(playerid, 2.0, -323.6000100,-2664.2000,119.1000) || PlayerNoLugar(playerid, 2.0, -451.3999900,-2320.5000,77.7000) || PlayerNoLugar(playerid, 2.0, -479.1000100,-2313.8000,63.2000) ||
- PlayerNoLugar(playerid, 2.0, -523.5999800,-2376.1001,53.2000) || PlayerNoLugar(playerid, 2.0, -470.2998,-2356.2002,71.3000) || PlayerNoLugar(playerid, 2.0, -411.5000,-2410.3000,87.9000) || PlayerNoLugar(playerid, 2.0, -426.2998,-2368.7998,86.2000) ||
- PlayerNoLugar(playerid, 2.0, -392.3999900,-2439.8000,94.0000) || PlayerNoLugar(playerid, 2.0, -372.1000100,-2419.1001,96.7000) || PlayerNoLugar(playerid, 2.0, -364.5000,-2459.6001,102.4000) || PlayerNoLugar(playerid, 2.0, -390.1000100,-2504.3000,109.7000) ||
- PlayerNoLugar(playerid, 2.0, -368.6000100,-2520.6001,115.3000) || PlayerNoLugar(playerid, 2.0, -403.2999900,-2604.8000,144.6000100) || PlayerNoLugar(playerid, 2.0, -381.8999900,-2557.5000,130.8000) || PlayerNoLugar(playerid, 2.0, -410.8999900,-2536.7000,121.3000) ||
- PlayerNoLugar(playerid, 2.0, -464.0000,-2749.5000,145.8999900) || PlayerNoLugar(playerid, 2.0, -444.2999900,-2787.1001,115.6000) || PlayerNoLugar(playerid, 2.0, -421.2998,-2654.5996,151.7000) || PlayerNoLugar(playerid, 2.0, -463.8999900,-2600.3999,139.8999900) ||
- PlayerNoLugar(playerid, 2.0, -443.5000,-2682.7998,159.3000) || PlayerNoLugar(playerid, 2.0, -464.0000,-2657.8994,156.3000) || PlayerNoLugar(playerid, 2.0, -474.2999900,-2519.6001,109.4000) || PlayerNoLugar(playerid, 2.0, -461.2998,-2539.8994,115.1000) ||
- PlayerNoLugar(playerid, 2.0, -501.6000100,-2423.3999,105.0000) || PlayerNoLugar(playerid, 2.0, -479.7002,-2474.0000,111.9000) || PlayerNoLugar(playerid, 2.0, -452.0000,-2436.8000,112.2000) || PlayerNoLugar(playerid, 2.0, -380.0000,-2726.6001,128.7000) ||
- PlayerNoLugar(playerid, 2.0, -406.5000,-2753.3999,129.3000) || PlayerNoLugar(playerid, 2.0, -370.7999900,-2771.5000,98.7000) || PlayerNoLugar(playerid, 2.0, -336.1000100,-2776.3000,82.9000) || PlayerNoLugar(playerid, 2.0, -431.4003900,-2724.8994,158.6000100) ||
- PlayerNoLugar(playerid, 2.0, -606.0999800,-2781.8999,111.1000) || PlayerNoLugar(playerid, 2.0, -510.5996100,-2778.2002,123.2000) || PlayerNoLugar(playerid, 2.0, -543.7998,-2781.8994,122.3000) || PlayerNoLugar(playerid, 2.0, -577.0000,-2786.7998,115.3000) ||
- PlayerNoLugar(playerid, 2.0, -573.4000200,-2755.8999,127.2000) || PlayerNoLugar(playerid, 2.0, -605.2999900,-2745.6001,117.1000) || PlayerNoLugar(playerid, 2.0, -576.4000200,-2722.0000,128.3999900) || PlayerNoLugar(playerid, 2.0, -526.9000200,-2726.5000,142.2000) ||
- PlayerNoLugar(playerid, 2.0, -557.0996100,-2737.3994,133.8999900) || PlayerNoLugar(playerid, 2.0, -481.3999900,-2707.2000,157.5000) || PlayerNoLugar(playerid, 2.0, -578.9000200,-2673.3999,137.5000) || PlayerNoLugar(playerid, 2.0, -608.7000100,-2615.6001,132.8000) ||
- PlayerNoLugar(playerid, 2.0, -618.2998,-2655.7998,121.1000) || PlayerNoLugar(playerid, 2.0, -565.5999800,-2625.8000,146.1000100) || PlayerNoLugar(playerid, 2.0, -506.0000,-2622.8999,161.6000100) || PlayerNoLugar(playerid, 2.0, -578.9003900,-2579.2002,130.7000) ||
- PlayerNoLugar(playerid, 2.0, -595.4003900,-2560.7002,124.5000) || PlayerNoLugar(playerid, 2.0, -554.7998,-2549.2998,135.8999900) ||
- PlayerNoLugar(playerid, 2.0, -526.5996100,-2578.2002,146.0000)) {
- if(GetPlayerWeapon(playerid) == 4){
- if (HandleMaterialLoot(playerid, 0)) { // handle material loot, id, material id
- TextDrawShowForPlayer(playerid, Boxzin[playerid]);
- TextDrawShowForPlayer(playerid, Wood[playerid]);
- SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
- PlayerInfo[playerid][Madeira] += 1;
- }else{
- TextDrawShowForPlayer(playerid, Boxzin[playerid]);
- TextDrawShowForPlayer(playerid, LimiteMaterial[playerid]);
- SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
- }
- }
- }
- }
- if(PRESSED(KEY_FIRE))
- {
- if(PlayerNoLugar(playerid, 2.0, -534.3222040,-2753.0402830,137.0267480) || PlayerNoLugar(playerid, 2.0, -410.0322870,-2683.9238280,158.8573450) || PlayerNoLugar(playerid, 2.0, -568.3247070,-2639.3981930,146.2480160) || PlayerNoLugar(playerid, 2.0, -461.0124810,-2632.1486810,153.5100860))
- if(GetPlayerWeapon(playerid) == 4)
- {
- if (HandleMaterialLoot(playerid, 0))
- {
- TextDrawShowForPlayer(playerid, Boxzin[playerid]);
- TextDrawShowForPlayer(playerid, Wood3[playerid]);
- SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
- PlayerInfo[playerid][Madeira] += 3;
- }else{
- TextDrawShowForPlayer(playerid, Boxzin[playerid]);
- TextDrawShowForPlayer(playerid, LimiteMaterial[playerid]);
- SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
- }
- }
- }
- if(PRESSED(KEY_FIRE))
- {
- if(PlayerNoLugar(playerid, 8.0,-543.0999800,-2619.3999000,154.0000000) || PlayerNoLugar(playerid, 8.0,-651.2999900,-2649.6001000,102.0000000) || PlayerNoLugar(playerid, 8.0,-596.5000000,-2495.0000000,62.0000000) ||
- PlayerNoLugar(playerid, 8.0,-750.2999900,-2473.3000000,75.0000000) || PlayerNoLugar(playerid, 8.0,-584.2999900,-1946.1000000,40.0000000) || PlayerNoLugar(playerid, 8.0,-855.2002000,-2290.2998000,26.0000000) ||
- PlayerNoLugar(playerid, 8.0,-600.2002000,-2090.3994000,40.0000000) || PlayerNoLugar(playerid, 8.0,-431.6000100,-2107.8000000,88.0000000) || PlayerNoLugar(playerid, 8.0,-440.9003900,-1838.0000000,8.0000000) ||
- PlayerNoLugar(playerid, 8.0,-297.6000100,-2406.3000000,74.0000000) || PlayerNoLugar(playerid, 8.0, -146.2000000,-2485.3999000,30.0000000) || PlayerNoLugar(playerid, 8.0, -126.7000000,-2601.5000000,69.0000000) ||
- PlayerNoLugar(playerid, 8.0,-142.3999900,-2694.0000000,74.0000000) || PlayerNoLugar(playerid, 8.0, -584.2000100,-2267.7000000,27.0000000) || PlayerNoLugar(playerid, 8.0, -343.7002000,-2641.5000000,135.0000000) ||
- PlayerNoLugar(playerid, 8.0,-418.7002000,-2705.8994000,162.0000000) || PlayerNoLugar(playerid, 8.0, -928.5996100,-2505.7998000,114.0000000) || PlayerNoLugar(playerid, 8.0, -1045.5996000,-2076.5000000,57.9000000) ||
- PlayerNoLugar(playerid, 8.0,-899.7998000,-1870.5996000,88.0000000) || PlayerNoLugar(playerid, 8.0, -1083.7000000,-2193.0000000,41.0000000))
- {
- if(GetPlayerWeapon(playerid) == 0)
- {
- TextDrawShowForPlayer(playerid, Boxzin[playerid]);
- TextDrawShowForPlayer(playerid, Boxzin2[playerid]);
- TextDrawShowForPlayer(playerid, Stone[playerid]);
- TextDrawShowForPlayer(playerid, MetalF[playerid]);
- SetTimerEx("DestruirTextoDraw", 1500, false, "i", playerid);
- PlayerInfo[playerid][Pedra] += 5;
- PlayerInfo[playerid][Metal] += 2;
- }
- }
- }
- if(newkeys == 1 && GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- if(pUsarCamera[playerid] == 1)
- {
- if(pPrimeiro[playerid] == 0)
- {
- CameraPrimeira(playerid,1);
- pPrimeiro[playerid] = 1;
- GameTextForPlayer(playerid, "~w~camera~g~ ligada", 5000, 6);
- }
- else if(pPrimeiro[playerid] == 1)
- {
- pPrimeiro[playerid] = 0;
- CameraPrimeira(playerid,0);
- GameTextForPlayer(playerid, "~w~camera~r~ desligada", 5000, 6);
- }
- }
- }
- if(PRESSED(KEY_NO))
- {
- for(new i; i < MAX_BANCADAS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, Bancada[i][PosX], Bancada[i][PosY], Bancada[i][PosZ]))
- {
- ShowPlayerDialog(playerid,9798,DIALOG_STYLE_LIST,"Bancada","Fabricar Armas\nFabricar Medicamentos\n","Aceitar","Cancelar");
- }
- }
- }
- if(PRESSED(KEY_YES))
- {
- OnPlayerCommandText(playerid,"/inv");
- }
- Item_OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- static armedbody_pTick[MAX_PLAYERS];
- if(GetTickCount() - armedbody_pTick[playerid] > 113)
- {
- new weaponid[13],weaponammo[13],pArmedWeapon;
- pArmedWeapon = GetPlayerWeapon(playerid);
- GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]);
- GetPlayerWeaponData(playerid,6,weaponid[6],weaponammo[6]);
- if(weaponid[1] && weaponammo[1] > 0){
- if(pArmedWeapon != weaponid[1]){
- if(!IsPlayerAttachedObjectSlotUsed(playerid,0)){
- SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),8, 0.10000, 0.03000, 0.10000, -90.900006, 90.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- }
- }
- else {
- if(IsPlayerAttachedObjectSlotUsed(playerid,0)){
- RemovePlayerAttachedObject(playerid,0);
- }
- }
- }
- else if(IsPlayerAttachedObjectSlotUsed(playerid,0)){
- RemovePlayerAttachedObject(playerid,0);
- }
- if(weaponid[6] && weaponammo[6] > 0){
- if(pArmedWeapon != weaponid[6]){
- if(!IsPlayerAttachedObjectSlotUsed(playerid,3)){
- SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[6]),1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- }
- }
- else {
- if(IsPlayerAttachedObjectSlotUsed(playerid,3)){
- RemovePlayerAttachedObject(playerid,3);
- }
- }
- }
- else if(IsPlayerAttachedObjectSlotUsed(playerid,3)){
- RemovePlayerAttachedObject(playerid,3);
- }
- armedbody_pTick[playerid] = GetTickCount();
- }
- //============================================================================//
- new Cashe[15];
- format(Cashe,sizeof(Cashe),"%d", PlayerInfo[playerid][Cash]);
- TextDrawSetString(TextCash3, Cashe);
- //============================================================================//
- return 1;
- }
- stock GetWeaponModel(weaponid)
- {
- switch(weaponid)
- {
- case 1:
- return 331;
- case 2..8:
- return weaponid+331;
- case 9:
- return 341;
- case 10..15:
- return weaponid+311;
- case 16..18:
- return weaponid+326;
- case 22..29:
- return weaponid+324;
- case 30,31:
- return weaponid+325;
- case 32:
- return 372;
- case 33..45:
- return weaponid+324;
- case 46:
- return 371;
- }
- return 0;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new cmdString[200];
- switch (dialogid)
- {
- case DIALOG_REGISTRO:
- {
- if(response)
- {
- if(strlen(inputtext) < 5 || strlen(inputtext) > 16 || !strlen(inputtext))
- {
- SendClientMessage(playerid, COR_AVISO, "• Digite uma Senha com no Minimo 5 caracteres ou no Maximo 16");
- format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê não tem uma Conta registrada\n\nDigite uma senha para Registrar\n\nStatus: {EE3B3B}N/A Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
- return ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "~ REGISTRANDO ~", cmdString, "Registrar", "Cancelar");
- }
- DOF2_CreateFile(GetArquivo(playerid));
- DOF2_SetString(GetArquivo(playerid), "Nome", Nome(playerid));
- DOF2_SetString(GetArquivo(playerid), "Senha", inputtext);
- DOF2_SetInt(GetArquivo(playerid), "Administrador", 0);
- DOF2_SetInt(GetArquivo(playerid), "Level", 0);
- DOF2_SetInt(GetArquivo(playerid), "Skin", 162);
- DOF2_SetInt(GetArquivo(playerid), "Matou", 0);
- DOF2_SetInt(GetArquivo(playerid), "Morreu", 0);
- DOF2_SetInt(GetArquivo(playerid), "Dinheiro", 0);
- DOF2_SetInt(GetArquivo(playerid), "Cash", 0);
- DOF2_SetInt(GetArquivo(playerid), "CmdJaUsado", 0);
- DOF2_SetInt(GetArquivo(playerid), "Madeira", 0);
- DOF2_SetInt(GetArquivo(playerid), "Pedra", 0);
- DOF2_SetInt(GetArquivo(playerid), "Metal", 0);
- DOF2_SetInt(GetArquivo(playerid), "Parafuso", 0);
- DOF2_SetInt(GetArquivo(playerid), "Borracha", 0);
- DOF2_SetInt(GetArquivo(playerid), "Frutas", 0);
- DOF2_SetInt(GetArquivo(playerid), "Peixe", 0);
- DOF2_SetInt(GetArquivo(playerid), "Carne", 0);
- DOF2_SetInt(GetArquivo(playerid), "Cloth", 0);
- DOF2_SetInt(GetArquivo(playerid), "Agua", 0);
- DOF2_SaveFile();
- SendClientMessage(playerid, COR_SUCESSO, "• Registrado Com Sucesso Digite sua Senha para Logar.");
- format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê ja tem uma Conta registrada\n\nDigite sua Senha para Logar\n\nStatus: {EE3B3B}Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
- return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "~ LOGANDO ~", cmdString, "Logar", "Cancelar");
- }
- else
- {
- SelectTextDraw(playerid,0xFFFFFFFF);
- for(new i = 0; i < sizeof(Registro); i++) TextDrawShowForPlayer(playerid, Registro[i]);
- for(new i = 0; i < sizeof(PlayerRegistro) - 1; i++) PlayerTextDrawShow(playerid, PlayerText: PlayerRegistro[i]);
- }
- }
- case DIALOG_LOGIN:
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- SendClientMessage(playerid, COR_AVISO, "• Você precisa digitar Sua Senha para Logar.");
- format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê ja tem uma Conta registrada\n\nDigite sua Senha para Logar\n\nStatus: {EE3B3B}Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
- return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "~ LOGANDO ~", cmdString, "Logar", "Cancelar");
- }
- if(strcmp(inputtext, DOF2_GetString(GetArquivo(playerid), "Senha"), false) == 0)
- {
- return CarregarPlayer(playerid);
- }
- else
- {
- SendClientMessage(playerid, COR_AVISO, "• Atenção você digitou sua senha Errado, Digite-a Novamente.");
- format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê ja tem uma Conta registrada\n\nDigite sua Senha para Logar\n\nStatus: {EE3B3B}Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "~ LOGANDO ~", cmdString, "Logar", "Cancelar");
- PlayerInfo[playerid][ERRO]++;
- if(PlayerInfo[playerid][ERRO] == 3)
- {
- format(cmdString, sizeof(cmdString),"• O Jogador(a) %s foi Kickado do Servidor | Motivo: Limite de Erro |", Nome(playerid), IP(playerid));
- SendClientMessageToAll(COR_ADMIN, cmdString);
- return Kick(playerid);
- }
- }
- }
- else
- {
- SelectTextDraw(playerid,0xFFFFFFFF);
- for(new i = 0; i < sizeof(Registro); i++) TextDrawShowForPlayer(playerid, Registro[i]);
- for(new i = 0; i < sizeof(PlayerRegistro) - 1; i++) PlayerTextDrawShow(playerid, PlayerText: PlayerRegistro[i]);
- }
- }
- }
- if(dialogid == 9548)
- {
- format(arquivo1, sizeof arquivo1, "lang/%s.ini",nome);
- if(response == 0)
- { // Inglês
- idioma[playerid]=EN; // seta o idioma do player para Inglês (=2/EN)
- DOF2_SetInt(arquivo1,"Idioma",idioma[playerid]); // salva idioma escolhido no arquivo
- DOF2_SaveFile();
- CarregarTextPlayer(playerid);
- CarregarPlayerText(playerid);
- SelectTextDraw(playerid,0xFFFFFFFF);
- for(new i = 0; i < sizeof(Registro); i++) TextDrawShowForPlayer(playerid, Registro[i]);
- for(new i = 0; i < sizeof(PlayerRegistro) - 1; i++) PlayerTextDrawShow(playerid, PlayerText: PlayerRegistro[i]);
- }
- if(response == 1)
- { // Português
- idioma[playerid]=PT; // seta o idioma do player para Português (=1/PT)
- DOF2_SetInt(arquivo1,"Idioma",idioma[playerid]); // salva idioma escolhido no arquivo
- DOF2_SaveFile();
- CarregarTextPlayer(playerid);
- CarregarPlayerText(playerid);
- SelectTextDraw(playerid,0xFFFFFFFF);
- for(new i = 0; i < sizeof(Registro); i++) TextDrawShowForPlayer(playerid, Registro[i]);
- for(new i = 0; i < sizeof(PlayerRegistro) - 1; i++) PlayerTextDrawShow(playerid, PlayerText: PlayerRegistro[i]);
- }
- }
- if(dialogid == 9798)
- {
- if(!response) { return 1; }
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,9799,DIALOG_STYLE_LIST,"Armamentos","Rifle\nPistola\n","Selecionar","Voltar");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,9795,DIALOG_STYLE_LIST,"Medicamentos","Bandagem - 3 Cloth's\nAnalgésico - 2 Águas + 1 Cloth\nMed KIT - 1 Bandagem + 1 Analgésico\n","Selecionar","Voltar");
- }
- }
- }
- if(dialogid == 9799)
- {
- if(!response) { return ShowPlayerDialog(playerid,9798,DIALOG_STYLE_LIST,"Bancada","Fabricar Armas\nFabricar Medicamentos\nOutros","Aceitar","Cancelar"); }
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][Madeira] >= 5)
- {
- if(PlayerInfo[playerid][Metal] >= 10)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Espere enquanto você faz seu rifle.");
- ApplyPlayerAnimation(playerid, "SCRATCHING", "scshrtl", 4.0, 1, 0, 0, 0, 0, 1);
- Valor [playerid] = 0 ;
- ShowProgressBarForPlayer(playerid, Exemplo); //mostra a bar pro player
- SetProgressBarValue ( Exemplo, Valor[playerid] ) ; //seta o valor dela
- Baru[playerid] = SetTimerEx("Almentar", 500, true, "i" , playerid) ;//inicia o timer
- }
- else if(PlayerInfo[playerid][Metal] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem os metais necessarios");
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem madeira suficiente. Use: /ajuda.");
- }
- }
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][Parafuso] >= 5)
- {
- if(PlayerInfo[playerid][Metal] >= 10)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Espere enquanto você faz sua pistola.");
- ApplyAnimation(playerid, "SCRATCHING", "scshrtl", 4.0, 1, 0, 0, 0, 0, 1);
- SetTimer("FazendoPistola", 10000, 0);
- }
- else if(PlayerInfo[playerid][Metal] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem os metais necessarios!");
- }
- else if(PlayerInfo[playerid][Parafuso] == 0)
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem os parafusos necessarios!");
- }
- }
- }
- }
- if(dialogid == 9795)
- {
- if(!response) { return ShowPlayerDialog(playerid,9798,DIALOG_STYLE_LIST,"Bancada","Fabricar Armas\nFabricar Medicamentos\nOutros","Aceitar","Cancelar"); }
- {
- if(listitem == 0)
- {
- if(Bandagem[playerid] == 0)
- {
- if(PlayerInfo[playerid][Cloth] >= 3)
- {
- PlayerInfo[playerid][Cloth] -= 5;
- SendClientMessage(playerid, COR_VERDE, "Você fez um bandagem ela cura até 10 da sua vida, para usa-la digite /usar bandagem");
- Bandagem[playerid] += 1;
- }
- else
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem Cloth suficiente. Use: /ajuda.");
- }
- }
- }
- }
- if(listitem == 1)
- {
- if(Remedio[playerid] == 0)
- {
- if(PlayerInfo[playerid][Agua] >= 2)
- {
- if(PlayerInfo[playerid][Cloth] >= 1)
- {
- PlayerInfo[playerid][Cloth] -= 1;
- PlayerInfo[playerid][Agua] -= 2;
- SendClientMessage(playerid, COR_VERDE, "Você fez um Analgésico ele cura até 30 da sua vida, para usa-lo digite /tomar remedio");
- Remedio[playerid] += 1;
- } else
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem Cloth suficiente. Use: /ajuda.");
- }
- }
- else
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem água suficiente. Use: /ajuda.");
- }
- }
- }
- if(listitem == 2)
- {
- if(Medkit[playerid] == 0)
- {
- if(Remedio[playerid] >= 1)
- {
- if(Bandagem[playerid] >= 1)
- {
- Bandagem[playerid] = Bandagem[playerid]-1;
- Remedio[playerid] = Remedio[playerid]-1;
- SendClientMessage(playerid, COR_VERDE, "Você fez um Med KIT ele cura 100 da sua vida, para usa-lo digite /medkit");
- Medkit[playerid] += 1;
- } else
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem 1 bandagem suficiente. Use: /ajuda.");
- }
- }
- else
- {
- SendClientMessage(playerid, COR_VERMELHO, "Você não tem 1 analgésico. Use: /ajuda.");
- }
- }
- }
- }
- if(dialogid == 123)
- {
- if(!response) { return 1; }
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,1234,DIALOG_STYLE_LIST,"Armamentos","Espingarda\nPistola\nSniper\nRifle\nShotgum\n","Selecionar","Voltar");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,12345,DIALOG_STYLE_LIST,"Medicamentos","Bandagem\nAnalgésico\nMed Kit\n","Selecionar","Voltar");
- }
- }
- }
- if(dialogid == 1234)
- {
- if(!response) { return ShowPlayerDialog(playerid,123,DIALOG_STYLE_LIST,"Loja de Cash","Armamentos\nMedicamentos\n","Aceitar","Cancelar"); }
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][Cash] >= 20)
- {
- if(PlayerInfo[playerid][Cash] < 20)
- {
- return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 20 de cash para comprar!");
- }
- GivePlayerWeapon(playerid, 33, 20);
- PlayerInfo[playerid][Cash] -= 20;
- SendClientMessage(playerid, COR_VERDE, "Você comprou uma espingarda por 20 Cash's.");
- }
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][Cash] >= 30)
- {
- if(PlayerInfo[playerid][Cash] < 20)
- {
- return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 20 de cash para comprar!");
- }
- GivePlayerWeapon(playerid, 24, 49);
- PlayerInfo[playerid][Cash] -= 30;
- SendClientMessage(playerid, COR_VERDE, "Você comprou uma pistola por 30 Cash's.");
- }
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][Cash] >= 50)
- {
- if(PlayerInfo[playerid][Cash] < 50)
- {
- return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 50 de cash para comprar!");
- }
- GivePlayerWeapon(playerid, 34, 10);
- PlayerInfo[playerid][Cash] -= 50;
- SendClientMessage(playerid, COR_VERDE, "Você comprou uma Sniper por 50 Cash's.");
- }
- }
- if(listitem == 3)
- {
- if(PlayerInfo[playerid][Cash] >= 40)
- {
- if(PlayerInfo[playerid][Cash] < 40)
- {
- return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 40 de cash para comprar!");
- }
- GivePlayerWeapon(playerid, 31, 100);
- PlayerInfo[playerid][Cash] -= 40;
- SendClientMessage(playerid, COR_VERDE, "Você comprou um Rifle por 40 Cash's.");
- }
- }
- if(listitem == 4)
- {
- if(PlayerInfo[playerid][Cash] >= 30)
- {
- if(PlayerInfo[playerid][Cash] < 30)
- {
- return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 30 de cash para comprar!");
- }
- GivePlayerWeapon(playerid, 25, 24);
- PlayerInfo[playerid][Cash] -= 30;
- SendClientMessage(playerid, COR_VERDE, "Você comprou uma Shotgum por 30 Cash's.");
- }
- }
- }
- if(dialogid == 12345)
- {
- if(!response) { return ShowPlayerDialog(playerid,123,DIALOG_STYLE_LIST,"Loja de Cash","Armamentos\nMedicamentos\n","Aceitar","Cancelar"); }
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][Cash] >= 3)
- {
- if(PlayerInfo[playerid][Cash] < 3)
- {
- return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 3 de cash para comprar!");
- }
- Bandagem[playerid] += 1;
- PlayerInfo[playerid][Cash] -= 3;
- SendClientMessage(playerid, COR_VERDE, "Você comprou uma bandagem por 3 Cash's.");
- }
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][Cash] >= 5)
- {
- if(PlayerInfo[playerid][Cash] < 5)
- {
- return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 5 de cash para comprar!");
- }
- Remedio[playerid] += 1;
- PlayerInfo[playerid][Cash] -= 5;
- SendClientMessage(playerid, COR_VERDE, "Você comprou um analgésico por 5 Cash's.");
- }
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][Cash] >= 10)
- {
- if(PlayerInfo[playerid][Cash] < 10)
- {
- return SendClientMessage(playerid,COR_VERMELHO,"Você não tem 50 de cash para comprar!");
- }
- Medkit[playerid] += 1;
- PlayerInfo[playerid][Cash] -= 10;
- SendClientMessage(playerid, COR_VERDE, "Você comprou um MedKit por 10 Cash's.");
- }
- }
- }
- if(dialogid == 9964)
- {
- if(!response) { return 1; }
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,9965,DIALOG_STYLE_LIST,"Crafting Casa/House","Foundation [Fundação]\nWall [Parede]\nWallDoor [Parede para Porta]\nDoor [Porta]\nWindown [Parede com Janela]\nRamp [Rampa]\n","Selecionar","Voltar");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,9952,DIALOG_STYLE_LIST,"Crafting Mobilias/Furniture","Workbench [Bancada de Trabalho]\nBed [Cama]\nChest [Baú]\nFurnace [Fornalha]","Selecionar","Voltar");
- }
- case 2:
- {
- ShowPlayerDialog(playerid,9948,DIALOG_STYLE_LIST,"Crafting Veiculos/Vehicles","Motorcycle Sanchez [Moto Sanchez]\nQuadricycle [Quadriciculo]\nBandito Car [Carro Bandito]\nPatriot Jeep Car [Carro Patriot Jeep]","Selecionar","Voltar");
- }
- }
- }
- if(dialogid == 9965)
- {
- if(!response) { return ShowPlayerDialog(playerid,9964,DIALOG_STYLE_LIST,"Crafting's"," - Crafting Casa/House\n - Crafting Mobilias/Furniture\n - Crafting Veiculos/Vehicles\n","Aceitar","Cancelar"); }
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][Madeira] >= 20)
- {
- new id = -1;
- for(new i; i < MAX_BASES; i++)
- {
- if(!Base[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Base[id][Dono] = pName(playerid);
- Base[id][Existe] = 1;
- Base[id][PosX] = X;
- Base[id][PosY] = Y;
- Base[id][PosZ] = Z+1;
- Base[id][RZ] = A + 180;
- Base[id][ObjectB] = CreateDynamicObject(ObjectBase, Base[id][PosX] +1, Base[id][PosY], Base[id][PosZ], Base[id][RX], Base[id][RY], Base[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Fundação criada com sucesso."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Foundation created successfully."); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditBaseID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangeBase(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Base[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditBaseID[playerid] = id1;
- EditDynamicObject(playerid, Base[id1][ObjectB]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarBases(id);
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][Madeira] >= 20)
- {
- new id = -1;
- for(new i; i < MAX_BASES; i++)
- {
- if(!Base[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Base[id][Dono] = pName(playerid);
- Base[id][Existe] = 1;
- Base[id][PosX] = X;
- Base[id][PosY] = Y;
- Base[id][PosZ] = Z+1;
- Base[id][RZ] = A + 180;
- Base[id][ObjectB] = CreateDynamicObject(ObjectBase, Base[id][PosX] +1, Base[id][PosY], Base[id][PosZ], Base[id][RX], Base[id][RY], Base[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Parede criada com sucesso!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Wall created successfully!"); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditBaseID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangeBase(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Base[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditBaseID[playerid] = id1;
- EditDynamicObject(playerid, Base[id1][ObjectB]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarBases(id);
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][Madeira] >= 15)
- {
- new id = -1;
- for(new i; i < MAX_DOOR; i++)
- {
- if(!Door[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Door[id][Dono] = pName(playerid);
- Door[id][Existe] = 1;
- Door[id][PosX] = X;
- Door[id][PosY] = Y;
- Door[id][PosZ] = Z;
- Door[id][RZ] = A + 180;
- Door[id][ObjectF] = CreateDynamicObject(walldoor, Door[id][PosX] +1, Door[id][PosY], Door[id][PosZ], Door[id][RX], Door[id][RY], Door[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] 'Parede para porta' criada com sucesso!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Walldoor created successfully!"); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditDoorID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangeDoor(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Door[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditDoorID[playerid] = id1;
- EditDynamicObject(playerid, Door[id1][ObjectF]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarDoor(id);
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- if(listitem == 3)
- {
- if(PlayerInfo[playerid][Madeira] >= 10)
- {
- new id = -1;
- for(new i; i < MAX_DOOR; i++)
- {
- if(!Door[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Porta[id][Dono] = pName(playerid);
- Porta[id][Existe] = 1;
- Porta[id][PosX] = X;
- Porta[id][PosY] = Y;
- Porta[id][PosZ] = Z;
- Porta[id][RZ] = A + 180;
- Porta[id][ObjectC] = CreateDynamicObject(porta, Porta[id][PosX] +1, Porta[id][PosY], Porta[id][PosZ], Porta[id][RX], Porta[id][RY], Porta[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Porta criada com sucesso!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Door created successfully!"); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditPortaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangePorta(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Porta[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditPortaID[playerid] = id1;
- EditDynamicObject(playerid, Porta[id1][ObjectC]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarPortas(id);
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- if(listitem == 4)
- {
- if(PlayerInfo[playerid][Madeira] >= 15)
- {
- new id = -1;
- for(new i; i < MAX_WINDOWN; i++)
- {
- if(!Windown[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Windown[id][Dono] = pName(playerid);
- Windown[id][Existe] = 1;
- Windown[id][PosX] = X;
- Windown[id][PosY] = Y;
- Windown[id][PosZ] = Z;
- Windown[id][RZ] = A + 180;
- Windown[id][ObjectH] = CreateDynamicObject(windown1, Windown[id][PosX] +1, Windown[id][PosY], Windown[id][PosZ], Windown[id][RX], Windown[id][RY], Windown[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] 'Parede para janela' criada com sucesso!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Windown created successfully!"); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditWindownID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangeWindown(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Windown[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditWindownID[playerid] = id1;
- EditDynamicObject(playerid, Windown[id1][ObjectH]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarWindowns(id);
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- if(listitem == 5)
- {
- if(PlayerInfo[playerid][Madeira] >= 20)
- {
- new id = -1;
- for(new i; i < MAX_RAMPAS; i++)
- {
- if(!Rampa[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Rampa[id][Dono] = pName(playerid);
- Rampa[id][Existe] = 1;
- Rampa[id][PosX] = X;
- Rampa[id][PosY] = Y;
- Rampa[id][PosZ] = Z;
- Rampa[id][RZ] = A + 180;
- Rampa[id][ObjectE] = CreateDynamicObject(rampa, Rampa[id][PosX] +1, Rampa[id][PosY], Rampa[id][PosZ], Rampa[id][RX], Rampa[id][RY], Rampa[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Rampa criada com sucesso!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Ramp created successfully!"); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditRampaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangeRampa(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Rampa[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua / This is not your base.");
- EditRampaID[playerid] = id1;
- EditDynamicObject(playerid, Rampa[id1][ObjectE]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarRampas(id);
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- }
- if(dialogid == 9952)
- {
- if(!response) { return ShowPlayerDialog(playerid,9964,DIALOG_STYLE_LIST,"Crafting's"," - Crafting Casa/House\n - Crafting Mobilias/Furniture\n - Crafting Veiculos/Vehicles\n","Aceitar","Cancelar"); }
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][Madeira] >= 15)
- {
- new id = -1;
- for(new i; i < MAX_BANCADAS; i++)
- {
- if(!Bancada[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Bancada[id][Dono] = pName(playerid);
- Bancada[id][Existe] = 1;
- Bancada[id][PosX] = X;
- Bancada[id][PosY] = Y;
- Bancada[id][PosZ] = Z -1;
- Bancada[id][RZ] = A + 180;
- Bancada[id][ObjectA] = CreateDynamicObject(bancada, Bancada[id][PosX] +1, Bancada[id][PosY], Bancada[id][PosZ], Bancada[id][RX], Bancada[id][RY], Bancada[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Bancada de Trabalho criada com sucesso!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Workbench created successfully!"); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditBancadaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangeBancada(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Bancada[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditBancadaID[playerid] = id1;
- EditDynamicObject(playerid, Bancada[id1][ObjectA]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarBancadas(id);
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][Madeira] >= 15)
- {
- if(PlayerInfo[playerid][Cloth] >= 10)
- {
- new id = -1;
- for(new i; i < MAX_CAMA; i++)
- {
- if(!Cama[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Cama[id][Dono] = pName(playerid);
- Cama[id][Existe] = 1;
- Cama[id][PosX] = X;
- Cama[id][PosY] = Y;
- Cama[id][PosZ] = Z;
- Cama[id][RZ] = A + 180;
- Cama[id][ObjectG] = CreateDynamicObject(cama, Cama[id][PosX] +1, Cama[id][PosY], Cama[id][PosZ], Cama[id][RX], Cama[id][RY], Cama[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Cama criada com sucesso!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Sleeping Bed created successfully!"); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditCamaID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangeCama(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Cama[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditCamaID[playerid] = id1;
- EditDynamicObject(playerid, Cama[id1][ObjectG]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarCama(id);
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- else if(PlayerInfo[playerid][Cloth] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][Madeira] >= 15)
- {
- new id = -1;
- for(new i; i < MAX_BAU; i++)
- {
- if(!Bau[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Bau[id][Dono] = pName(playerid);
- Bau[id][Existe] = 1;
- Bau[id][PosX] = X;
- Bau[id][PosY] = Y;
- Bau[id][PosZ] = Z;
- Bau[id][RZ] = A + 180;
- Bau[id][ObjectD] = CreateDynamicObject(bau, Bau[id][PosX] +1, Bau[id][PosY], Bau[id][PosZ], Bau[id][RX], Bau[id][RY], Bau[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Baú criada com sucesso!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Chest created successfully!"); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditBauID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangeBau(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Bau[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditBauID[playerid] = id1;
- EditDynamicObject(playerid, Bau[id1][ObjectD]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarBaus(id);
- }
- else if(PlayerInfo[playerid][Madeira] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem madeira suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough wood, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- if(listitem == 3)
- {
- if(PlayerInfo[playerid][Pedra] >= 60)
- {
- new id = -1;
- for(new i; i < MAX_FORNO; i++)
- {
- if(!Forno[i][Existe])
- {
- id = i;
- break;
- }
- }
- new Float:X, Float:Y, Float:Z, Float: A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- Forno[id][Dono] = pName(playerid);
- Forno[id][Existe] = 1;
- Forno[id][PosX] = X;
- Forno[id][PosY] = Y;
- Forno[id][PosZ] = Z;
- Forno[id][RZ] = A + 180;
- Forno[id][ObjectJ] = CreateDynamicObject(forno, Forno[id][PosX] +1, Forno[id][PosY], Forno[id][PosZ], Forno[id][RX], Forno[id][RY], Forno[id][RZ]);
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Fornalha criada com sucesso!"); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] Furnace created successfully!"); // String em inglês
- SendClientMessage(playerid, verde, string1);
- if(EditFornoID[playerid] != -1) return SendClientMessage(playerid, fail, "[!] Você já está editando uma base / You are already editing a base.");
- new id1 = GetPlayerRangeForno(playerid);
- if(id1 == -1) return SendClientMessage(playerid, fail, "[!] Você não está perto de sua base / You're not near your base.");
- if(strcmp(Forno[id1][Dono], pName(playerid))) return SendClientMessage(playerid, fail, "[!] Essa base não é sua!");
- EditFornoID[playerid] = id1;
- EditDynamicObject(playerid, Forno[id1][ObjectJ]);
- SendClientMessage(playerid, AZULCLARO, "[!] Você pode editar sua base agora / You can edit your base now.");
- SalvarForno(id);
- }
- else if(PlayerInfo[playerid][Pedra] == 0)
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem pedras suficiente, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough stones, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- }
- if(dialogid == 9948)
- {
- if(!response) { return ShowPlayerDialog(playerid,9964,DIALOG_STYLE_LIST,"Crafting's"," - Crafting Casa/House\n - Crafting Mobilias/Furniture\n - Crafting Veiculos/Vehicles\n","Aceitar","Cancelar"); }
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][Borracha] >= 25)
- {
- if(PlayerInfo[playerid][Parafuso] >= 50)
- {
- if(PlayerInfo[playerid][Metal] >= 100)
- {
- new Float:X, Float:Y, Float:Z, Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- CreateVehicle(468, X+5, Y, Z+1, A+180, -1, -1, 60);
- PlayerInfo[playerid][Borracha] -= 25;
- PlayerInfo[playerid][Metal] -= 100;
- PlayerInfo[playerid][Parafuso] -= 50;
- }
- else
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem metais suficientes, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough, metals use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- else
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem parafusos suficientes, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough screw, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- else
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem borrachas suficientes, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough rubbers, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][Borracha] >= 25)
- {
- if(PlayerInfo[playerid][Parafuso] >= 50)
- {
- if(PlayerInfo[playerid][Metal] >= 100)
- {
- new Float:X, Float:Y, Float:Z, Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- CreateVehicle(470, X+5, Y, Z+1, A+180, -1, -1, 60);
- PlayerInfo[playerid][Borracha] -= 50;
- PlayerInfo[playerid][Metal] -= 250;
- PlayerInfo[playerid][Parafuso] -= 100;
- }
- else
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem metais suficientes, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough, metals use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- else
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem parafusos suficientes, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough screw, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- else
- {
- if(idioma[playerid]==PT)format(string1, sizeof string1,"[!] Você não tem borrachas suficientes, use: /ajuda - Crafting - Contruções."); // String em português
- if(idioma[playerid]==EN)format(string1, sizeof string1,"[!] You do not have enough rubbers, use: /help - Crafting - Construções."); // String em inglês
- SendClientMessage(playerid, fail, string1);
- }
- }
- }
- Item_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[0]);
- return 1;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(clickedid == Text: INVALID_TEXT_DRAW && PlayerInfo[playerid][Logado] == false)
- {
- SelectTextDraw(playerid,0xFFFFFFFF);
- }
- if(Inv[playerid][InvOpen] == true)
- {
- if(clickedid == Text:INVALID_TEXT_DRAW)
- {
- EsconderInventario(playerid);
- }
- }
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- new cmdString[200];
- if(playertextid == PlayerRegistro[0])
- {
- if(DOF2_FileExists(GetArquivo(playerid)))
- {
- SendClientMessage(playerid, COR_AVISO, "• Você ja tem uma Conta, Clique em Logar para Logar.");
- }
- else
- {
- for(new i; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]); }
- for(new i; i < sizeof(PlayerRegistro); i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]); }
- format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê não tem uma Conta registrada\n\nDigite uma senha para Registrar\n\nStatus: {EE3B3B}N/A Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
- ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "~ REGISTRANDO ~", cmdString, "Registrar", "Cancelar");
- }
- }
- if(playertextid == PlayerRegistro[1])
- {
- if(DOF2_FileExists(GetArquivo(playerid)))
- {
- for(new i; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]); }
- for(new i; i < sizeof(PlayerRegistro); i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]); }
- format(cmdString, sizeof(cmdString),"{F8F8FF}Bem Vindo(a) Ao Servidor {EE3B3B}%s{F8F8FF}\n\nVocê ja tem uma Conta registrada\n\nDigite sua Senha para Logar\n\nStatus: {EE3B3B}Registrado{F8F8FF}\n\nIP: {EE3B3B}%s", Nome(playerid), IP(playerid));
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "~ LOGANDO ~", cmdString, "Logar", "Cancelar");
- }
- else
- {
- SendClientMessage(playerid, COR_AVISO, "• Você não tem uma Conta, Clique em Registrar para Registrar.");
- }
- }
- if(playertextid == PlayerRegistro[2])
- {
- for(new i; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]); }
- for(new i; i < sizeof(PlayerRegistro); i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]); }
- for(new i = 0; i < sizeof(Info); i++) { TextDrawShowForPlayer(playerid, Info[i]); }
- PlayerTextDrawShow(playerid, PlayerRegistro[4]);
- }
- if(playertextid == PlayerRegistro[3])
- {
- format(cmdString, sizeof(cmdString), "O Jogador %s Resolveu sair do Servidor", Nome(playerid));
- SendClientMessageToAll(COR_ADMIN, cmdString);
- for(new i; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]); }
- for(new i; i < sizeof(PlayerRegistro) - 1; i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]); }
- GameTextForPlayer(playerid, "~", 1000, 6);
- }
- if(playertextid == PlayerRegistro[4])
- {
- for(new i; i < sizeof(Registro); i++) { TextDrawShowForPlayer(playerid, Registro[i]); }
- for(new i; i < sizeof(PlayerRegistro) - 1; i++) { PlayerTextDrawShow(playerid, PlayerRegistro[i]); }
- for(new i = 0; i < sizeof(Info); i++) { TextDrawHideForPlayer(playerid, Info[i]); }
- PlayerTextDrawHide(playerid, PlayerRegistro[4]);
- }
- INV_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(hittype == 3)
- {
- if(IsValidObject(Bambi) && hitid == Bambi)
- {
- SendClientMessage(playerid, -1, "Você acertou o bambi, digite /degolar para mata-lo!");
- SetObjectPos(Bambi, -448.412994,-2647.328125,155.043136);
- SetObjectRot(Bambi, -86.400009, 0, 0);
- BambiDead[playerid] = 1;
- }
- }
- return 1;
- }
- forward Degolado(playerid);
- public Degolado(playerid)
- {
- new Float:x,Float:y,Float:z;
- StopLoopingAnim(playerid);
- PlayerInfo[playerid][Cloth] += 3;
- PlayerInfo[playerid][Carne] += 3;
- SendClientMessage(playerid, verde, "Você degolou o bambi e conseguiu 3 carnes e 3 cloth's!");
- BambiDead[playerid] = 0;
- GetObjectPos(Bambi, x, y, z);
- SetObjectPos(Bambi, x, y, z-2000); // teleporta o bambi pra debaixo da terra fazendo o 'sumir'
- SetObjectRot(Bambi, 0, 0, 0); // retorna o bambi a posicao de vivo
- Update3DTextLabelText(BambiText, AMARELO_2, " "); // limpa o texto do bambi
- SetTimer("BambiVoltou", 30000, true);
- }
- public BambiVoltou(playerid)
- {
- SetObjectPos(Bambi, -448.4130,-2647.3594,155.0000);
- Update3DTextLabelText(BambiText, AMARELO_2, "* Bambi * \n {A9A9A9} Atire nele para matar! Depois /degolar!");
- return 1;
- }
- public DestruirTextoDraw(playerid)
- {
- TextDrawHideForPlayer(playerid, Wood[playerid]);
- TextDrawHideForPlayer(playerid, Wood3[playerid]);
- TextDrawHideForPlayer(playerid, Boxzin[playerid]);
- TextDrawHideForPlayer(playerid, Stone[playerid]);
- TextDrawHideForPlayer(playerid, Boxzin2[playerid]);
- TextDrawHideForPlayer(playerid, MetalF[playerid]);
- TextDrawHideForPlayer(playerid, LimiteMaterial[playerid]);
- return 1;
- }
- public pegandoagua(playerid)
- {
- Valor2 [playerid] +=20; //almentará a bar de 5 em 5
- SetProgressBarValue(Exemplo2, Valor2[playerid]);//seta o valor da bar para o valor da variavel
- UpdateProgressBar(Exemplo2, playerid); // atualiza a bar
- if (Valor2[playerid] == 100)
- { //quando chegar a 100
- HideProgressBarForPlayer(playerid, Exemplo2); //sumira a bar
- SetProgressBarValue (Exemplo2, 0) ;//setara o valor dela para 0
- Valor2 [playerid] = 0; //o da variavel também
- KillTimer (Baru2[playerid]) ; //e destruira o timer.
- PlayerInfo[playerid][Agua]+= 5;
- SendClientMessage(playerid, AZUL_AGUA, "Você acabou de pegar 5 litros de água!");
- StopLoopingAnim(playerid);
- }
- return 1;
- }
- forward Almentar (playerid);
- public Almentar (playerid)
- {
- Valor [playerid] +=5 ; //almentará a bar de 5 em 5
- SetProgressBarValue(Exemplo, Valor[playerid]) ;//seta o valor da bar para o valor da variavel
- UpdateProgressBar(Exemplo, playerid) ; // atualiza a bar
- if (Valor[playerid] == 100)
- { //quando chegar a 100
- HideProgressBarForPlayer(playerid, Exemplo); //sumira a bar
- SetProgressBarValue (Exemplo, 0) ;//setara o valor dela para 0
- Valor [playerid] = 0; //o da variavel também
- KillTimer (Baru[playerid]) ; //e destruira o timer.
- GivePlayerWeapon(playerid, 33, 5);
- SendClientMessage(playerid, AZUL_AGUA, "Você fez um rifle com 5 balas.");
- PlayerInfo[playerid][Madeira] -= 5;
- PlayerInfo[playerid][Metal] -= 10;
- TogglePlayerControllable(playerid, 1);
- StopLoopingAnim(playerid);
- }
- return 1;
- }
- public FazendoPistola(playerid)
- {
- GivePlayerWeapon(playerid, 24, 7);
- SendClientMessage(playerid, AZUL_AGUA, "Você fez uma pistola com 7 balas.");
- PlayerInfo[playerid][Parafuso] -= 5;
- PlayerInfo[playerid][Metal] -= 10;
- StopLoopingAnim(playerid);
- return 1;
- }
- public Pescando(playerid)
- {
- SendClientMessage(playerid, AZUL_AGUA, "Você conseguiu pegar um peixe!");
- StopLoopingAnim(playerid);
- RemovePlayerAttachedObject(playerid, 2);
- PlayerInfo[playerid][Peixe] += 1;
- pPescando[playerid] = 0;
- return 1;
- }
- public campfire(playerid)
- {
- new Float:X, Float:Y, Float:Z, Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- GameTextForPlayer(playerid, "~r~Fogo Feito", 200, 0);
- Fogarel = CreateDynamicObject(19632, X, Y, Z-1, 0.0, 0.0, A+180);
- PlayerInfo[playerid][Madeira] -= 5;
- StopLoopingAnim(playerid);
- TogglePlayerControllable(playerid, 1);
- SetTimer("ApagarFogo", 500000, 0);
- }
- public ApagarFogo(playerid)
- {
- DestroyDynamicObject(Fogarel);
- SendClientMessage(playerid, VERDE_ESCURO, "Sua CampFire apagou!");
- Fogo[playerid] = 0;
- }
- public ApagarTocha(playerid)
- {
- RemovePlayerAttachedObject(playerid, 1);
- SetPlayerAttachedObject(playerid, 1,3026 ,1,-0.16,-0.08,0.0,0.5,0.5,0.0,1.0,1.3,1.0,-1,0);
- SendClientMessage(playerid, VERDE_ESCURO, "Sua Tocha apagou!");
- Tocha[playerid] = 0;
- }
- public Fome(playerid)
- {
- SetPVarInt(playerid,"Fome", GetPVarInt(playerid,"Fome")-1);
- SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
- UpdateProgressBar(FomeA,playerid);
- if(GetPVarInt(playerid,"Fome") <= 5)
- {
- new Float:Vida;
- GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida - 20);
- SendClientMessage(playerid, 0xFF0000FF,"[!] Vá até a lanchonete comer ou irá morrer de fome!");
- }
- if(GetPVarInt(playerid,"Fome") <= 0)
- {
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid, 0xFF0000FF, "[!] Você morreu de fome!");
- }
- return 1;
- }
- public Correction(playerid)
- {
- if(GetPVarInt(playerid,"Sede") > 100)
- {
- SetPVarInt(playerid,"Sede", 100);
- SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
- UpdateProgressBar(SedeB, playerid);
- }
- if(GetPVarInt(playerid,"Fome") > 100)
- {
- SetPVarInt(playerid,"Fome", 100);
- SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
- UpdateProgressBar(FomeA, playerid);
- }
- if(GetPVarInt(playerid,"Frio") > 100)
- {
- SetPVarInt(playerid,"Frio", 100);
- SetProgressBarValue(FrioD, GetPVarInt(playerid,"Frio"));
- UpdateProgressBar(FrioD, playerid);
- }
- return 0;
- }
- public Sede(playerid)
- {
- SetPVarInt(playerid,"Sede", GetPVarInt(playerid,"Sede")-1);
- SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
- UpdateProgressBar(SedeB,playerid);
- if(GetPVarInt(playerid,"Sede") <= 5)
- {
- new Float:Vida;
- GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida - 20);
- SendClientMessage(playerid, 0xFF0000FF,"[!] Você está com muita sede, beba algo ou morrerá!");
- }
- if(GetPVarInt(playerid,"Sede") <= 0)
- {
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid, 0xFF0000FF, "[!] Você morreu de Sede!");
- }
- return 1;
- }
- public Frio(playerid)
- {
- SetPVarInt(playerid,"Frio", GetPVarInt(playerid,"Frio")-3);
- SetProgressBarValue(FrioD, GetPVarInt(playerid,"Frio"));
- UpdateProgressBar(FrioD,playerid);
- if(GetPVarInt(playerid,"Frio") <= 6)
- {
- new Float:Vida;
- GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida - 20);
- SendClientMessage(playerid, 0xFF0000FF,"[!] Você está com muito Frio, crie uma campfire para se aquecer!");
- }
- if(GetPVarInt(playerid,"Frio") <= 0)
- {
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid, 0xFF0000FF, "[!] Você morreu de Frio!");
- }
- return 1;
- }
- public Payday(playerid)
- {
- PegouPresente[playerid] = 0;
- SendClientMessageToAll(0xFF0000AA, "[INFO] {00FF7C}PayDay iniciado, use /presente para pegar sua promoção.");
- return 1;
- }
- public Acordar(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid,x,y,z);
- DOF2_SetFloat(GetArquivo(playerid),"PosX",x);
- DOF2_SetFloat(GetArquivo(playerid),"PosY",y);
- DOF2_SetFloat(GetArquivo(playerid),"PosZ",z);
- DOF2_SaveFile();
- StopLoopingAnim(playerid);
- return 1;
- }
- public SendMSG()
- {
- new string[256];
- new randMSG = random(sizeof(RandomServerName));
- format(string,sizeof(string),"hostname %s",RandomServerName[randMSG]);
- SendRconCommand(string);
- }
- public mMensagens()
- {
- new random2 = random(sizeof(RandomColors));
- new randMSG = random(sizeof(Mensagens));
- SendClientMessageToAll(RandomColors[random2], Mensagens[randMSG]);
- }
- stock Items_Industriais(items)
- {
- switch(items)
- {
- case 0: items = 1;
- case 1: items = 2;
- case 2: items = 3;
- case 3: items = 4;
- case 4: items = 5;
- case 5: items = 6;
- case 6: items = 7;
- case 7: items = 8;
- case 8: items = 9;
- case 9: items = 10;
- case 10: items = 11;
- }
- return items;
- }
- forward CriarLoots();
- public CriarLoots()
- {
- new i;
- for(i = 0; i < sizeof(Industrial_Spawns); i++)
- {
- CriarItem(Items_Industriais(random(12)), Industrial_Spawns[i][0], Industrial_Spawns[i][1], Industrial_Spawns[i][2]);
- }
- printf("| INFO |: %i ITEMS TOTAIS.", sizeof(Industrial_Spawns));
- return 1;
- }
- /*
- ItemInfo[][Item_Data] =
- {
- {0, 19382, "Null", 0.0, 0.0, 0.0, -1}, //não mexa nesse
- {1, 11738, "Kit Médico/MedKit", 0.0, 0.0, 0.0, 0x3EE314FF},
- {2, 19141, "Capacete", 0.0, 0.0, 0.0, 0x3EE314FF},
- {3, 19142, "Colete", 0.0, 0.0, 0.0, 0x3EE314FF},
- {4, 356, "Metralhadora M16", 0.0, 0.0, 0.0, 0x3EE314FF},
- {5, 353, "Sub-Metralhadora MP5", 0.0, 0.0, 0.0, 0x3EE314FF},
- {6, 358, "Sniper", 0.0, 0.0, 0.0, 0x3EE314FF},
- {7, 349, "Shotgun", 0.0, 0.0, 0.0, 0x3EE314FF},
- {8, 1650, "Gasolina", 0.0, 0.0, 0.0, 0x3EE314FF},
- {9, 1279, "Motor", 0.0, 0.0, 0.0, 0x3EE314FF},
- {10, 348, "Pistola", 0.0, 0.0, 0.0, 0x3EE314FF},
- {11, 1210, "Maleta de Cash", 0.0, 0.0, 0.0, 0x3EE314FF}
- };
- */
- public OnPlayerUseItem(playerid, itemid)
- {
- switch(itemid)
- {
- case 1:
- {
- RemoverItem(playerid, 1, 1);
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, COR_VERDE, "Você usou um MedKit e curou 100 de sua vida!");
- }
- case 2:
- {
- RemoverItem(playerid, 2, 1);
- SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+10);
- SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
- UpdateProgressBar(FomeA,playerid);
- SendClientMessage(playerid, COR_VERDE, "Você comeu uma fruta e sua fome diminuiu.");
- }
- case 3:
- {
- SetPlayerArmour(playerid, 100);
- RemoverItem(playerid, 3, 1);
- }
- case 4:
- {
- GivePlayerWeapon(playerid, 31, 30);
- RemoverItem(playerid, 4, 1);
- }
- case 5:
- {
- GivePlayerWeapon(playerid, 29, 30);
- RemoverItem(playerid, 5, 1);
- }
- case 6:
- {
- GivePlayerWeapon(playerid, 33, 30);
- RemoverItem(playerid, 6, 1);
- }
- case 7:
- {
- GivePlayerWeapon(playerid, 25, 12);
- RemoverItem(playerid, 7, 1);
- }
- case 8:
- {
- RemoverItem(playerid, 8, 1);
- }
- case 9:
- {
- RemoverItem(playerid, 9, 1);
- }
- case 10:
- {
- GivePlayerWeapon(playerid, 22, 30);
- RemoverItem(playerid, 10, 1);
- }
- case 11:
- {
- PlayerInfo[playerid][Cash] += 5; // dar cash ao jogador
- SendClientMessage(playerid, COR_VERDE, "Você abriu a maleta e ganhou 5 de cash.");
- RemoverItem(playerid, 11, 1);
- }
- }
- return 1;
- }
- stock GetNearestItemID(playerid, Float:range = 1.5)
- {
- for(new i; i < MAX_DROPS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, range, DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ]))
- {
- return i;
- }
- }
- return -1;
- }
- public OnPlayerDropItem(playerid, itemid)
- {
- static Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- switch(itemid)
- {
- default:
- {
- RemoverItem(playerid, itemid, 1);
- CriarItem(itemid, X, Y, Z);
- }
- }
- return 1;
- }
- public PickUPItemDrop(playerid)
- {
- new i = GetNearestItemID(playerid);
- if(i != -1)
- {
- if(IsPlayerInRangeOfPoint(playerid, 1.5, DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ]))
- {
- new itemid = DropInfo[i][DropItemID];
- AdicionarItem(playerid, ItemInfo[itemid][Item_ID], 1);
- DestroirItem(i);
- }
- }
- return 1;
- }
- public Item_OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- if(PRESSED(KEY_NO))
- {
- new i = GetNearestItemID(playerid);
- if(i != -1)
- {
- if(IsPlayerInRangeOfPoint(playerid, 1.5, DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ]))
- {
- new str[45],
- itemid = DropInfo[i][DropItemID];
- format(str, sizeof(str), "{FFFFFF}>> %s", ItemInfo[itemid][Item_Name]);
- ShowPlayerDialog(playerid, DialogPegarItem, DIALOG_STYLE_MSGBOX,"Looting", str, "Pegar", "Fechar");
- }
- }
- }
- }
- return 1;
- }
- public Item_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case DialogPegarItem:
- {
- if(response)
- {
- if(pInfo[playerid][pSlots] == pInfo[playerid][pBackpack])
- {
- GameTextForPlayer(playerid,"~r~Inventario Cheio",1000,4);
- return 1;
- }
- ApplyAnimation(playerid, "CARRY", "liftup05", 4.0, 0, 0, 0, 0, -1);
- PickUPItemDrop(playerid);
- }
- }
- }
- return 1;
- }
- stock DestroirItem(dropid)
- {
- DropInfo[dropid][dPosX] = 0.0;
- DropInfo[dropid][dPosY] = 0.0;
- DropInfo[dropid][dPosZ] = 0.0;
- DropInfo[dropid][DropItemID] = -1;
- DestroyDynamicObject(DropInfo[dropid][DropObj]);
- DestroyDynamic3DTextLabel(DropInfo[dropid][DropLabel]);
- return 1;
- }
- stock CriarItem(itemid, Float:X, Float:Y, Float:Z)
- {
- if(itemid != 0)
- {
- for(new i; i < MAX_DROPS; i++)
- {
- if(DropInfo[i][dPosX] == 0.0 && DropInfo[i][dPosY] == 0.0 && DropInfo[i][dPosZ] == 0.0)
- {
- DropInfo[i][dPosX] = X, DropInfo[i][dPosY] = Y, DropInfo[i][dPosZ] = Z-0.92;
- DropInfo[i][DropItemID] = itemid;
- DropInfo[i][DropLabel] = CreateDynamic3DTextLabel(ItemInfo[itemid][Item_Name], ItemInfo[itemid][Item_Color], DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ], 1.5);
- DropInfo[i][DropObj] = CreateDynamicObject(ItemInfo[itemid][Item_Obj], DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ], ItemInfo[itemid][Item_RotX], ItemInfo[itemid][Item_RotY], ItemInfo[itemid][Item_RotZ]);
- return 1;
- }
- }
- }
- return 0;
- }
- forward INV_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
- public INV_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- for(new i; i < 24; i++)
- {
- if(playertextid == INV_SLOTS[playerid][i])
- {
- new index = (24 * Inv[playerid][invPage]) + i;
- if(Inv[playerid][Item][index] != 0)
- {
- Inv[playerid][ItemSelected] = Inv[playerid][Item][index];
- PlayerTextDrawHide(playerid, INV_DESIGN[playerid][16]);
- PlayerTextDrawSetPreviewModel(playerid, INV_DESIGN[playerid][16], ItemInfo[Inv[playerid][Item][index]][Item_Obj]);
- PlayerTextDrawShow(playerid, INV_DESIGN[playerid][16]);
- }
- break;
- }
- }
- if(playertextid == INV_DESIGN[playerid][3])
- {
- EsconderInventario(playerid);
- }
- if(playertextid == INV_DESIGN[playerid][17])
- {
- if(Inv[playerid][ItemSelected] != 0)
- {
- CallLocalFunction("OnPlayerUseItem","ii",playerid, ItemInfo[Inv[playerid][ItemSelected]][Item_ID]);
- EsconderInventario(playerid);
- }
- }
- if(playertextid == INV_DESIGN[playerid][18])
- {
- if(Inv[playerid][ItemSelected] != 0)
- {
- CallLocalFunction("OnPlayerDropItem","ii",playerid, ItemInfo[Inv[playerid][ItemSelected]][Item_ID]);
- ApplyPlayerAnimation(playerid, "GRENADE", "WEAPON_throwu", 4.0, 0, 0, 0, 0, -1);
- EsconderInventario(playerid);
- }
- }
- return 1;
- }
- stock AdicionarItem(playerid, itemid, amount)
- {
- pInfo[playerid][pSlots] += amount;
- for(new i; i < MAX_SLOTS; i++)
- {
- if(amount > 0)
- {
- if(Inv[playerid][Item][i] == 0)
- {
- Inv[playerid][Item][i] = itemid;
- //_SetItemAmountPVar(playerid,itemid,amount);
- amount--;
- }
- }
- else break;
- }
- return 1;
- }
- stock RemoverItem(playerid, itemid, amount)
- {
- pInfo[playerid][pSlots] -= amount;
- for(new i; i < MAX_SLOTS; i++)
- {
- if(amount > 0)
- {
- if(Inv[playerid][Item][i] == itemid)
- {
- Inv[playerid][Item][i] = 0;
- amount--;
- }
- }
- else break;
- }
- return 1;
- }
- stock ResetarPlayerInventario(playerid)
- {
- pInfo[playerid][pSlots] = 0;
- for(new i; i < MAX_SLOTS; i++)
- {
- if(Inv[playerid][Item][i] != 0)
- {
- Inv[playerid][Item][i] = 0;
- }
- }
- return 1;
- }
- stock PlayerHasItem(playerid, itemid)
- {
- new amount;
- for(new i; i < MAX_SLOTS; i++) // faz o loop em todos os slots
- {
- if(Inv[playerid][Item][i] == itemid) amount++;
- }
- return amount;
- }
- stock MostrarInventarioPagina(playerid, pageid)
- {
- new index;
- for(new i; i < 24; i++)
- {
- index = (24 * pageid) + i;
- PlayerTextDrawSetPreviewModel(playerid, INV_SLOTS[playerid][i], ItemInfo[Inv[playerid][Item][index]][Item_Obj]);
- PlayerTextDrawShow(playerid, INV_SLOTS[playerid][i]);
- }
- Inv[playerid][invPage] = pageid;
- //format(str, sizeof(str), "%02i/01", Inv[playerid][invPage]);
- //PlayerTextDrawSetString(playerid, INV_DESIGN[playerid][2], str);
- }
- stock MostrarInventario(playerid)
- {
- Inv[playerid][InvOpen] = true;
- PlayerTextDrawSetPreviewModel(playerid, INV_DESIGN[playerid][16], 60000);
- new i;
- for(i = 0; i < 21; i++) { PlayerTextDrawShow(playerid, INV_DESIGN[playerid][i]); }
- for(i = 0; i < 24; i++) { PlayerTextDrawShow(playerid, INV_SLOTS[playerid][i]); }
- MostrarInventarioPagina(playerid, 0);
- Inv[playerid][ItemSelected] = 0;
- SelectTextDraw(playerid, 0xFF0000FF);
- return 1;
- }
- stock EsconderInventario(playerid)
- {
- Inv[playerid][InvOpen] = false;
- new i;
- for(i = 0; i < 21; i++) { PlayerTextDrawHide(playerid, INV_DESIGN[playerid][i]); }
- for(i = 0; i < 24; i++) { PlayerTextDrawHide(playerid, INV_SLOTS[playerid][i]); }
- CancelSelectTextDraw(playerid);
- return 1;
- }
- public Relogio()
- {
- new string[128];
- new dia, mes, ano;
- getdate(ano, mes, dia);
- new convertermes[20];
- if(mes == 1) { convertermes = "Janeiro"; }
- else if(mes == 2) { convertermes = "Fevereiro"; }
- else if(mes == 3) { convertermes = "Marco"; }
- else if(mes == 4) { convertermes = "Abril"; }
- else if(mes == 5) { convertermes = "Maio"; }
- else if(mes == 6) { convertermes = "Junho"; }
- else if(mes == 7) { convertermes = "Julho"; }
- else if(mes == 8) { convertermes = "Agosto"; }
- else if(mes == 9) { convertermes = "Setembro"; }
- else if(mes == 10) { convertermes = "Outubro"; }
- else if(mes == 11) { convertermes = "Novembro"; }
- else if(mes == 12) { convertermes = "Dezembro"; }
- format(string, sizeof(string), "%d de %s de %d", dia, convertermes, ano);
- TextDrawSetString(DataC, string);
- return 1;
- }
- stock SalvarPlayer(playerid)
- {
- if(DOF2_FileExists(GetArquivo(playerid)))
- {
- PlayerInfo[playerid][Level] = GetPlayerScore(playerid);
- DOF2_SetInt(GetArquivo(playerid), "Administrador", PlayerInfo[playerid][Administrador]);
- DOF2_SetInt(GetArquivo(playerid), "Level", PlayerInfo[playerid][Level]);
- DOF2_SetInt(GetArquivo(playerid), "Skin", PlayerInfo[playerid][Skin]);
- DOF2_SetInt(GetArquivo(playerid), "Matou", PlayerInfo[playerid][Matou]);
- DOF2_SetInt(GetArquivo(playerid), "Morreu", PlayerInfo[playerid][Morreu]);
- DOF2_SetInt(GetArquivo(playerid), "Dinheiro", GetPlayerMoney(playerid));
- DOF2_SetInt(GetArquivo(playerid), "Cash", PlayerInfo[playerid][Cash]);
- DOF2_SetInt(GetArquivo(playerid), "CmdJaUsado", PlayerInfo[playerid][CmdJaUsado]);
- DOF2_SetInt(GetArquivo(playerid), "Madeira", PlayerInfo[playerid][Madeira]);
- DOF2_SetInt(GetArquivo(playerid), "Pedra", PlayerInfo[playerid][Pedra]);
- DOF2_SetInt(GetArquivo(playerid), "Metal", PlayerInfo[playerid][Metal]);
- DOF2_SetInt(GetArquivo(playerid), "Parafuso", PlayerInfo[playerid][Parafuso]);
- DOF2_SetInt(GetArquivo(playerid), "Borracha", PlayerInfo[playerid][Borracha]);
- DOF2_SetInt(GetArquivo(playerid), "Frutas", PlayerInfo[playerid][Frutas]);
- DOF2_SetInt(GetArquivo(playerid), "Peixe", PlayerInfo[playerid][Peixe]);
- DOF2_SetInt(GetArquivo(playerid), "Carne", PlayerInfo[playerid][Carne]);
- DOF2_SetInt(GetArquivo(playerid), "Cloth", PlayerInfo[playerid][Cloth]);
- DOF2_SetInt(GetArquivo(playerid), "Agua", PlayerInfo[playerid][Agua]);
- DOF2_SetFloat(GetArquivo(playerid), "PosX", PlayerInfo[playerid][PosX]);
- DOF2_SetFloat(GetArquivo(playerid), "PosY", PlayerInfo[playerid][PosY]);
- DOF2_SetFloat(GetArquivo(playerid), "PosZ", PlayerInfo[playerid][PosZ]);
- DOF2_SaveFile();
- }
- return 1;
- }
- stock CarregarPlayer(playerid)
- {
- if(DOF2_FileExists(GetArquivo(playerid)))
- {
- PlayerInfo[playerid][Administrador] = DOF2_GetInt(GetArquivo(playerid), "Administrador");
- PlayerInfo[playerid][Level] = DOF2_GetInt(GetArquivo(playerid), "Level");
- PlayerInfo[playerid][Skin] = DOF2_GetInt(GetArquivo(playerid), "Skin");
- PlayerInfo[playerid][Matou] = DOF2_GetInt(GetArquivo(playerid), "Matou");
- PlayerInfo[playerid][Morreu] = DOF2_GetInt(GetArquivo(playerid), "Morreu");
- PlayerInfo[playerid][Dinheiro] = DOF2_GetInt(GetArquivo(playerid), "Dinheiro");
- PlayerInfo[playerid][Cash] = DOF2_GetInt(GetArquivo(playerid), "Cash");
- PlayerInfo[playerid][CmdJaUsado] = DOF2_GetInt(GetArquivo(playerid), "CmdJaUsado");
- PlayerInfo[playerid][Madeira] = DOF2_GetInt(GetArquivo(playerid), "Madeira");
- PlayerInfo[playerid][Pedra] = DOF2_GetInt(GetArquivo(playerid), "Pedra");
- PlayerInfo[playerid][Metal] = DOF2_GetInt(GetArquivo(playerid), "Metal");
- PlayerInfo[playerid][Parafuso] = DOF2_GetInt(GetArquivo(playerid), "Parafuso");
- PlayerInfo[playerid][Borracha] = DOF2_GetInt(GetArquivo(playerid), "Borracha");
- PlayerInfo[playerid][Frutas] = DOF2_GetInt(GetArquivo(playerid), "Frutas");
- PlayerInfo[playerid][Peixe] = DOF2_GetInt(GetArquivo(playerid), "Peixe");
- PlayerInfo[playerid][Carne] = DOF2_GetInt(GetArquivo(playerid), "Carne");
- PlayerInfo[playerid][Cloth] = DOF2_GetInt(GetArquivo(playerid), "Cloth");
- PlayerInfo[playerid][Agua] = DOF2_GetInt(GetArquivo(playerid), "Agua");
- PlayerInfo[playerid][PosX] = DOF2_GetFloat(GetArquivo(playerid), "PosX");
- PlayerInfo[playerid][PosY] = DOF2_GetFloat(GetArquivo(playerid), "PosY");
- PlayerInfo[playerid][PosZ] = DOF2_GetFloat(GetArquivo(playerid), "PosZ");
- for(new i = 0; i < sizeof(Registro); i++) { TextDrawHideForPlayer(playerid, Registro[i]);}
- for(new i = 0; i < sizeof(PlayerRegistro); i++) { PlayerTextDrawHide(playerid, PlayerRegistro[i]);}
- PlayerInfo[playerid][Logado] = true;
- TogglePlayerSpectating(playerid, 0);
- CancelSelectTextDraw(playerid);
- SpawnPlayer(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][Dinheiro]);
- SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
- SetPlayerScore(playerid, PlayerInfo[playerid][Level]);
- }
- return 1;
- }
- stock IP(playerid)
- {
- static pIP[26];
- GetPlayerIp(playerid, pIP, sizeof(pIP));
- return pIP;
- }
- stock Nome(playerid)
- {
- static ANome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, ANome, sizeof(ANome));
- return ANome;
- }
- stock GetArquivo(playerid)
- {
- static arquivo[50];
- format(arquivo, sizeof(arquivo), "Contas/%s.ini", Nome(playerid));
- return arquivo;
- }
- stock pName(playerid)
- {
- new name[MAX_PLAYER_NAME + 1];
- GetPlayerName(playerid,name,sizeof(name));
- for(new i = 0; i < MAX_PLAYER_NAME; i++)
- {
- if(name[i] == '_') name[i] = ' ';
- }
- return name;
- }
- stock SalvarBases(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Bases/%d.ini", id);
- DOF2_CreateFile(file);
- DOF2_SetString(file,"Dono",Base[id][Dono]);
- DOF2_SetFloat(file, "PosX", Base[id][PosX]);
- DOF2_SetFloat(file, "PosY", Base[id][PosY]);
- DOF2_SetFloat(file, "PosZ", Base[id][PosZ]);
- DOF2_SetFloat(file, "RX", Base[id][RX]);
- DOF2_SetFloat(file, "RY", Base[id][RY]);
- DOF2_SetFloat(file, "RZ", Base[id][RZ]);
- DOF2_SaveFile();
- return 1;
- }
- stock CarregarBases(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Bases/%d.ini", id);
- if(DOF2_FileExists(file))
- {
- DOF2_GetString(file,"Dono", Base[id][Dono]);
- Base[id][PosX] = DOF2_GetFloat(file, "PosX" );
- Base[id][PosY] = DOF2_GetFloat(file, "PosY" );
- Base[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
- Base[id][RX] = DOF2_GetFloat(file, "RX" );
- Base[id][RY] = DOF2_GetFloat(file, "RY" );
- Base[id][RZ] = DOF2_GetFloat(file, "RZ" );
- Base[id][ObjectB] = CreateDynamicObject(ObjectBase, Base[id][PosX], Base[id][PosY], Base[id][PosZ], Base[id][RX], Base[id][RY], Base[id][RZ]);
- Base[id][Existe] = 1;
- }
- return 1;
- }
- stock GetPlayerRangeBase(playerid)
- {
- new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
- for(new i; i < MAX_BASES; i++)
- {
- if(!Base[i][Existe]) continue;
- distanciaB = GetPlayerDistanceFromPoint(playerid, Base[i][PosX], Base[i][PosY], Base[i][PosZ]);
- if(distanciaB <= distanciaA)
- {
- distanciaA = distanciaB;
- id = i;
- break;
- }
- }
- return id;
- }
- stock GetPlayerRangeBancada(playerid)
- {
- new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
- for(new i; i < MAX_BANCADAS; i++)
- {
- if(!Bancada[i][Existe]) continue;
- distanciaB = GetPlayerDistanceFromPoint(playerid, Bancada[i][PosX], Bancada[i][PosY], Bancada[i][PosZ]);
- if(distanciaB <= distanciaA)
- {
- distanciaA = distanciaB;
- id = i;
- break;
- }
- }
- return id;
- }
- stock GetPlayerRangePorta(playerid)
- {
- new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
- for(new i; i < MAX_PORTAS; i++)
- {
- if(!Porta[i][Existe]) continue;
- distanciaB = GetPlayerDistanceFromPoint(playerid, Porta[i][PosX], Porta[i][PosY], Porta[i][PosZ]);
- if(distanciaB <= distanciaA)
- {
- distanciaA = distanciaB;
- id = i;
- break;
- }
- }
- return id;
- }
- stock GetPlayerRangeBau(playerid)
- {
- new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
- for(new i; i < MAX_BAU; i++)
- {
- if(!Bau[i][Existe]) continue;
- distanciaB = GetPlayerDistanceFromPoint(playerid, Bau[i][PosX], Bau[i][PosY], Bau[i][PosZ]);
- if(distanciaB <= distanciaA)
- {
- distanciaA = distanciaB;
- id = i;
- break;
- }
- }
- return id;
- }
- stock GetPlayerRangeRampa(playerid)
- {
- new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
- for(new i; i < MAX_RAMPAS; i++)
- {
- if(!Rampa[i][Existe]) continue;
- distanciaB = GetPlayerDistanceFromPoint(playerid, Rampa[i][PosX], Rampa[i][PosY], Rampa[i][PosZ]);
- if(distanciaB <= distanciaA)
- {
- distanciaA = distanciaB;
- id = i;
- break;
- }
- }
- return id;
- }
- stock GetPlayerRangeDoor(playerid)
- {
- new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
- for(new i; i < MAX_DOOR; i++)
- {
- if(!Door[i][Existe]) continue;
- distanciaB = GetPlayerDistanceFromPoint(playerid, Door[i][PosX], Door[i][PosY], Door[i][PosZ]);
- if(distanciaB <= distanciaA)
- {
- distanciaA = distanciaB;
- id = i;
- break;
- }
- }
- return id;
- }
- stock GetPlayerRangeCama(playerid)
- {
- new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
- for(new i; i < MAX_CAMA; i++)
- {
- if(!Cama[i][Existe]) continue;
- distanciaB = GetPlayerDistanceFromPoint(playerid, Cama[i][PosX], Cama[i][PosY], Cama[i][PosZ]);
- if(distanciaB <= distanciaA)
- {
- distanciaA = distanciaB;
- id = i;
- break;
- }
- }
- return id;
- }
- stock GetPlayerRangeWindown(playerid)
- {
- new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
- for(new i; i < MAX_WINDOWN; i++)
- {
- if(!Windown[i][Existe]) continue;
- distanciaB = GetPlayerDistanceFromPoint(playerid, Windown[i][PosX], Windown[i][PosY], Windown[i][PosZ]);
- if(distanciaB <= distanciaA)
- {
- distanciaA = distanciaB;
- id = i;
- break;
- }
- }
- return id;
- }
- stock GetPlayerRangeForno(playerid)
- {
- new id = -1, Float: distanciaA = 2.0, Float: distanciaB;
- for(new i; i < MAX_FORNO; i++)
- {
- if(!Forno[i][Existe]) continue;
- distanciaB = GetPlayerDistanceFromPoint(playerid, Forno[i][PosX], Forno[i][PosY], Forno[i][PosZ]);
- if(distanciaB <= distanciaA)
- {
- distanciaA = distanciaB;
- id = i;
- break;
- }
- }
- return id;
- }
- stock SalvarBancadas(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Bancadas/%d.ini", id);
- DOF2_CreateFile(file);
- DOF2_SetString(file,"Dono",Bancada[id][Dono]);
- DOF2_SetFloat(file, "PosX", Bancada[id][PosX]);
- DOF2_SetFloat(file, "PosY", Bancada[id][PosY]);
- DOF2_SetFloat(file, "PosZ", Bancada[id][PosZ]);
- DOF2_SetFloat(file, "RX", Bancada[id][RX]);
- DOF2_SetFloat(file, "RY", Bancada[id][RY]);
- DOF2_SetFloat(file, "RZ", Bancada[id][RZ]);
- DOF2_SaveFile();
- return 1;
- }
- stock CarregarBancadas(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Bancadas/%d.ini", id);
- if(DOF2_FileExists(file))
- {
- DOF2_GetString(file,"Dono", Bancada[id][Dono]);
- Bancada[id][PosX] = DOF2_GetFloat(file, "PosX" );
- Bancada[id][PosY] = DOF2_GetFloat(file, "PosY" );
- Bancada[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
- Bancada[id][RX] = DOF2_GetFloat(file, "RX" );
- Bancada[id][RY] = DOF2_GetFloat(file, "RY" );
- Bancada[id][RZ] = DOF2_GetFloat(file, "RZ" );
- Bancada[id][ObjectA] = CreateDynamicObject(bancada, Bancada[id][PosX], Bancada[id][PosY], Bancada[id][PosZ], Bancada[id][RX], Bancada[id][RY], Bancada[id][RZ]);
- Bancada[id][Existe] = 1;
- }
- return 1;
- }
- stock SalvarPortas(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Portas/%d.ini", id);
- DOF2_CreateFile(file);
- DOF2_SetString(file,"Dono",Porta[id][Dono]);
- DOF2_SetFloat(file, "PosX", Porta[id][PosX]);
- DOF2_SetFloat(file, "PosY", Porta[id][PosY]);
- DOF2_SetFloat(file, "PosZ", Porta[id][PosZ]);
- DOF2_SetFloat(file, "RX", Porta[id][RX]);
- DOF2_SetFloat(file, "RY", Porta[id][RY]);
- DOF2_SetFloat(file, "RZ", Porta[id][RZ]);
- DOF2_SaveFile();
- return 1;
- }
- stock CarregarPortas(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Portas/%d.ini", id);
- if(DOF2_FileExists(file))
- {
- DOF2_GetString(file,"Dono", Porta[id][Dono]);
- Porta[id][PosX] = DOF2_GetFloat(file, "PosX" );
- Porta[id][PosY] = DOF2_GetFloat(file, "PosY" );
- Porta[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
- Porta[id][RX] = DOF2_GetFloat(file, "RX" );
- Porta[id][RY] = DOF2_GetFloat(file, "RY" );
- Porta[id][RZ] = DOF2_GetFloat(file, "RZ" );
- Porta[id][ObjectC] = CreateDynamicObject(porta, Porta[id][PosX], Porta[id][PosY], Porta[id][PosZ], Porta[id][RX], Porta[id][RY], Porta[id][RZ]);
- Porta[id][Existe] = 1;
- }
- return 1;
- }
- stock SalvarBaus(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Baus/%d.ini", id);
- DOF2_CreateFile(file);
- DOF2_SetString(file,"Dono",Bau[id][Dono]);
- DOF2_SetFloat(file, "PosX", Bau[id][PosX]);
- DOF2_SetFloat(file, "PosY", Bau[id][PosY]);
- DOF2_SetFloat(file, "PosZ", Bau[id][PosZ]);
- DOF2_SetFloat(file, "RX", Bau[id][RX]);
- DOF2_SetFloat(file, "RY", Bau[id][RY]);
- DOF2_SetFloat(file, "RZ", Bau[id][RZ]);
- DOF2_SaveFile();
- return 1;
- }
- stock CarregarBaus(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Baus/%d.ini", id);
- if(DOF2_FileExists(file))
- {
- DOF2_GetString(file,"Dono", Bau[id][Dono]);
- Bau[id][PosX] = DOF2_GetFloat(file, "PosX" );
- Bau[id][PosY] = DOF2_GetFloat(file, "PosY" );
- Bau[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
- Bau[id][RX] = DOF2_GetFloat(file, "RX" );
- Bau[id][RY] = DOF2_GetFloat(file, "RY" );
- Bau[id][RZ] = DOF2_GetFloat(file, "RZ" );
- Bau[id][ObjectD] = CreateDynamicObject(bau, Bau[id][PosX], Bau[id][PosY], Bau[id][PosZ], Bau[id][RX], Bau[id][RY], Bau[id][RZ]);
- Bau[id][Existe] = 1;
- }
- return 1;
- }
- stock SalvarRampas(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Rampas/%d.ini", id);
- DOF2_CreateFile(file);
- DOF2_SetString(file,"Dono",Rampa[id][Dono]);
- DOF2_SetFloat(file, "PosX", Rampa[id][PosX]);
- DOF2_SetFloat(file, "PosY", Rampa[id][PosY]);
- DOF2_SetFloat(file, "PosZ", Rampa[id][PosZ]);
- DOF2_SetFloat(file, "RX", Rampa[id][RX]);
- DOF2_SetFloat(file, "RY", Rampa[id][RY]);
- DOF2_SetFloat(file, "RZ", Rampa[id][RZ]);
- DOF2_SaveFile();
- return 1;
- }
- stock CarregarRampas(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Rampas/%d.ini", id);
- if(DOF2_FileExists(file))
- {
- DOF2_GetString(file,"Dono", Rampa[id][Dono]);
- Rampa[id][PosX] = DOF2_GetFloat(file, "PosX" );
- Rampa[id][PosY] = DOF2_GetFloat(file, "PosY" );
- Rampa[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
- Rampa[id][RX] = DOF2_GetFloat(file, "RX" );
- Rampa[id][RY] = DOF2_GetFloat(file, "RY" );
- Rampa[id][RZ] = DOF2_GetFloat(file, "RZ" );
- Rampa[id][ObjectE] = CreateDynamicObject(rampa, Rampa[id][PosX], Rampa[id][PosY], Rampa[id][PosZ], Rampa[id][RX], Rampa[id][RY], Rampa[id][RZ]);
- Rampa[id][Existe] = 1;
- }
- return 1;
- }
- stock SalvarWindowns(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Windowns/%d.ini", id);
- DOF2_CreateFile(file);
- DOF2_SetString(file,"Dono", Windown[id][Dono]);
- DOF2_SetFloat(file, "PosX", Windown[id][PosX]);
- DOF2_SetFloat(file, "PosY", Windown[id][PosY]);
- DOF2_SetFloat(file, "PosZ", Windown[id][PosZ]);
- DOF2_SetFloat(file, "RX", Windown[id][RX]);
- DOF2_SetFloat(file, "RY", Windown[id][RY]);
- DOF2_SetFloat(file, "RZ", Windown[id][RZ]);
- DOF2_SaveFile();
- return 1;
- }
- stock CarregarWindowns(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Windowns/%d.ini", id);
- if(DOF2_FileExists(file))
- {
- DOF2_GetString(file,"Dono", Windown[id][Dono]);
- Windown[id][PosX] = DOF2_GetFloat(file, "PosX" );
- Windown[id][PosY] = DOF2_GetFloat(file, "PosY" );
- Windown[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
- Windown[id][RX] = DOF2_GetFloat(file, "RX" );
- Windown[id][RY] = DOF2_GetFloat(file, "RY" );
- Windown[id][RZ] = DOF2_GetFloat(file, "RZ" );
- Windown[id][ObjectH] = CreateDynamicObject(windown1, Windown[id][PosX], Windown[id][PosY], Windown[id][PosZ], Windown[id][RX], Windown[id][RY], Windown[id][RZ]);
- Windown[id][Existe] = 1;
- }
- return 1;
- }
- stock SalvarDoor(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Door/%d.ini", id);
- DOF2_CreateFile(file);
- DOF2_SetString(file,"Dono",Door[id][Dono]);
- DOF2_SetFloat(file, "PosX", Door[id][PosX]);
- DOF2_SetFloat(file, "PosY", Door[id][PosY]);
- DOF2_SetFloat(file, "PosZ", Door[id][PosZ]);
- DOF2_SetFloat(file, "RX", Door[id][RX]);
- DOF2_SetFloat(file, "RY", Door[id][RY]);
- DOF2_SetFloat(file, "RZ", Door[id][RZ]);
- DOF2_SaveFile();
- return 1;
- }
- stock CarregarDoor(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Door/%d.ini", id);
- if(DOF2_FileExists(file))
- {
- DOF2_GetString(file,"Dono", Door[id][Dono]);
- Door[id][PosX] = DOF2_GetFloat(file, "PosX" );
- Door[id][PosY] = DOF2_GetFloat(file, "PosY" );
- Door[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
- Door[id][RX] = DOF2_GetFloat(file, "RX" );
- Door[id][RY] = DOF2_GetFloat(file, "RY" );
- Door[id][RZ] = DOF2_GetFloat(file, "RZ" );
- Door[id][ObjectF] = CreateDynamicObject(walldoor, Door[id][PosX], Door[id][PosY], Door[id][PosZ], Door[id][RX], Door[id][RY], Door[id][RZ]);
- Door[id][Existe] = 1;
- }
- return 1;
- }
- stock SalvarForno(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Fornalhas/%d.ini", id);
- DOF2_CreateFile(file);
- DOF2_SetString(file,"Dono",Forno[id][Dono]);
- DOF2_SetFloat(file, "PosX", Forno[id][PosX]);
- DOF2_SetFloat(file, "PosY", Forno[id][PosY]);
- DOF2_SetFloat(file, "PosZ", Forno[id][PosZ]);
- DOF2_SetFloat(file, "RX", Forno[id][RX]);
- DOF2_SetFloat(file, "RY", Forno[id][RY]);
- DOF2_SetFloat(file, "RZ", Forno[id][RZ]);
- DOF2_SaveFile();
- return 1;
- }
- stock CarregarForno(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Fornalhas/%d.ini", id);
- if(DOF2_FileExists(file))
- {
- DOF2_GetString(file,"Dono", Forno[id][Dono]);
- Forno[id][PosX] = DOF2_GetFloat(file, "PosX" );
- Forno[id][PosY] = DOF2_GetFloat(file, "PosY" );
- Forno[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
- Forno[id][RX] = DOF2_GetFloat(file, "RX" );
- Forno[id][RY] = DOF2_GetFloat(file, "RY" );
- Forno[id][RZ] = DOF2_GetFloat(file, "RZ" );
- Forno[id][ObjectJ] = CreateDynamicObject(forno, Forno[id][PosX], Forno[id][PosY], Forno[id][PosZ], Forno[id][RX], Forno[id][RY], Forno[id][RZ]);
- Forno[id][Existe] = 1;
- }
- return 1;
- }
- stock SalvarCama(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Cama/%d.ini", id);
- DOF2_CreateFile(file);
- DOF2_SetString(file,"Dono",Cama[id][Dono]);
- DOF2_SetFloat(file, "PosX", Cama[id][PosX]);
- DOF2_SetFloat(file, "PosY", Cama[id][PosY]);
- DOF2_SetFloat(file, "PosZ", Cama[id][PosZ]);
- DOF2_SetFloat(file, "RX", Cama[id][RX]);
- DOF2_SetFloat(file, "RY", Cama[id][RY]);
- DOF2_SetFloat(file, "RZ", Cama[id][RZ]);
- DOF2_SaveFile();
- return 1;
- }
- stock CarregarCama(id)
- {
- new file[64];
- format(file, sizeof(file), "Saves/Cama/%d.ini", id);
- if(DOF2_FileExists(file))
- {
- DOF2_GetString(file,"Dono", Cama[id][Dono]);
- Cama[id][PosX] = DOF2_GetFloat(file, "PosX" );
- Cama[id][PosY] = DOF2_GetFloat(file, "PosY" );
- Cama[id][PosZ] = DOF2_GetFloat(file, "PosZ" );
- Cama[id][RX] = DOF2_GetFloat(file, "RX" );
- Cama[id][RY] = DOF2_GetFloat(file, "RY" );
- Cama[id][RZ] = DOF2_GetFloat(file, "RZ" );
- Cama[id][ObjectG] = CreateDynamicObject(cama, Cama[id][PosX], Cama[id][PosY], Cama[id][PosZ], Cama[id][RX], Cama[id][RY], Cama[id][RZ]);
- Cama[id][Existe] = 1;
- }
- return 1;
- }
- stock CameraPrimeira(playerid,type)
- {
- if(type == 0)
- {
- SetCameraBehindPlayer(playerid);
- DestroyObject(firstperson[playerid]);
- }
- else if(type == 1)
- {
- firstperson[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(firstperson[playerid],playerid, 0.0, 0.0, 0.6, 0.0, 0.0, 0.0);
- AttachCameraToObject(playerid, firstperson[playerid]);
- }
- return type;
- }
- stock CreateTentP(playerid)
- {
- tentCount += 1;
- new Float:tentx,Float:tenty,Float:tentz, Float:a;
- GetPlayerPos(playerid,tentx,tenty,tentz);
- GetPlayerFacingAngle(playerid, a);
- Tent[tentCount][xTent] = tentx;
- Tent[tentCount][yTent] = tenty;
- Tent[tentCount][zTent] = tentz;
- Tent[tentCount][TentID] = CreateTent(tentx, tenty, tentz - 0.5,a);
- Tent[tentCount][tent_text] = Create3DTextLabel("* Tenda * \n {A9A9A9} Aperte N para ver o conteudo!",AMARELO_2, tentx, tenty, tentz, 20, 0);
- return 1;
- }
- CreateTent(Float:x, Float:y, Float:z, Float:rz)
- {
- Tent[tentCount][tent_SideR1] = CreateDynamicObject(19477,
- x + (0.49 * floatsin(-rz + 270.0, degrees)),
- y + (0.49 * floatcos(-rz + 270.0, degrees)),
- z,
- 0.0, 45.0, rz);
- Tent[tentCount][tent_SideR2] = CreateDynamicObject(19477,
- x + (0.48 * floatsin(-rz + 270.0, degrees)),
- y + (0.48 * floatcos(-rz + 270.0, degrees)),
- z,
- 0.0, 45.0, rz);
- Tent[tentCount][tent_SideL1] = CreateDynamicObject(19477,
- x + (0.49 * floatsin(-rz + 90.0, degrees)),
- y + (0.49 * floatcos(-rz + 90.0, degrees)),
- z,
- 0.0, -45.0, rz);
- Tent[tentCount][tent_SideL2] = CreateDynamicObject(19477,
- x + (0.48 * floatsin(-rz + 90.0, degrees)),
- y + (0.48 * floatcos(-rz + 90.0, degrees)),
- z,
- 0.0, -45.0, rz);
- Tent[tentCount][tent_EndF] = CreateDynamicObject(19475,
- x + (1.3 * floatsin(-rz, degrees)),
- y + (1.3 * floatcos(-rz, degrees)),
- z + 0.17,
- 45.0, 0.0, rz + 90);
- Tent[tentCount][tent_EndB] = CreateDynamicObject(19475,
- x - (1.3 * floatsin(-rz, degrees)),
- y - (1.3 * floatcos(-rz, degrees)),
- z + 0.17,
- 45.0, 0.0, rz + 90);
- Tent[tentCount][tent_PoleF] = CreateDynamicObject(19087,
- x + (1.3 * floatsin(-rz, degrees)),
- y + (1.3 * floatcos(-rz, degrees)),
- z + 0.48,
- 0.0, 0.0, rz);
- Tent[tentCount][tent_PoleB] = CreateDynamicObject(19087,
- x - (1.3 * floatsin(-rz, degrees)),
- y - (1.3 * floatcos(-rz, degrees)),
- z + 0.48,
- 0.0, 0.0, rz);
- SetDynamicObjectMaterial(Tent[tentCount][tent_SideR1], 0, 2068, "cj_ammo_net", "CJ_cammonet", 0);
- SetDynamicObjectMaterial(Tent[tentCount][tent_SideR2], 0, 3095, "a51jdrx", "sam_camo", 0);
- SetDynamicObjectMaterial(Tent[tentCount][tent_SideL1], 0, 2068, "cj_ammo_net", "CJ_cammonet", 0);
- SetDynamicObjectMaterial(Tent[tentCount][tent_SideL2], 0, 3095, "a51jdrx", "sam_camo", 0);
- SetDynamicObjectMaterial(Tent[tentCount][tent_EndF], 0, 2068, "cj_ammo_net", "CJ_cammonet", 0);
- SetDynamicObjectMaterial(Tent[tentCount][tent_EndB], 0, 2068, "cj_ammo_net", "CJ_cammonet", 0);
- SetDynamicObjectMaterial(Tent[tentCount][tent_PoleF], 0, 1270, "signs", "lamppost", 0);
- SetDynamicObjectMaterial(Tent[tentCount][tent_PoleB], 0, 1270, "signs", "lamppost", 0);
- }
- stock ApplyPlayerAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0)
- {
- ApplyAnimation(playerid, animlib, "null", fDelta, loop, lockx, locky, freeze, time, forcesync); // Pre-load animation library
- ApplyAnimation(playerid, animlib, "null", fDelta, loop, lockx, locky, freeze, 1, forcesync); // Pre-load animation library
- return ApplyAnimation(playerid, animlib, animname, fDelta, loop, lockx, locky, freeze, time, forcesync);
- }
- forward AtualizarPlayerStatsTexdraw();
- public AtualizarPlayerStatsTexdraw()
- {
- for ( new i ; i < MAX_PLAYERS ; ++i ){
- new stats[128];
- if (!IsPlayerConnected(i)) continue;
- if (!PlayerInfo[i][Logado]) continue;
- format(stats, sizeof(stats), "Mad:%d_Ped:%d~n~Met:%d_Par:%d~n~Bor:%d_Fru:%d~n~Pei:%d_Carn:%d~n~Cou:%d_Agu:%d", PlayerInfo[i][Madeira], PlayerInfo[i][Pedra], PlayerInfo[i][Metal], PlayerInfo[i][Parafuso], PlayerInfo[i][Borracha], PlayerInfo[i][Frutas], PlayerInfo[i][Peixe], PlayerInfo[i][Carne], PlayerInfo[i][Cloth], PlayerInfo[i][Agua]);
- PlayerTextDrawSetString(i, StatsTextDraw[i][1], stats);
- if (PlayerInfo[i][Skin] != PlayerInfo[i][SkinAnterior]) {
- PlayerTextDrawSetPreviewModel(i, StatsTextDraw[i][0], PlayerInfo[i][Skin]);
- PlayerTextDrawShow(i, StatsTextDraw[i][0]);
- PlayerInfo[i][SkinAnterior] = PlayerInfo[i][Skin];
- }
- }
- }
- forward HandleMaterialLoot(playerid, materialID);
- public HandleMaterialLoot(playerid, materialID){
- //new materials[5] = { Madeira, Pedra, Metal };
- switch (materialID){
- case 0: {
- if (PlayerInfo[playerid][Madeira] > def_LimiteMadeira)
- {
- PlayerInfo[playerid][Madeira] = def_LimiteMadeira;
- return 0;
- }
- }
- case 1: {
- if (PlayerInfo[playerid][Pedra] > def_LimitePedra)
- {
- PlayerInfo[playerid][Pedra] = def_LimitePedra;
- return 0;
- }
- }
- case 2: {
- if (PlayerInfo[playerid][Pedra] > def_LimitePedra)
- {
- PlayerInfo[playerid][Pedra] = def_LimitePedra;
- return 0;
- }
- }
- case 3: {
- if (PlayerInfo[playerid][Pedra] > def_LimitePedra)
- {
- PlayerInfo[playerid][Pedra] = def_LimitePedra;
- return 0;
- }
- }
- case 4: {
- if (PlayerInfo[playerid][Pedra] > def_LimitePedra)
- {
- PlayerInfo[playerid][Pedra] = def_LimitePedra;
- return 0;
- }
- }
- case 5: {
- if (PlayerInfo[playerid][Pedra] > def_LimitePedra)
- {
- PlayerInfo[playerid][Pedra] = def_LimitePedra;
- return 0;
- }
- }
- case 6: {
- if (PlayerInfo[playerid][Pedra] > def_LimitePedra)
- {
- PlayerInfo[playerid][Pedra] = def_LimitePedra;
- return 0;
- }
- }
- }
- return 1;
- }
- /* COISAS PARA FAZER:
- MUDAR TODOS OS COMANDOS PARA STRCMP - 100%
- NOVO MAPA - 100%
- ITENS PARA O INVENTARIO -
- NO MAPA CRIAR A ZONA DE RADIAÇÃO -
- NOVO LOGIN/REGISTRO -
- ARRUMAR PREÇOS, QUANTIDADES DE ITENS, ETC.. -
- CRIAR BAMBIS COM SISTEMA DE DEGOLAR -
- SISTEMA DE /CONSTRUIR EM DIALOG - 100%
- QUANDO CONSTRUIR ENTRAR DIRETO NO EDITOBJECT -
- CRIAR SISTEMA DE COLETE -
- CRIAR FORNALHA -
- CRIAR QUANDO MORRER AS OPÇÕES "AT A CAMP" OU "RESPAWN" -
- ARRUMAR OS PROGRESSBAR -
- ARRUMAS AS ESCRITAS "X5 WOOD" ETC.. -
- COLOCAR OS SONS DO RUST "DE COMER" -
- FAZER DINAMITES -
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement