Jump to content

GonzaloBuenosAires

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by GonzaloBuenosAires

  1. Yo solo hable con alguien que conzoco, la pregunta es quienes fueron los entrometidos?.Crees porque vengas sin argumentos a intentar defenderlo lo dejarás bien? que raro no? que siempre seas tú con la soberbia y con stus "amigos virtuales" que cuando ven un topic sienten la necesidad de responder... Pero Simple es mejor scripter que tú xDDDDDDDDDDDD. la realidad no cambia. Saludos y suerte.
  2. ¿Están todos locos aquí o qué?, miren nomás al niño con poco auto control. Sin comentarios reportado por grosero ya tome foto captura. 1) Quién te pidio consejos niño?. 2) Por qué te gusta entrometerte?. 3) Eres juéz que notas cosas para sentír el derecho de expresar tus pequeñas idéas?. 4) Te conozco y se muy bien que te encanta entrometerte o meter la "pata". Evitate los topic niño, saludos. Esto están irónico, es como estar habalndo con tu amigo en la calle y de pronto saltan unos salchichas a entrometerse y uno se queda, y este que le pasa?. Sin comentarios tenían que ser los de MTA... claro dejé que lo conozco al chico, pero los niños con su intento de moral nunca faltan. y la ignorancia siempre sobra como la soberbía, por lo menos pregunta che gonzalo conoces a simple que le hablas así? y ni eso tenes el derecho de preguntar porque no eres quien para hacerlo... no te quiero reportar por acoso o molestias, saludos y evitate los topic conmigo por lo menos.
  3. Lo conozco por eso el trato. He visto respuestas tuyas de por allí y te encanta meter la "pata"... Ni hablar...
  4. Me ayudan con este pequeño problema?, es un error que me tira estas lineas cuando me acerco a una tent (tienda de campaña) if getElementData(source,"vehicle") then if not getElementData(source,"deadVehicle") then showClientMenuItem("Vehicle",(getVehicleName(getElementData(source,"parent")) or "Tienda de Campaña"),getElementData(source,"parent")) -- ERROR AQUI setElementData(getLocalPlayer(),"currentCol",source) setElementData(getLocalPlayer(),"loot",true) setElementData(getLocalPlayer(),"lootname","Gear ("..(getVehicleName(getElementData(source,"parent")) or "Tienda de Campaña")..")") -- ERROR AQUI setNewbieInfo(true,"Equipo","Presiona J para acceder al inventario!",source) return end end Los errores son: Bad argument @ getvehiclename....
  5. Alguién me ayuda a solucionar el NETWORK TROUBLE?... =( Siempre que refrescan los items me da un lagaso... local h1,h2,h3 = debug.gethook() debug.sethook() timetorefresh = math.random(2700000,3600000) local itemTable = { farm = { { "Madera", 1463, 0.4, 0, 13 }, { "Vendaje", 1578, 0.5, 0, 4 }, { "Cantimplora de Agua LLena", 2683, 1, 0, 6 }, { "Lata de Pasta", 2770, 1, 0, 6 }, { "Lata de Judías", 2601, 1, 0, 6 }, { "Hamburguesa", 2768, 1, 0, 6 }, { "Latas Vacías", 2673, 0.5, 0, 12 }, { "Basura", 2675, 0.5, 0, 12 }, { "British Assault Pack", 2406, 1, 0, 2.5 -- }, -- { -- "Patrol Pack", -- 2407, -- 1, -- 0, -- 3.5 }, { "Vest Pouch Pack", 2408, 1, 0, 2.2 }, { "Coca Cola", 2647, 1, 0, 9 }, { "Bidón de Gasolina Vacío", 1650, 1, 0, 10 }, { "Cuchillo", 335, 1, 90, 4 }, { "Caja de Cerillas", 328, 0.4, 90, 8 }, { "Revólver", 348, 1, 90, 0.2 }, { "Morfina", 1579, 1, 0, 4 }, { "Tienda de Campaña", 1279, 1, 0, 0.5 }, { "Makarov PM", 346, 1, 90, 4 }, { "Analgésico", 2709, 3, 0, 3.5 }, { "M14 AIM", 357, 1, 90, 0.3 }, { "Remington 870", 349, 1, 90, 0.3 }, { "Rueda", 1073, 1, 0, 2 }, { "Depósito", 1008, 1, 0.8, 2 -- }, -- { -- "Civilian Clothing", -- 1241, -- 2, -- 0, -- 2.5 -- }, -- { -- "Civilian[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 -- }, -- { -- "Survivor[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 }, { "Mapa", 1277, 0.8, 90, 6 }, { "GPS", 2976, 0.15, 0, 2 } }, residential = { { "Caja de Cerillas", 328, 0.4, 90, 5 }, { "Madera", 1463, 0.4, 0, 5 -- }, -- { -- "Civilian[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 -- }, -- { -- "Survivor[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 }, { "Makarov PM", 346, 1, 90, 1.5 }, { "British Assault Pack", 2406, 1, 0, 1.5 -- }, -- { -- "Patrol Pack", -- 2407, -- 1, -- 0, -- 1.5 }, { "Vest Pouch Pack", 2408, 1, 0, 1.2 }, { "M9 SD", 347, 1, 90, 1.9 }, { "Remington 870", 349, 1, 90, 0.1 }, { "PDW", 352, 1, 90, 1 }, { "Cuchillo", 335, 1, 90, 3 }, { "Hacha", 339, 1, 90, 1 }, { "Pizza", 1582, 1, 0, 7 }, { "Coca Cola", 2647, 1, 0, 7 }, { "Bidón de Gasolina Vacío", 1650, 1, 0, 9 }, { "Bengala", 324, 1, 90, 9 }, { "Leche", 2856, 1, 0, 7 }, { "Assault Pack (ACU)", 3026, 1, 0, 4 }, { "Analgésico", 2709, 3, 0, 7 }, { "Latas Vacías", 2673, 0.5, 0, 12 }, { "Basura", 2675, 0.5, 0, 12 }, { "Granada", 342, 1, 0, 0.01 }, { "Revólver", 348, 1, 90, 0.4 }, { "Escopeta Recortada", 350, 1, 90, 0.3 }, { "SPAZ-12 Combat Shotgun", 351, 1, 90, 0.4 }, { "MP5A5", 353, 1, 90, 0.4 }, { "Reloj", 2710, 1, 0, 3 }, { "Bolsa Térmica", 1576, 5, 0, 6 }, { "Alambrada", 933, 0.25, 0, 1 }, { "M14 AIM", 357, 1, 90, 0.3 }, { "Alice Pack", 1248, 1, 0, 1.5 }, { "Rueda", 1073, 1, 0, 1 }, { "Depósito", 1008, 0.8, 0, 1 }, { "Morfina", 1579, 1, 0, 2 -- }, -- { -- "Civilian Clothing", -- 1241, -- 2, -- 0, -- 9 }, { "Mapa", 1277, 0.8, 90, 10 }, { "GPS", 2976, 0.15, 0, 3 }, { "Lata de Pasta", 2770, 1, 0, 7 }, { "Lata de Judías", 2601, 1, 0, 7 }, { "Hamburguesa", 2768, 1, 0, 7 }, { "Palo de Golf", 333, 1, 90, 3 }, { "Bate", 336, 1, 90, 3 }, { "Pala", 337, 1, 90, 3 } }, military = { { "Caja de Cerillas", 328, 0.4, 90, 2 }, { "Makarov PM", 346, 1, 90, 5 }, { "M9 SD", 347, 1, 90, 4 }, { "Remington 870", 349, 1, 90, 3 }, { "PDW", 352, 1, 90, 4 }, { "Cuchillo", 335, 1, 90, 2.4 }, { "Hacha", 339, 1, 90, 2.1 }, { "Pizza", 1582, 1, 0, 2 }, { "Coca Cola", 2647, 1, 0, 2 }, { "Bidón de Gasolina Vacío", 1650, 1, 0, 4 }, { "Bengala", 324, 1, 90, 4 }, { "Leche", 2856, 1, 0, 1 }, { "Analgésico", 2709, 3, 0, 4 }, { "Latas Vacías", 2673, 0.5, 0, 12 }, { "Basura", 2675, 0.5, 0, 12 }, { "Granada", 342, 1, 0, 0.5 }, { "Escopeta Recortada", 350, 1, 90, 2.3 }, { "SPAZ-12 Combat Shotgun", 351, 1, 90, 2.3 }, { "MP5A5", 353, 1, 90, 2.8 }, { "Reloj", 2710, 1, 0, 4 }, { "Bolsa Térmica", 1576, 5, 0, 3 }, { "Alambrada", 933, 0.25, 0, 1 }, { "M14 AIM", 357, 1, 90, 3.5 }, { "Alice Pack", 1248, 1, 0, 4 }, { "Visión Nocturna", 368, 1, 90, 4 }, { "Prismáticos", 369, 1, 0, 4 }, { "Rueda", 1073, 1, 0, 2 }, { "Depósito", 1008, 0.8, 0, 2 }, { "Morfina", 1579, 1, 0, 4 -- }, -- { -- "Camouflage Clothing", -- 1247, -- 2, -- 0, -- 4.5 -- }, -- { -- "Civilian Clothing", -- 1241, -- 2, -- 0, -- 3 }, { "AKS-74 Kobra", 355, 1, 90, 3.8 }, { "GPS", 2976, 0.15, 0, 3 }, { "Mapa", 1277, 0.8, 90, 7 }, { "Caja de Herramientas", 2969, 0.5, 0, 1 }, { "Motor", 929, 0.3, 0, 2 }, { "Tienda de Campaña", 1279, 1, 0, 4.5 -- }, -- { -- "Ghillie Suit", -- 1213, -- 2, -- 0, -- 0.3 -- }, -- { -- "Ghillie[F] Suit", -- 1213, -- 2, -- 0, -- 0.4 }, { "M4A3 CCO", 356, 1, 90, 2.4 }, { "CZ 550", 358, 1, 90, 0.4 }, { "Visión Térmica", 369, 1, 90, 3 }, { "Assault Pack (ACU)", 3026, 1, 0, 5 }, { "Czech Backpack", 2472, 1, 0, 2 }, { "Dispositivo de Radio", 330, 1, 0, 6 }, { "Coyote Backpack", 1575, 1, 0, 0.9 }, { "CMRA Backpack", 2405, -- ID DO OBJETO QUE IRÁ FICAR NAS COSTAS, E O QUE NÓS IREMOS SUBISTITUIR PELA BACKPACK 1, 0, 5 -- NIVEL DE RARIDADE DA BACKPACK }, { "Army Backpack", 2404, -- ID DO OBJETO QUE IRÁ FICAR NAS COSTAS, E O QUE NÓS IREMOS SUBISTITUIR PELA BACKPACK 1, 0, 5 -- NIVEL DE RARIDADE DA BACKPACK -- }, -- { -- "Civilian[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 -- }, -- { -- "Survivor[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 }, { "Pala", 337, 1, 90, 1 } }, industrial = { { "Alambrada", 933, 0.25, 0, 7 }, { "Caja de Herramientas", 2969, 0.5, 0, 3 }, { "Rueda", 1073, 1, 0, 4 }, { "Motor", 929, 0.3, 0, 3.5 }, { "Depósito", 1008, 1, 0.8, 4 }, { "Remington 870", 349, 1, 90, 3 }, { "Cantimplora de Agua LLena", 2683, 1, 0, 4 }, { "Lata de Pasta", 2770, 1, 0, 4 }, { "Lata de Judías", 2601, 1, 0, 4 }, { "Hamburguesa", 2768, 1, 0, 4 }, { "Latas Vacías", 2673, 0.5, 0, 12 }, { "Basura", 2675, 0.5, 0, 10 }, { "Coca Cola", 2647, 1, 0, 4 }, { "Bidón de Gasolina Vacío", 1650, 1, 0, 6 }, { "Bidón de Gasolina LLeno", 1650, 1, 0, 1.5 }, { "Mapa", 1277, 0.8, 90, 3 }, { "Reloj", 2710, 1, 0, 2 }, { "Caja de Cerillas", 328, 0.4, 90, 5 }, { "Madera", 1463, 0.4, 0, 2 }, { "Makarov PM", 346, 1, 90, 1.5 }, { "PDW", 352, 1, 90, 2 }, { "Cuchillo", 335, 1, 90, 2 }, { "British Assault Pack", 2406, 1, 0, 2.5 -- }, -- { -- "Patrol Pack", -- 2407, -- 1, -- 0, -- 3.5 }, { "Vest Pouch Pack", 2408, 1, 0, 5.2 }, { "Hacha", 339, 1, 90, 1.5 }, { "Pizza", 1582, 1, 0, 4 }, { "Bengala", 324, 1, 90, 5 }, { "Leche", 2856, 1, 0, 4 }, { "Assault Pack (ACU)", 3026, 1, 0, 6 }, { "Coyote Backpack", 1575, 1, 0, 0.5 }, { "Dispositivo de Radio", 330, 1, 0, 6 }, { "Palo de Golf", 333, 1, 90, 1.5 }, { "Bate", 336, 1, 90, 1.5 }, { "Pala", 337, 1, 90, 1.5 -- }, -- { -- "Civilian[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 -- }, -- { -- "Survivor[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 }, { "Visión Nocturna", 368, 1, 90, 1.5 } }, supermarket = { { "Carne Cruda", 2804, 0.5, 90, 8 }, { "Caja de Cerillas", 328, 0.4, 90, 5 }, { "Madera", 1463, 0.4, 0, 5 }, { "Makarov PM", 346, 1, 90, 3.5 }, { "PDW", 352, 1, 90, 2 }, { "Cuchillo", 335, 1, 90, 3 }, { "Hacha", 339, 1, 90, 2.1 }, { "Pizza", 1582, 1, 0, 7 }, { "Coca Cola", 2647, 1, 0, 7 }, { "Bidón de Gasolina Vacío", 1650, 1, 0, 5 }, { "Bengala", 324, 1, 90, 6 }, { "Leche", 2856, 1, 0, 7 }, { "Assault Pack (ACU)", 3026, 1, 0, 6 }, { "Lata de Pasta", 2770, 1, 0, 7 }, { "Lata de Judías", 2601, 1, 0, 7 }, { "Hamburguesa", 2768, 1, 0, 7 }, { "Analgésico", 2709, 3, 0, 7 }, { "Latas Vacías", 2673, 0.5, 0, 12 }, { "Basura", 2675, 0.5, 0, 12 }, { "MP5A5", 353, 1, 90, 0.5 }, { "Reloj", 2710, 1, 0, 3 }, { "Bolsa Térmica", 1576, 5, 0, 6 }, { "Alambrada", 933, 0.25, 0, 1 }, { "M14 AIM", 357, 1, 90, 0.2 }, { "Alice Pack", 1248, 1, 0, 0.5 }, { "Rueda", 1073, 1, 0, 1 }, { "Depósito", 1008, 1, 0.8, 2 }, { "Morfina", 1579, 1, 0, 2 -- }, -- { -- "Civilian Clothing", -- 1241, -- 2, -- 0, -- 3.5 }, { "Mapa", 1277, 0.8, 90, 4 }, { "GPS", 2976, 0.15, 0, 1 }, { "Dispositivo de Radio", 330, 1, 0, 6 }, { "Palo de Golf", 333, 1, 90, 1.9 }, { "Bate", 336, 1, 90, 1.4 -- }, -- { -- "Civilian[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 -- }, -- { -- "Survivor[F] Clothing", -- 1241, -- 2, -- 0, -- 2.5 }, { "Pala", 337, 1, 90, 0.3 } }, other = { { "Carne Cruda", 2804, 0.5, 90 }, { "Carne Cocinada", 2806, 0.5, 90 }, { "Bidón de Gasolina LLeno", 1650, 1, 0 }, { "Cantimplora de Agua Vacía", 2683, 1, 0 -- }, -- { -- "Survivor Clothing", -- 1577, -- 2, -- 0 }, { "Visión Nocturna", 368, 1, 90 }, { "Visión Térmica", 369, 1, 90 }, { "Remington 870 Cartuchos", 2358, 2, 0 }, { "Esc. Recortada Cartuchos", 2358, 2, 0 }, { "SPAZ-12 Pellet", 2358, 2, 0 }, { "MP5A5 Mag", 2358, 2, 0 }, { "30Rnd. AK", 1271, 2, 0 }, { "30Rnd. STANAG", 1271, 2, 0 }, { "Makarov Mun.", 3013, 2, 0 }, { "M9SD Mun.", 3013, 2, 0 }, { ".45 ACP", 3013, 2, 0 }, { "CZ 550 Mag", 2358, 2, 0 }, { "DMR Mun.", 2358, 2, 0 }, { "PDW Mag", 2041, 2, 0 }, { "MP5A5 Mag", 2041, 2, 0 }, { "Caja de Cerillas", 328, 0.4, 90, 5 }, { "Madera", 1463, 0.4, 0, 5 }, { "Makarov PM", 346, 1, 90, 3.5 }, { "PDW", 352, 1, 90, 2 }, { "Cuchillo", 335, 1, 90, 2.5 }, { "Hacha", 339, 1, 90, 1.8 }, { "Pizza", 1582, 1, 0, 7 }, { "Coca Cola", 2647, 1, 0, 7 }, { "Bidón de Gasolina Vacío", 1650, 1, 0, 5 }, { "Bengala", 324, 1, 90, 6 }, { "Leche", 2856, 1, 0, 5 }, { "Assault Pack (ACU)", 3026, 1, 0, 6 }, { "Analgésico", 2709, 3, 0, 7 }, { "Latas Vacías", 2673, 0.5, 0, 12 }, { "Basura", 2675, 0.5, 0, 12 }, { "MP5A5", 353, 1, 90, 1.5 }, { "Reloj", 2710, 1, 0, 3 }, { "Bolsa Térmica", 1576, 5, 0, 6 }, { "Alambrada", 933, 0.25, 0, 1 }, { "M14 AIM", 357, 1, 90, 1.5 }, { "Alice Pack", 1248, 1, 0, 1.5 }, { "Coyote Backpack", 1575, 1, 0, 0.7 }, { "Rueda", 1073, 1, 0, 1 }, { "Depósito", 1008, 1, 0.8, 4 }, { "Morfina", 1579, 1, 0, 2 -- }, -- { -- "Civilian Clothing", -- 1241, -- 2, -- 0, -- 3.5 }, { "Mapa", 1277, 0.8, 90, 4 }, { "Caja de Herramientas", 2969, 0.5, 0, 3 }, { "Motor", 929, 0.3, 0, 3.5 }, { "Remington 870", 349, 1, 90, 2 }, { "Cantimplora de Agua LLena", 2683, 1, 0, 4 }, { "M9 SD", 347, 1, 90, 5 }, { "Granada", 342, 1, 0, 0.5 }, { "Escopeta Recortada", 350, 1, 90, 2 }, { "SPAZ-12 Combat Shotgun", 351, 1, 90, 1.9 }, { "Prismáticos", 369, 1, 0, 4 -- }, -- { -- "Camouflage Clothing", -- 1247, -- 2, -- 0, -- 4.5 }, { "AKS-74 Kobra", 355, 1, 90, 0.9 }, { "M136 Rocket Launcher", 359, 1, 90, 0 -- }, -- { -- "Ghillie Suit", -- 1213, -- 2, -- 0, -- 0.01 }, { "M4A3 CCO", 356, 1, 90, 0.9 }, { "CZ 550", 358, 1, 90, 0.3 }, { "Heat-Seeking RPG", 360, 1, 90, 0 }, { "Vendaje", 1578, 0.5, 0, 4 }, { "Lata de Pasta", 2770, 1, 0, 5 }, { "Lata de Judías", 2601, 1, 0, 6 }, { "Hamburguesa", 2768, 1, 0, 2 }, { "Tienda de Campaña", 1279, 1, 0, 0.5 }, { "Makarov PM", 346, 1, 90, 3 }, { "Revólver", 348, 1, 90, 3 }, { "GPS", 2976, 0.15, 0, 1 }, { "Kit Médico", 2891, 2.2, 0 }, { "Bolsa de Sangre", 1580, 1, 0 }, { "Dispositivo de Radio", 2966, 0.5, 0, 5 }, { "Palo de Golf", 333, 1, 90, 1.9 }, { "Bate", 336, 1, 90, 1.4 }, { "British Assault Pack", 2406, 1, 0, 2.5 -- }, -- { -- "Patrol Pack", -- 2407, -- 1, -- 0, -- 3.5 }, { "Vest Pouch Pack", 2408, 1, 0, 5.2 -- }, -- { -- "Civilian[F] Clothing", -- 1241, -- 2, -- 0, -- 3.5 -- }, -- { -- "Ghillie[F] Suit", -- 1241, -- 2, -- 0, -- 2.5 -- }, -- { -- "Survivor[F] Clothing", -- 1241, -- 2, -- 0, -- 3.5 }, { "Pala", 337, 1, 90, 1.5 } } } weaponAmmoTable = { ["Makarov Mun."] = { {"Makarov PM", 22} }, ["M9SD Mun."] = { {"M9 SD", 23} }, [".45 ACP"] = { { "Revólver", 24 } }, ["PDW Mag"] = { {"PDW", 28} }, ["MP5A5 Mag"] = { {"MP5A5", 29} }, ["30Rnd. AK"] = { {"AKS-74 Kobra", 30} }, ["30Rnd. STANAG"] = { {"M4A3 CCO", 31} }, ["Remington 870 Cartuchos"] = { { "Remington 870", 25 } }, ["Esc. Recortada Cartuchos"] = { { "Escopeta Recortada", 26 } }, ["SPAZ-12 Pellet"] = { { "SPAZ-12 Combat Shotgun", 27 } }, ["CZ 550 Mag"] = { {"CZ 550", 34} }, ["DMR Mun."] = { { "M14 AIM", 33 } }, ["M136 Rocket"] = { { "Heat-Seeking RPG", 36 }, { "M136 Rocket Launcher", 35 } }, ["others"] = { {"Paracaídas", 46}, {"Satchel", 39}, {"Bomba de Humo", 17}, {"Granada", 16}, { "Cuchillo", 4 }, {"Hacha", 8}, {"Prismáticos", 43}, { "Bate", 5 }, {"Palo de Golf", 2}, {"Pala", 6}, { "Dispositivo de Radio", 1 } } } function getWeaponAmmoType(weaponName, notOthers) if not notOthers then for i, weaponData in ipairs(weaponAmmoTable.others) do if weaponName == weaponData[1] then return weaponData[1], weaponData[2] end end end for i, weaponData in ipairs(weaponAmmoTable["Makarov Mun."]) do if weaponName == weaponData[1] then return "Makarov Mun.", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["M9SD Mun."]) do if weaponName == weaponData[1] then return "M9SD Mun.", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable[".45 ACP"]) do if weaponName == weaponData[1] then return ".45 ACP", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["PDW Mag"]) do if weaponName == weaponData[1] then return "PDW Mag", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["MP5A5 Mag"]) do if weaponName == weaponData[1] then return "MP5A5 Mag", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["30Rnd. AK"]) do if weaponName == weaponData[1] then return "30Rnd. AK", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["30Rnd. STANAG"]) do if weaponName == weaponData[1] then return "30Rnd. STANAG", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["Remington 870 Cartuchos"]) do if weaponName == weaponData[1] then return "Remington 870 Cartuchos", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["Esc. Recortada Cartuchos"]) do if weaponName == weaponData[1] then return "Esc. Recortada Cartuchos", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["SPAZ-12 Pellet"]) do if weaponName == weaponData[1] then return "SPAZ-12 Pellet", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["CZ 550 Mag"]) do if weaponName == weaponData[1] then return "CZ 550 Mag", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["DMR Mun."]) do if weaponName == weaponData[1] then return "DMR Mun.", weaponData[2] end end for i, weaponData in ipairs(weaponAmmoTable["M136 Rocket"]) do if weaponName == weaponData[1] then return "M136 Rocket", weaponData[2] end end return false end function createItemPickup(item, x, y, z, tableStringName) if item and x and y and z then do local object = createObject(itemTable[tostring(tableStringName)][item][2], x, y, z - 0.875, itemTable[tostring(tableStringName)][item][4], 0, math.random(0, 360)) setObjectScale(object, itemTable[tostring(tableStringName)][item][3]) setElementCollisionsEnabled(object, false) setElementFrozen(object, true) local col = createColSphere(x, y, z, 0.75) setElementData(col, "item", itemTable[tostring(tableStringName)][item][1]) setElementData(col, "parent", object) setTimer(function() if isElement(col) then destroyElement(col) destroyElement(object) end end, 900000, 1) return object end end end function table.size(tab) local length = 0 for _ in pairs(tab) do length = length + 1 end return length end function math.percentChance(percent, repeatTime) local hits = 0 for i = 1, repeatTime do local number = math.random(0, 200) / 2 if percent >= number then hits = hits + 1 end end return hits end function createItemLoot(lootPlace, x, y, z, id) col = createColSphere(x, y, z, 1.25) setElementData(col, "itemloot", true) setElementData(col, "parent", lootPlace) setElementData(col, "MAX_Slots", 12) for i, item in ipairs(itemTable[lootPlace]) do local value = math.percentChance(item[5], math.random(1, 2)) setElementData(col, item[1], value) local ammoData, weapID = getWeaponAmmoType(item[1], true) if ammoData and value > 0 then setElementData(col, ammoData, math.random(1, 2)) end end refre:~emLoot(col, lootPlace) return col end function refre:~emLoot(col, place) local objects = getElementData(col, "objectsINloot") if objects then if objects[1] ~= nil then destroyElement(objects[1]) end if objects[2] ~= nil then destroyElement(objects[2]) end if objects[3] ~= nil then destroyElement(objects[3]) end end local counter = 0 local obejctItem = {} for i, item in ipairs(itemTable.other) do if getElementData(col, item[1]) and getElementData(col, item[1]) > 0 then if counter == 3 then break end counter = counter + 1 local x, y, z = getElementPosition(col) obejctItem[counter] = createObject(item[2], x + math.random(-1, 1), y + math.random(-1, 1), z - 0.875, item[4]) setObjectScale(obejctItem[counter], item[3]) setElementCollisionsEnabled(obejctItem[counter], false) setElementFrozen(obejctItem[counter], true) end end if obejctItem[1] == nil then local x, y, z = getElementPosition(col) obejctItem[1] = createObject(1463, x + math.random(-1, 1), y + math.random(-1, 1), z - 0.875, 0) setObjectScale(obejctItem[1], 0) setElementCollisionsEnabled(obejctItem[1], false) setElementFrozen(obejctItem[1], true) end if obejctItem[2] == nil then local x, y, z = getElementPosition(col) obejctItem[2] = createObject(1463, x + math.random(-1, 1), y + math.random(-1, 1), z - 0.875, 0) setObjectScale(obejctItem[2], 0) setElementCollisionsEnabled(obejctItem[2], false) setElementFrozen(obejctItem[2], true) end if obejctItem[3] == nil then local x, y, z = getElementPosition(col) obejctItem[3] = createObject(1463, x + math.random(-1, 1), y + math.random(-1, 1), z - 0.875, 0) setObjectScale(obejctItem[3], 0) setElementCollisionsEnabled(obejctItem[3], false) setElementFrozen(obejctItem[3], true) end setElementData(col, "objectsINloot", { obejctItem[1], obejctItem[2], obejctItem[3] }) end addEvent("refre:~emLoot", true) addEventHandler("refre:~emLoot", getRootElement(), refre:~emLoot) function createPickupsOnServerStart() iPickup = 0 for i, pos in ipairs(pickupPositions.residential) do iPickup = iPickup + 1 createItemLoot("residential", pos[1], pos[2], pos[3], iPickup) end setTimer(createPickupsOnServerStart2, 5000, 1) end function createPickupsOnServerStart2() for i, pos in ipairs(pickupPositions.industrial) do iPickup = iPickup + 1 createItemLoot("industrial", pos[1], pos[2], pos[3], iPickup) end setTimer(createPickupsOnServerStart3, 6000, 1) end function createPickupsOnServerStart3() for i, pos in ipairs(pickupPositions.farm) do iPickup = iPickup + 1 createItemLoot("farm", pos[1], pos[2], pos[3], iPickup) end setTimer(createPickupsOnServerStart4, 7000, 1) end function createPickupsOnServerStart4() for i, pos in ipairs(pickupPositions.supermarket) do iPickup = iPickup + 1 createItemLoot("supermarket", pos[1], pos[2], pos[3], iPickup) end setTimer(createPickupsOnServerStart5, 8000, 1) end function createPickupsOnServerStart5() for i, pos in ipairs(pickupPositions.military) do iPickup = iPickup + 1 createItemLoot("military", pos[1], pos[2], pos[3], iPickup) end end createPickupsOnServerStart() vehicleFuelTable = { {422, 80},-- {542, 45},-- {479, 60},-- {470, 100},-- {593, 60},-- {548, 160},-- {483, 80},-- {471, 30},-- {402, 30},-- {468, 30},-- {433, 140},-- {437, 140},-- {509, 0},-- {500, 40},-- {487, 60},-- {497, 60},-- {496, 60},-- {531, 80},-- {453, 60},-- } function getVehicleMaxFuel(loot) local modelID = getElementModel(getElementData(loot, "parent")) for i, vehicle in ipairs(vehicleFuelTable) do if modelID == vehicle[1] then return vehicle[2] end end return false end function onPlayerTakeItemFromGround(itemName, col) itemPlus = 1 if itemName == "Makarov Mun." then itemPlus = 7 elseif itemName == "M9SD Mun." then itemPlus = 15 elseif itemName == ".45 ACP" then itemPlus = 7 elseif itemName == "PDW Mag" then itemPlus = 30 elseif itemName == "MP5A5 Mag" then itemPlus = 20 elseif itemName == "30Rnd. AK" then itemPlus = 30 elseif itemName == "30Rnd. STANAG" then itemPlus = 20 elseif itemName == "Remington 870 Cartuchos" then itemPlus = 7 elseif itemName == "Esc. Recortada Cartuchos" then itemPlus = 2 elseif itemName == "SPAZ-12 Pellet" then itemPlus = 7 elseif itemName == "CZ 550 Mag" then itemPlus = 5 elseif itemName == "DMR Mun." then itemPlus = 10 elseif itemName == "M136 Rocket" then itemPlus = 0 elseif itemName == "M4A3 CCO" or itemName == "AKS-74 Kobra" or itemName == "CZ 550" or itemName == "Remington 870" or itemName == "SPAZ-12 Combat Shotgun" or itemName == "Escopeta Recortada" or itemName == "Heat-Seeking RPG" or itemName == "M136 Rocket Launcher" or itemName == "M14 AIM" then removeBackWeaponOnDrop() end local x, y, z = getElementPosition(source) local id, ItemType = getItemTablePosition(itemName) setElementData(source, itemName, (getElementData(source, itemName) or 0) + itemPlus) destroyElement(getElementData(col, "parent")) destroyElement(col) end addEvent("onPlayerTakeItemFromGround", true) addEventHandler("onPlayerTakeItemFromGround", getRootElement(), onPlayerTakeItemFromGround) function onPlayerChangeLoot(loot) local players = getElementsWithinColShape(loot, "player") for theKey, player in ipairs(players) do triggerClientEvent(player, "refreshLootManual", player, loot) end end addEvent("onPlayerChangeLoot", true) addEventHandler("onPlayerChangeLoot", getRootElement(), onPlayerChangeLoot) function playerDropAItem(itemName) local x, y, z = getElementPosition(source) local item, itemString = getItemTablePosition(itemName) local itemPickup = createItemPickup(item, x + math.random(-1.25, 1.25), y + math.random(-1.25, 1.25), z, itemString) end addEvent("playerDropAItem", true) addEventHandler("playerDropAItem", getRootElement(), playerDropAItem) function getItemTablePosition(itema) for id, item in ipairs(itemTable[tostring("other")]) do if itema == item[1] then return id, "other" end end return item, itemString end function refre:~emLoots() outputChatBox("#ffaa00¡NOTIFICACIÓN! #ffffff - ¡Refrescando puntos de looteos, gracias por su paciencia!.", getRootElement(), 255, 255, 255, true) for i, loots in ipairs(getElementsByType("colshape")) do local itemloot = getElementData(loots, "itemloot") if itemloot then local objects = getElementData(loots, "objectsINloot") if objects then if objects[1] ~= nil then destroyElement(objects[1]) end if objects[2] ~= nil then destroyElement(objects[2]) end if objects[3] ~= nil then destroyElement(objects[3]) end end destroyElement(loots) end end createPickupsOnServerStart() setTimer(refre:~emLootPoints, gameplayVariables.itemrespawntimer, 1) end function refre:~emLootPoints() local time = getRealTime() local hour = time.hour outputChatBox("#ff2200¡NOTIFICACIÓN! #ffffff - ¡Falta 1 minuto para que se refresquen los puntos de looteos!.", getRootElement(), 255, 255, 255, true) setTimer(refre:~emLoots, 60000, 1) end setTimer(refre:~emLootPoints, gameplayVariables.itemrespawntimer, 1) debug.sethook(_,h1,h2,h3) addCommandHandler( "refresh_loot", refre:~emLoots, true )
  6. Dios, tenías razón, tanto dolor de cabeza.Solamente me faltó agregar a la tabla las mochilas nada más... Gracias!!!!!!!!!!!!!!!!!!!
  7. Mi sistema anterior, era que antes la mochila se equipaba automáticamente... Modifiqué ese función para que la mochila no se equipe automáticamente sino haciendo un click derecho.... Eso me quedó bien pero por algún motivo cuando te mueres la mochila no desaparece tu inventario te la puedes volver a equipar. Lo mismo sucede cuando vas looteando, es como que agarrase una doble mochila enrealidad.... y yo postie eso porque fué lo que modifiqué!!!. O sino esta!!!... línea que se me olvido postear que también modifiqué: Puede ser esto el problema? tambien tuve que modificar aquí!!! Ayudame por favor... ------------------------------------------------------------------------ elseif itemName == "Survival" then if getElementData(getLocalPlayer(), "MAX_Slots") == 8 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 8 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",8) refreshInventory() itemPlus = 0 ----------------------------------------------- elseif itemName == "Patrol Pack" then if getElementData(getLocalPlayer(), "MAX_Slots") == 12 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 12 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",12) refreshInventory() itemPlus = 0 ------------------------------------------------------------------------ elseif itemName == "Survival Pack (ACU)" then if getElementData(getLocalPlayer(), "MAX_Slots") == 16 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 16 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",16) refreshInventory() itemPlus = 0 -------------------------------------------------------------------------- elseif itemName == "Vest Pouch Pack" then if getElementData(getLocalPlayer(), "MAX_Slots") == 14 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 14 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",14) refreshInventory() itemPlus = 0 --------------------------------------------------------------------------- elseif itemName == "Assault Pack (ACU)" then if getElementData(getLocalPlayer(), "MAX_Slots") == 18 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 18 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",18) refreshInventory() itemPlus = 0 ---------------------------------------------------------------------------- elseif itemName == "Alice Pack" then if getElementData(getLocalPlayer(), "MAX_Slots") == 22 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 22 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",22) refreshInventory() itemPlus = 0 ---------------------------------------------------------------------------- elseif itemName == "Coyote Backpack" then if getElementData(getLocalPlayer(), "MAX_Slots") == 36 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 36 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",36) refreshInventory() itemPlus = 0 ----------------------------------------------------------------------------- elseif itemName == "British Assault Pack" then if getElementData(getLocalPlayer(), "MAX_Slots") == 26 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 26 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",26) refreshInventory() itemPlus = 0 ------------------------------------------------------------------------------ elseif itemName == "Czech Backpack" then if getElementData(getLocalPlayer(), "MAX_Slots") == 30 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 30 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",30) refreshInventory() itemPlus = 0 ------------------------------------------------------------------------------- elseif itemName == "CMRA Backpack" then if getElementData(getLocalPlayer(), "MAX_Slots") == 70 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 70 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",70) refreshInventory() itemPlus = 0 -------------------------------------------------------------------------------- elseif itemName == "Army Backpack" then if getElementData(getLocalPlayer(), "MAX_Slots") == 50 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "Ya Llevaba Esta Mochila!", 255, 22, 0) return end if getElementData(getLocalPlayer(), "MAX_Slots") > 50 then --triggerEvent("displayClientInfo", getLocalPlayer(), "Inventario", "La Mochila que Llevas Tienes mas Slot que Esta!", 255, 22, 0) return end setElementData(getLocalPlayer(),"MAX_Slots",50) refreshInventory() itemPlus = 0 ------------------------------------------------------------------------ end end
  8. me das una mano con esto por favor?. https://forum.multitheftauto.com/topic/99001-buenas-gente-quisiera-saber-esto/?tab=comments#comment-878304
  9. Hola solid, te pasas por mi publicación así ya me quito el dolor de cabeza por favor? Ayudame con esto por favor:
  10. Mira recien recien testie y me tira este error cuando el sonido suena: Bad argument @ ´getElementPosition´ Expected element at argument 1, got nil que significa?. Es verdad era al pedo usar getElementPosition , sólo tenía que quitar esa línea gracias de nuevo Alex y te hable al privado.
  11. Presicamente no quiero que lo escuchen todos!!!.... Ya que es independiente de cada usuario... A que me refiero? Es que si un usuario tiene por debajo de 5000 mil de blood a el se le oye el sound.... lo que busco es que los sonidos sean locales y no global. Por eso usar esto: local Zx,Zy,Zz = getElementPosition( ped ) local randnum = math.random(1,5) local sound = playSound("sounds/aliento"..randnum..".ogg", false) Pero me da error y nose porque =(, funciona, pero cuando el sonido suena genera un error en el debugscript 3...
  12. Mira esto genio.... Esta es la típica función en donde si tienes poca VIDA (BLOOD) o estás infectado? suena en LOCAL, un .ogg Pero el SONIDO solamente lo oye el jugador y no todos los usuarios por eso esta -- línea local Zx,Zy,Zz = getElementPosition( ped ) como por ejemplo esto: Esta funcion me da error de getElementPosition - function aliento () if getElementData(localPlayer, "blood") and getElementData(getLocalPlayer(), "blood") <= 5000 and not getElementData(getLocalPlayer(), "isDead") == true then local Zx,Zy,Zz = getElementPosition( ped ) local randnum = math.random(1,5) local sound = playSound("sounds/aliento"..randnum..".ogg", false) setSoundMaxDistance(sound, 20) end end setTimer(aliento, 10000, 0) function suspenso () if getElementData(localPlayer, "blood") and getElementData(getLocalPlayer(), "blood") <= 3000 and not getElementData(getLocalPlayer(), "isDead") == true then local Zx,Zy,Zz = getElementPosition( ped ) local sound = playSound("sounds/suspenso.ogg", false) setSoundMaxDistance(sound, 20) end end setTimer(suspenso, 9000, 0) Seguramente ya has visto esta misma función antes.!!!!
  13. Si es mía la función, pero yo no la cree sólo tomé de ejemplo otros servers y añadí la misma función dentro de mi survivorSystem, etc.. ya sabes!... Oye eres de Argentina? O de dónde eres? porque si eres scripter de pago quiero trabajar contigo en mi server...
  14. Nunca mencioné que sea mío o sí?. Simplemente pedí ayuda pero como noto agresividad te reportare al mod. Saludos =D
  15. Se supone que el sonido es LOCAL para no molestar a los demás usuarios cuando el sound se ejecuta. local Zx,Zy,Zz = getElementPosition( ped ) local sound = playSound("sounds/respiracion.ogg", Zx, Zy, Zz, false) local Zx,Zy,Zz = getElementPosition( ped ) y lo peor que es en el debug script me dice que tengo un error con getElementPosition ---
  16. Solamente el usuario lo va a oír cierto? no todos verdad? Genio por favor pasate por aca me haces el honor?...
  17. Como es esto? tengo estas funciones la primera es la función de que si te rompes los huesos no puedes correr ni saltar... La segunda es la función de que si tieens sueño no puedes correr pero SI saltar... Cúal es el problema? pues es que cuando te rompes los huesos puedes correr pero no saltar.... La verdad no se que pasa es como si estuvieran mezcladas las funciones (mal colocadas nosé). function checkBrokenbone() if getElementData(getLocalPlayer(), "logedin") then if getElementData(getLocalPlayer(), "brokenbone") or getElementData(localPlayer,"sleep") <= 0 then if not isPedDucked(getLocalPlayer()) then end toggleControl("jump", false) toggleControl("sprint", false) else toggleControl("jump", true) toggleControl("sprint", true) end end end setTimer(checkBrokenbone, 1400, 0) --------------------------------------------------- --sleep function checkSleeping() if getElementData(getLocalPlayer(),"logedin") then if getElementData(getLocalPlayer(),"sleep") <= 20 then if not isPedDucked(getLocalPlayer()) then end toggleControl ( "sprint", false ) else toggleControl ( "sprint", true ) end end end setTimer(checkSleeping,1400,0) Se supone que la idéa sería que si me rompo los huesos no pueda correr ni saltar y cuando tenga sueño no pueda correr pero SI saltar.... Cúal es la solución chicos?????
  18. Una consulta chicos como hago para que este local sounds sea infinito ya que cuando activo esta script solo se reproduce una vez y luego se corta.. function onResourceStart() local Zx,Zy,Zz = getElementPosition( ped ) --- Puede ser que halla un mal argumento aquí? porque el debugscript 3 me dice que sí!!!... local sound = playSound("sounds/respiracion.ogg", Zx, Zy, Zz, false) setSoundMaxDistance(sound, 20) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart)
  19. Sería mucho pedirte si me hicierasu na script de regalo para mi server que cuando tengas pocas balas en tu arma te aparezca una imagen en el centro de tu pantalla y que luego al recargar esta desparezca?... O sino una script de aviso que diga Presiona "R" para recargar... Muchas gracias...
  20. Sí, eso mismo yo tengo en mi script que sirve para ejecutar otro mapa diferente al que trae predeterminado.... El problema es que se abre ambos mapas, podes ver como al presionar F11 primero se abre el mapa de MTA y luego sobre el mismo se abre el que yo le instale.... Esa función toggleControl("radar",false), la tengo pero es la del script del nuevo mapa que instale.... Pero no veo que esta script tenga la función de reemplazar el MAPA de MTA, por eso te decía si me harías el gran favor de crearme tú esa función te lo agradecería mucho...
  21. Genio, tenes idéa de como crear una función de ocultar el MAPA DE F11 predeterminado del MTA?... Así como existe ese script para ocultar la HUD visibles del MTA predeterminado...
  22. Como no lo vi antes, tenes razón, me enfoqué en ver los true de los Tex e ignoré los Rec... Gracias por guiarme muchacho!!!!
×
×
  • Create New...