
ArtekXDPL
Members-
Posts
71 -
Joined
-
Last visited
Everything posted by ArtekXDPL
-
Its correct? local spawnPositions = { {-278.6669921875,-2882.1572265625,32.104232788086}, {-958.5595703125,-2887.9912109375,64.82421875}, {-1816.9375,-2748.18359375,1.7327127456665}, {-2816.166015625,-2439.0546875,2.4004096984863}, {-2941.5673828125,-1206.2373046875,2.7848854064941}, {-2911.51171875,-895.22265625,2.4013109207153}, {-2185.6669921875,2957.380859375,11.474840164185}, {272.2265625,2928.505859375,1.3713493347168}, {2803.943359375,595.9365234375,7.7612648010254}, {2883.7509765625,-178.4658203125,3.2714653015137}, {-233.46484375,-1735.8173828125,1.5520644187927}, {-1056.8720703125,2939.068359375,42.311294555664}, } local playerDataTable = { {"alivetime"}, {"skin"}, {"MAX_Slots"}, {"bandit"}, {"blood"}, {"food"}, {"thirst"}, {"temperature"}, {"currentweapon_1"}, {"currentweapon_2"}, {"currentweapon_3"}, {"bleeding"}, {"brokenbone"}, {"pain"}, {"cold"}, {"infection"}, {"humanity"}, {"zombieskilled"}, {"headshots"}, {"murders"}, {"banditskilled"}, {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"M1911 Mag"}, {"M9 SD Mag"}, {"Desert Eagle Mag"}, {"M1911"}, {"M9 SD"}, {"Winchester 1866"}, {"PDW"}, {"Hunting Knife"}, {"Hatchet"}, {"Pizza"}, {"Morphine"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"MP5A5 Mag"}, {"AK Mag"}, {"M4 Mag"}, {"Tear Gas"}, {"Grenade"}, {"Desert Eagle"}, {"Sawn-Off Shotgun"}, {"SPAZ-12 Combat Shotgun"}, {"MP5A5"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"Lee Enfield"}, {"PDW"}, --{"TEC-9"}, {"AK-47"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, {"Tank Parts"}, --{"M136 Rocket"}, {"CZ 550 Mag"}, {"Lee Enfield Mag"}, {"M4"}, {"CZ 550"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Painkiller"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"1866 Slug"}, {"2Rnd. Slug"}, {"SPAZ-12 Pellet"}, {"Radio Device"}, {"Binoculars"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, {"Parachute"}, } local vehicleDataTable = { {"MAX_Slots"}, {"Tire_inVehicle"}, {"Engine_inVehicle"}, {"Parts_inVehicle"}, {"fuel"}, {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"M1911 Mag"}, {"M1911"}, {"M9 SD"}, {"Desert Eagle Mag"}, {"Winchester 1866"}, {"PDW"}, {"Hunting Knife"}, {"Morphine"}, {"Hatchet"}, {"Pizza"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"MP5A5 Mag"}, {"AK Mag"}, {"M4 Mag"}, {"Tear Gas"}, {"Grenade"}, {"Desert Eagle"}, {"Sawn-Off Shotgun"}, {"SPAZ-12 Combat Shotgun"}, {"MP5A5"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"Lee Enfield"}, --{"TEC-9"}, {"AK-47"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, {"Tank Parts"}, --{"M136 Rocket"}, {"CZ 550 Mag"}, {"Lee Enfield Mag"}, {"M4"}, {"CZ 550"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Painkiller"}, {"Binoculars"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"1866 Slug"}, {"2Rnd. Slug"}, {"SPAZ-12 Pellet"}, {"Assault Pack (ACU)"}, {"Alice Pack"}, {"Radio Device"}, {"Coyote Backpack"}, {"Czech Backpack"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, } function spawnDayZPlayer(player) local number = math.random(table.size(spawnPositions)) local x,y,z = spawnPositions[number][1],spawnPositions[number][2],spawnPositions[number][3] spawnPlayer (player, x,y,z, math.random(0,360), 73, 0, 0) setElementFrozen(player, true) fadeCamera (player, true) setCameraTarget (player, player) setTimer( function(player) if isElement(player) then setElementFrozen(player, false) end end,500,1,player) playerCol = createColSphere(x,y,z,1.5) setElementData(player,"playerCol",playerCol) attachElements ( playerCol, player, 0, 0, 0 ) setElementData(playerCol,"parent",player) setElementData(playerCol,"player",true) local account = getPlayerAccount(player) setAccountData(account,"isDead",false) setElementData(player,"isDead",false) setElementData(player,"logedin",true) setElementData(player,"admin",getAccountData(account,"admin") or false) setElementData(player,"supporter",getAccountData(account,"supporter") or false) ---------------------------------- --Player Items on Start for i,data in ipairs(playerDataTable) do if data[1] =="Bandage" then setElementData(player,data[1],2) elseif data[1] =="Painkiller" then setElementData(player,data[1],1) elseif data[1] =="MAX_Slots" then setElementData(player,data[1],8) elseif data[1] =="skin" then setElementData(player,data[1],73) elseif data[1] =="blood" then setElementData(player,data[1],12000) elseif data[1] =="temperature" then setElementData(player,data[1],37) elseif data[1] =="brokenbone" then setElementData(player,data[1],false) elseif data[1] =="pain" then setElementData(player,data[1],false) elseif data[1] =="cold" then setElementData(player,data[1],false) elseif data[1] =="infection" then
-
Thanks you. Im found next errors: WARNING: [DayZ-MTA]\DayZ\spawn.lua:401: Bad argument @ 'destroyElement' [Expected element at argument 1] WARNING: [DayZ-MTA]\DayZ\spawn.lua:401: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] spawn.lua local spawnPositions = { {-278.6669921875,-2882.1572265625,32.104232788086}, {-958.5595703125,-2887.9912109375,64.82421875}, {-1816.9375,-2748.18359375,1.7327127456665}, {-2816.166015625,-2439.0546875,2.4004096984863}, {-2941.5673828125,-1206.2373046875,2.7848854064941}, {-2911.51171875,-895.22265625,2.4013109207153}, {-2185.6669921875,2957.380859375,11.474840164185}, {272.2265625,2928.505859375,1.3713493347168}, {2803.943359375,595.9365234375,7.7612648010254}, {2883.7509765625,-178.4658203125,3.2714653015137}, {-233.46484375,-1735.8173828125,1.5520644187927}, {-1056.8720703125,2939.068359375,42.311294555664}, } local playerDataTable = { {"alivetime"}, {"skin"}, {"MAX_Slots"}, {"bandit"}, {"blood"}, {"food"}, {"thirst"}, {"temperature"}, {"currentweapon_1"}, {"currentweapon_2"}, {"currentweapon_3"}, {"bleeding"}, {"brokenbone"}, {"pain"}, {"cold"}, {"infection"}, {"humanity"}, {"zombieskilled"}, {"headshots"}, {"murders"}, {"banditskilled"}, {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"M1911 Mag"}, {"M9 SD Mag"}, {"Desert Eagle Mag"}, {"M1911"}, {"M9 SD"}, {"Winchester 1866"}, {"PDW"}, {"Hunting Knife"}, {"Hatchet"}, {"Pizza"}, {"Morphine"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"MP5A5 Mag"}, {"AK Mag"}, {"M4 Mag"}, {"Tear Gas"}, {"Grenade"}, {"Desert Eagle"}, {"Sawn-Off Shotgun"}, {"SPAZ-12 Combat Shotgun"}, {"MP5A5"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"Lee Enfield"}, {"PDW"}, --{"TEC-9"}, {"AK-47"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, {"Tank Parts"}, --{"M136 Rocket"}, {"CZ 550 Mag"}, {"Lee Enfield Mag"}, {"M4"}, {"CZ 550"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Painkiller"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"1866 Slug"}, {"2Rnd. Slug"}, {"SPAZ-12 Pellet"}, {"Radio Device"}, {"Binoculars"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, {"Parachute"}, } local vehicleDataTable = { {"MAX_Slots"}, {"Tire_inVehicle"}, {"Engine_inVehicle"}, {"Parts_inVehicle"}, {"fuel"}, {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"M1911 Mag"}, {"M1911"}, {"M9 SD"}, {"Desert Eagle Mag"}, {"Winchester 1866"}, {"PDW"}, {"Hunting Knife"}, {"Morphine"}, {"Hatchet"}, {"Pizza"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"MP5A5 Mag"}, {"AK Mag"}, {"M4 Mag"}, {"Tear Gas"}, {"Grenade"}, {"Desert Eagle"}, {"Sawn-Off Shotgun"}, {"SPAZ-12 Combat Shotgun"}, {"MP5A5"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"Lee Enfield"}, --{"TEC-9"}, {"AK-47"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, {"Tank Parts"}, --{"M136 Rocket"}, {"CZ 550 Mag"}, {"Lee Enfield Mag"}, {"M4"}, {"CZ 550"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Painkiller"}, {"Binoculars"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"1866 Slug"}, {"2Rnd. Slug"}, {"SPAZ-12 Pellet"}, {"Assault Pack (ACU)"}, {"Alice Pack"}, {"Radio Device"}, {"Coyote Backpack"}, {"Czech Backpack"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, } function spawnDayZPlayer(player) local number = math.random(table.size(spawnPositions)) local x,y,z = spawnPositions[number][1],spawnPositions[number][2],spawnPositions[number][3] spawnPlayer (player, x,y,z, math.random(0,360), 73, 0, 0) setElementFrozen(player, true) fadeCamera (player, true) setCameraTarget (player, player) setTimer( function(player) if isElement(player) then setElementFrozen(player, false) end end,500,1,player) playerCol = createColSphere(x,y,z,1.5) setElementData(player,"playerCol",playerCol) attachElements ( playerCol, player, 0, 0, 0 ) setElementData(playerCol,"parent",player) setElementData(playerCol,"player",true) local account = getPlayerAccount(player) setAccountData(account,"isDead",false) setElementData(player,"isDead",false) setElementData(player,"logedin",true) setElementData(player,"admin",getAccountData(account,"admin") or false) setElementData(player,"supporter",getAccountData(account,"supporter") or false) ---------------------------------- --Player Items on Start for i,data in ipairs(playerDataTable) do if data[1] =="Bandage" then setElementData(player,data[1],2) elseif data[1] =="Painkiller" then setElementData(player,data[1],1) elseif data[1] =="MAX_Slots" then setElementData(player,data[1],8) elseif data[1] =="skin" then setElementData(player,data[1],73) elseif data[1] =="blood" then setElementData(player,data[1],12000) elseif data[1] =="temperature" then setElementData(player,data[1],37) elseif data[1] =="brokenbone" then setElementData(player,data[1],false) elseif data[1] =="pain" then setElementData(player,data[1],false) elseif data[1] =="cold" then setElementData(player,data[1],false) elseif data[1] =="infection" then
-
Thanks you. Next errors: ERROR: [DayZ-MTA]\DayZ\vehicle_spawns.lua:668: attempt to perform arithmetic on a nil value vehicleSpawn.lua hunterSpawns = gameplayVariables["hunterspawns"] pickupSpawns = gameplayVariables["pickupspawns"] patriotSpawns = gameplayVariables["patriotspawns"] sanchezSpanws = gameplayVariables["sanchezspawns"] barracksSpawns = gameplayVariables["barracksspawns"] coachSpawns = gameplayVariables["coachspawns"] fisherBootSpawns = gameplayVariables["fisherboatspawns"] bikeSpawns = gameplayVariables["bikespawns"] maverikSpawns = gameplayVariables["maverickspawns"] tentSpawns = gameplayVariables["tentsspawns"] heliCrashSites = gameplayVariables["helicrashsides"] hospitalPacks = { {-2670.87890625,636.8984375,14.453125}, {-2637.0556640625,635.03125,14.453125}, {-1515.669921875,2519.166015625,56.0703125}, {-1513.888671875,2519.5908203125,56.064819335938}, {-1528.8955078125,2516.724609375,55.986171722412}, {2022.1650390625,-1402.6806640625,17.18045425415}, {2042.7001953125,-1409.4775390625,17.1640625}, {-316.5478515625,1051.6494140625,20.340259552002}, {-337.9541015625,1049.490234375,19.739168167114}, {-331.5849609375,1046.037109375,26.012474060059}, {-307.0419921875,1045.27734375,26.012474060059}, {1171.490234375,-1310.560546875,13.986573219299}, {1171.609375,-1306.556640625,13.996350288391}, {1158.5048828125,-1326.333984375,31.503561019897}, {1159.80078125,-1323.9013671875,31.498970031738}, {1238.7119140625,328.2431640625,19.7555103302}, {1229.365234375,311.1435546875,24.7578125}, {-2204.07421875,-2309.58203125,31.375}, {1615.939453125,1818.0537109375,10.8203125}, {1601.9443359375,1816.736328125,10.8203125}, {1590.0166015625,1792.0234375,30.46875}, {1607.3232421875,1776.7412109375,37.3125}, {2107.7626953125,926.16015625,10.8203125}, {2116.12890625,925.7705078125,10.9609375}, {2122.1865234375,925.3193359375,10.8203125}, } patrolPoints = { {-1603.2197265625,-2712.736328125,48.9453125}, {2465.748046875,-2215.55859375,13.546875}, {2473.439453125,-2215.56640625,13.546875}, {2480.0732421875,-2216.140625,13.546875}, {2487.24609375,-2215.5966796875,13.546875}, {2494.1005859375,-2215.5859375,13.546875}, {-1686.6728515625,408.9970703125,7.3984375}, {-1682.34375,412.9384765625,7.3984375}, {-1680.0263671875,402.3642578125,7.3984375}, {-1675.84375,406.4677734375,7.3984375}, {-1670.5615234375,411.8359375,7.3984375}, {-1666.2392578125,416.2509765625,7.3984375}, {-1672.7939453125,422.81640625,7.3984375}, {-1677.20703125,418.46484375,7.3984375}, {-2410.7021484375,969.9091796875,45.4609375}, {-2410.744140625,975.220703125,45.4609375}, {-2410.837890625,980.5302734375,45.4609375}, {-1329.3046875,2668.5126953125,50.46875}, {-1328.7314453125,2673.90625,50.0625}, {-1327.0185546875,2679.3876953125,50.46875}, {-1327.3798828125,2684.62890625,50.0625}, {1940.7099609375,-1778.5244140625,13.390598297119}, {1940.6552734375,-1774.908203125,13.390598297119}, {1940.630859375,-1771.728515625,13.390598297119}, {1940.7080078125,-1767.3837890625,13.390598297119}, {-1477.921875,1868.138671875,32.639846801758}, {-1466.1552734375,1869.0048828125,32.6328125}, {-1464.5224609375,1861.3828125,32.639846801758}, {-1477.4599609375,1860.5205078125,32.6328125}, {-735.9208984375,2744.0087890625,47.2265625}, {-739.0439453125,2744.2421875,47.165451049805}, {377.6953125,2601.1083984375,16.484375}, {624.5263671875,1676.25390625,6.9921875}, {620.2958984375,1681.2431640625,6.9921875}, {616.248046875,1686.4169921875,7.1875}, {612.783203125,1691.1650390625,7.1875}, {609.2060546875,1696.201171875,7.1875}, {605.8505859375,1700.978515625,7.1875}, {602.27734375,1706.3603515625,7.1875}, {2141.037109375,2742.734375,10.960174560547}, {2142.3115234375,2752.6982421875,10.96019744873}, {2147.9521484375,2752.3203125,10.8203125}, {2152.60546875,2751.953125,10.8203125}, {2152.984375,2743.85546875,10.8203125}, {2147.75,2743.7392578125,10.8203125}, {-97.6298828125,-1175.0283203125,2.4990689754486}, {-90.74609375,-1177.853515625,2.2021217346191}, {-84.75390625,-1163.853515625,2.3359375}, {-91.5771484375,-1160.5732421875,2.4453125}, {-1606.525390625,-2717.2138671875,48.9453125}, {-1609.7109375,-2721.544921875,48.9453125}, {-1599.83203125,-2708.302734375,48.9453125}, {-2246.314453125,-2558.8212890625,32.0703125}, {-2241.3125,-2561.3662109375,32.0703125}, {-1132.2880859375,-135.0986328125,14.14396572113}, {-1153.529296875,-156.373046875,14.1484375}, {-1142.826171875,-145.67578125,14.14396572113}, {655.611328125,-557.9912109375,16.501491546631}, {655.6572265625,-572.1728515625,16.501491546631}, {1601.791015625,2203.90625,11.060997009277}, {1596.806640625,2203.4345703125,10.8203125}, {1590.197265625,2203.4853515625,10.8203125}, {1589.4775390625,2195.43359375,10.8203125}, {1596.125,2194.294921875,10.8203125}, {1601.6591796875,2194.3369140625,10.8203125}, {2206.8466796875,2470.47265625,10.8203125}, {2206.94140625,2474.75,10.8203125}, {2206.9267578125,2478.86328125,10.8203125}, {2198.06640625,2480.6953125,10.8203125}, {2197.541015625,2475.791015625,10.995170593262}, {2197.609375,2471.9169921875,10.995170593262}, {2120.8251953125,915.4833984375,10.8203125}, {2115.1181640625,915.44140625,10.8203125}, {2109.076171875,915.4228515625,10.8203125}, {2109.22265625,924.8779296875,10.9609375}, {2114.9404296875,924.8857421875,10.9609375}, {2119.5126953125,925.2861328125,10.9609375}, {2645.7197265625,1112.7802734375,10.8203125}, {2639.984375,1112.56640625,10.8203125}, {2634.828125,1112.3466796875,10.9609375}, {2634.1826171875,1101.9482421875,10.8203125}, {2636.7509765625,1101.6748046875,10.8203125}, {2643.5126953125,1101.81640625,10.8203125}, {2209.576171875,2469.8251953125,10.8203125}, {2208.8310546875,2475.09375,10.8203125}, {1005.078125,-901.7490234375,42.216625213623}, {993.025390625,-902.474609375,42.222496032715}, } lootItems = { ["helicrashsides"] = { {"Night Vision Goggles",368,1,90,10}, {"M136 Rocket Launcher",359,1,90,0}, {"Heat-Seeking RPG",360,1,90,0}, {"Box of Matches",328,0.4,90,2}, {"M1911",346,1,90,10}, {"M9 SD",347,1,90,7}, {"Winchester 1866",349,1,90,6}, {"PDW",352,1,90,5.5}, {"Hunting Knife",335,1,90,4}, {"Hatchet",339,1,90,3}, {"Pizza",1582,1,0,2}, {"Soda Bottle",2647,1,0,2}, {"Empty Gas Canister",1650,1,0,2}, {"Roadflare",324,1,90,2}, {"Milk",2856,1,0,1}, {"Painkiller",2709,0.5,0,4}, {"Empty Soda Cans",2673,0.5,0,2}, {"Scruffy Burgers",2675,0.5,0,3}, {"Grenade",342,1,0,4}, {"Parachute",342,1,0,80}, {"Sawn-Off Shotgun",350,1,90,5}, {"SPAZ-12 Combat Shotgun",351,1,90,4}, {"MP5A5",353,1,90,6}, {"Watch",2710,1,0,4}, {"Heat Pack",1576,1,0,3}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,6}, {"Alice Pack",3026,1,0,4}, {"Night Vision Goggles",368,1,90,1.5}, {"Tire",1073,1,0,2}, {"Morphine",1579,1,0,4}, {"Camouflage Clothing",1577,1,0,4.5}, {"Civilian Clothing",1577,1,0,3}, --{"TEC-9",372,1,90,4}, {"AK-47",355,1,90,7}, {"GPS",2976,0.15,0,3}, {"Map",1277,0.8,90,7}, {"Toolbox",2969,0.5,0,1}, {"Engine",929,0.3,0,2}, {"Tent",1279,1,0,4.5}, {"Ghillie Suit",1577,1,0,0.5}, {"M4",356,1,90,1}, {"CZ 550",358,1,90,1.5}, {"Infrared Goggles",369,1,90,3}, {"Assault Pack (ACU)",3026,0.5,0,5}, {"Coyote Backpack",3026,1.3,0,2}, --{"Thermal GPS",2976,0.2,0,3}, --{"GPS Jammer",2976,0.2,0,4}, }, ["hospital"] = { {"Medic Kit",2891,0.7,0}, {"Heat Pack",1576,1,0}, {"Bandage",1578,0.5,0}, {"Blood Bag",1580,1,0}, {"Morphine",1579,1,0}, {"Blood Bag",1580,1,0}, {"Medic Kit",2891,0.7,0}, {"Blood Bag",1580,1,0}, {"Painkiller",1580,1,0}, }, } vehicleAddonsInfo = { {422,4,1,1}, {470,4,1,1}, {468,2,1,1}, {433,6,1,1}, {437,6,1,1}, {509,0,0,0}, {487,0,1,1}, {497,0,1,1}, {453,0,1,1}, } function getVehicleAddonInfos (id) for i,veh in ipairs(vehicleAddonsInfo) do if veh[1] == id then return veh[2],veh[3], veh[4] end end end function createHeliCrashSite() if cargoCol then destroyElement(getElementData(cargoCol,"parent")) destroyElement(cargoCol) end local item_id = math.random(table.size(heliCrashSites)) local x,y,z = heliCrashSites[item_id][1],heliCrashSites[item_id][2],heliCrashSites[item_id][3] cargobob = createVehicle(548,x,y,z,nil,nil,nil) setElementHealth(cargobob,0) setElementFrozen(cargobob,true) cargoCol = createColSphere(x,y,z,3) setElementData(cargoCol,"parent",cargobob) setElementData(cargoCol,"helicrash",true) setElementData(cargoCol,"MAX_Slots",0) for i, item in ipairs(lootItems["helicrashsides"]) do local value = math.percentChance (item[5]*3.5,math.random(1,2)) setElementData(cargoCol,item[1],value) --weapon Ammo local ammoData,weapID = getWeaponAmmoType (item[1],true) if ammoData and value > 0 then setElementData(cargoCol,ammoData,math.random(1,2)) end end setTimer(createHeliCrashSite,3600000,1) end createHeliCrashSite()
-
Thanks you, again. Next error: WARNING: [DayZ-MTA]\DayZ\survivorSystem.lua:293: Bad argument @ 'destroyElement' [Expected element at argument 1] survivalSystem.lua local vehicleDataTableForTent = { {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"M911 Mag"}, {"M9 SD Mag"}, {"Desert Eagle Mag"}, {"M911"}, {"M9 SD"}, {"Winchester 1866"}, {"PDW"}, {"Hunting Knife"}, {"Morphine"}, {"Hatchet"}, {"Pizza"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"MP5A5 Mag"}, {"AK Mag"}, {"M4 Mag"}, {"Tear Gas"}, {"Grenade"}, {"Desert Eagle"}, {"Sawn-Off Shotgun"}, {"SPAZ-12 Combat Shotgun"}, {"MP5A5"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"Lee Enfield"}, --{"TEC-9"}, {"AK-47"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, {"Tank Parts"}, --{"M136 Rocket"}, {"CZ 550 Mag"}, {"Lee Enfield Mag"}, {"M4"}, {"CZ 550"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Painkiller"}, {"Binoculars"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"1866 Slug"}, {"2Rnd. Slug"}, {"SPAZ-12 Pellet"}, {"Assault Pack (ACU)"}, {"Alice Pack"}, {"Radio Device"}, {"Coyote Backpack"}, {"Czech Backpack"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, } weaponAmmoTable = { ["M1911 Mag"] = { {"M1911",22}, }, ["M9 SD Mag"] = { {"M9 SD",23}, }, ["Desert Eagle Mag"] = { {"Desert Eagle",24}, }, ["PDW Mag"] = { {"PDW",28}, }, ["MP5A5 Mag"] = { {"MP5A5",29}, }, ["AK Mag"] = { {"AK-47",30}, }, ["M4 Mag"] = { {"M4",31}, }, ["1866 Slug"] = { {"Winchester 1866",25}, }, ["2Rnd. Slug"] = { {"Sawn-Off Shotgun",26}, }, ["SPAZ-12 Pellet"] = { {"SPAZ-12 Combat Shotgun",27}, }, ["CZ 550 Mag"] = { {"CZ 550",34}, }, ["Lee Enfield Mag"] = { {"Lee Enfield",33}, }, ["M136 Rocket"] = { {"Heat-Seeking RPG",36}, {"M136 Rocket Launcher",35}, }, ["others"] = { {"Parachute",46}, {"Satchel",39}, {"Tear Gas",17}, {"Grenade",16}, {"Hunting Knife",4}, {"Hatchet",8}, {"Binoculars",43}, {"Baseball Bat",5}, {"Shovel",6}, {"Golf Club",2}, {"Radio Device",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["M1911 Mag"]) do if weaponName == weaponData[1] then return "M1911 Mag",weaponData[2] end end for i,weaponData in ipairs(weaponAmmoTable["M9 SD Mag"]) do if weaponName == weaponData[1] then return "M9 SD Mag",weaponData[2] end end for i,weaponData in ipairs(weaponAmmoTable["Desert Eagle Mag"]) do if weaponName == weaponData[1] then return "Desert Eagle Mag",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["AK Mag"]) do if weaponName == weaponData[1] then return "AK Mag",weaponData[2] end end for i,weaponData in ipairs(weaponAmmoTable["M4 Mag"]) do if weaponName == weaponData[1] then return "M4 Mag",weaponData[2] end end for i,weaponData in ipairs(weaponAmmoTable["1866 Slug"]) do if weaponName == weaponData[1] then return "1866 Slug",weaponData[2] end end for i,weaponData in ipairs(weaponAmmoTable["2Rnd. Slug"]) do if weaponName == weaponData[1] then return "2Rnd. Slug",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["Lee Enfield Mag"]) do if weaponName == weaponData[1] then return "Lee Enfield Mag",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 rearmPlayerWeapon (weaponName,slot) takeAllWeapons (source) --Rearm local ammoData,weapID = getWeaponAmmoType (weaponName) if getElementData(source,ammoData) <= 0 then triggerClientEvent (source, "displayClientInfo", source,"Rearm",shownInfos["nomag"],255,22,0) return end setElementData(source,"currentweapon_"..slot,weaponName) --Old Weapons local weapon = getElementData(source,"currentweapon_1") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(source,weapID,getElementData(source,ammoData), true ) end local weapon = getElementData(source,"currentweapon_2") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(source,weapID,getElementData(source,ammoData), false ) end local weapon = getElementData(source,"currentweapon_3") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon)
-
Okey, Im first write after mind.
-
Thanks you are great! Thank you for help. I wish you more lucky. But im have more errors. ERROR: [DayZ-MTA]\DayZ\login.lua:130: attempt to perform arithmetic on local 'z' (a boolean value) My login.lua file local spawnPositions = { {-278.6669921875,-2882.1572265625,32.104232788086}, {-958.5595703125,-2887.9912109375,64.82421875}, {-1816.9375,-2748.18359375,1.7327127456665}, {-2816.166015625,-2439.0546875,2.4004096984863}, {-2941.5673828125,-1206.2373046875,2.7848854064941}, {-2911.51171875,-895.22265625,2.4013109207153}, {-2185.6669921875,2957.380859375,11.474840164185}, {272.2265625,2928.505859375,1.3713493347168}, {2803.943359375,595.9365234375,7.7612648010254}, {2883.7509765625,-178.4658203125,3.2714653015137}, {-233.46484375,-1735.8173828125,1.5520644187927}, {-1056.8720703125,2939.068359375,42.311294555664}, } local playerDataTable = { {"alivetime"}, {"skin"}, {"MAX_Slots"}, {"bandit"}, {"blood"}, {"food"}, {"thirst"}, {"temperature"}, {"currentweapon_1"}, {"currentweapon_2"}, {"currentweapon_3"}, {"bleeding"}, {"brokenbone"}, {"pain"}, {"cold"}, {"infection"}, {"humanity"}, {"zombieskilled"}, {"headshots"}, {"murders"}, {"banditskilled"}, {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"M1911 Mag"}, {"M9 SD Mag"}, {"Desert Eagle Mag"}, {"M1911"}, {"M9 SD"}, {"Winchester 1866"}, {"PDW"}, {"Hunting Knife"}, {"Hatchet"}, {"Pizza"}, {"Morphine"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"MP5A5 Mag"}, {"AK Mag"}, {"M4 Mag"}, {"Tear Gas"}, {"Grenade"}, {"Desert Eagle"}, {"Sawn-Off Shotgun"}, {"SPAZ-12 Combat Shotgun"}, {"MP5A5"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"Lee Enfield"}, {"PDW"}, --{"TEC-9"}, {"AK-47"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, {"Tank Parts"}, {"M136 Rocket"}, {"CZ 550 Mag"}, {"Lee Enfield Mag"}, {"M4"}, {"CZ 550"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Painkiller"}, {"Binoculars"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"1866 Slug"}, {"2Rnd. Slug"}, {"SPAZ-12 Pellet"}, {"Radio Device"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, {"Radio Device"}, {"Parachute"}, } function playerLogin(username, pass, player) local playerID = getAccountData(getPlayerAccount(player),"playerID") account = getPlayerAccount(player) local x,y,z = getAccountData(account,"last_x"),getAccountData(account,"last_y"),getAccountData(account,"last_z") local skin = getAccountData(account,"skin") createZombieTable (player) if getAccountData(account,"isDead") then spawnDayZPlayer(player) return end spawnPlayer (player, x,y,z+0.5, math.random(0,360), skin, 0, 0) setElementFrozen(player, true) fadeCamera (player, true) setCameraTarget (player, player) setTimer( function(player) if isElement(player) then setElementFrozen(player, false) end end,500,1,player) playerCol = createColSphere(x,y,z,1.5) setElementData(player,"playerCol",playerCol) attachElements ( playerCol, player, 0, 0, 0 ) setElementData(playerCol,"parent",player) setElementData(playerCol,"player",true) for i,data in ipairs(playerDataTable) do local elementData = getAccountData(account,data[1]) if not elementData then if data[1] == "brokenbone" or data[1] == "pain" or data[1] == "cold" or data[1] == "infection" or data[1] == "currentweapon_1" or data[1] == "currentweapon_2" or data[1] == "currentweapon_3" or data[1] == "bandit" then elementData = elementData else elementData = 0 end end setElementData(player,data[1],elementData) end setElementData(player,"logedin",true) --Weapons --Old Weapons local weapon = getElementData(player,"currentweapon_1") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(player,weapID,getElementData(player,ammoData), true ) end local weapon = getElementData(player,"currentweapon_2") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(player,weapID,getElementData(player,ammoData), false ) end local weapon = getElementData(player,"currentweapon_3") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(player,weapID,getElementData(player,ammoData), false ) end setElementModel(player, getElementData(player,"skin")) setElementData(player,"admin",getAccountData(account,"admin") or false) setElementData(player,"supporter",getAccountData(account,"supporter") or false) triggerClientEvent(player, "onClientPlayerDayZLogin", player) end addEvent("onPlayerDayZLogin", true) addEventHandler("onPlayerDayZLogin", getRootElement(), playerLogin) function playerRegister(username, pass, player) local number = math.random(table.size(spawnPositions)) local x,y,z = spawnPositions[number][1],spawnPositions[number][2],spawnPositions[number][3] spawnPlayer (player, x,y,z, math.random(0,360), 73, 0, 0) fadeCamera (player, true) setCameraTarget (player, player) playerCol = createColSphere(x,y,z,1.5) attachElements ( playerCol, player, 0, 0, 0 ) setElementData(playerCol,"parent",player) setElementData(playerCol,"player",true) ---------------------------------- --Player Items on Start for i,data in ipairs(playerDataTable) do if data[1] =="Bandage" then setElementData(player,data[1],2) elseif data[1] =="Painkiller" then setElementData(player,data[1],1) elseif data[1] =="MAX_Slots" then setElementData(player,data[1],8) elseif data[1] =="skin" then setElementData(player,data[1],73) elseif data[1] =="blood" then setElementData(player,data[1],12000) elseif data[1] =="temperature" then setElementData(player,data[1],37) elseif data[1] =="brokenbone" then setElementData(player,data[1],false) elseif data[1] =="pain" then setElementData(player,data[1],false) elseif data[1] =="cold" then setElementData(player,data[1],false) elseif data[1] =="infection" then setElementData(player,data[1],false) elseif data[1] =="food" then setElementData(player,data[1],100) elseif data[1] =="thirst" then setElementData(player,data[1],100) elseif data[1] =="currentweapon_1" then setElementData(player,data[1],false) elseif data[1] =="currentweapon_2" then setElementData(player,data[1],false) elseif data[1] =="currentweapon_3" then setElementData(player,data[1],false) elseif data[1] =="bandit" then setElementData(player,data[1],false) elseif data[1] =="humanity" then setElementData(player,data[1],2500) else setElementData(player,data[1],0) end end account = getAccount(username) local value = getAccounts() local value = #value setElementData(player,"playerID",value+1) setAccountData(account,"playerID",value+1) setElementData(player,"logedin",true) createZombieTable (player) end addEvent("onPlayerDayZRegister", true) addEventHandler("onPlayerDayZRegister", getRootElement(), playerRegister) function saveAccounts () -- Save in the database local account = getPlayerAccount(source) if account then for i,data in ipairs(playerDataTable) do setAccountData(account,data[1],getElementData(source,data[1])) end
-
Sorry but im not understand, how mean "if reason then"? Im changed 12 line.
-
Im changed line 12 if reason ~= false then on if reason then ~= false then and Im have next errors: ERROR: Loading script failed: [DayZ-MTA]\DayZ\pickups.lua:12: unexpected symbol near '~=' ERROR: [DayZ-MTA]\DayZ\vehicle_spawns.lua:231: attempt to call field 'size' (a nil value)
-
Hi, all. Can you tell me how repair this error? ERROR: [DayZ-MTA]\DayZ\pickups.lua:13: attempt to concatenate global 'reason' (a nil value) My file pickups.lua fuckUp = { { { { "nothing to see here" } } } } function fuckUp:fuckUp2() return "nope" end fuckUp:fuckUp2() --Server start requirements --serverslots --gamemodename -- getResourceRootElement(getThisResource()) function checkResourceRequirements ( res ) fuckUp = { { { { "nothing to see here" } } } } function fuckUp:fuckUp2() return "nope" end fuckUp:fuckUp2() if getResourceName(getThisResource()) ~= "DayZ" then reason = "Name of resource does not match (DayZ)!" end if reason ~= false then outputServerLog ( "Resource " .. getResourceName(res) .. " wasn't started: ("..reason..")." ) outputChatBox ( "Resource " .. getResourceName(res) .. " wasn't started: ("..reason..").", getRootElement(), 255, 255, 255 ) outputConsole ( "Resource " .. getResourceName(res) .. " wasn't started: ("..reason..")." ) outputDebugString ( "Resource " .. getResourceName(res) .. " wasn't started: ("..reason..")." ) cancelEvent() end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), checkResourceRequirements ) local itemTable = { ---------------------- ["farm"] = { {"Wood Pile",1463,0.4,0,13}, {"Bandage",1578,0.5,0,4}, {"Water Bottle",2683,1,0,6}, {"Pasta Can",2770,1,0,6}, {"Beans Can",2601,1,0,6}, {"Burger",2768,1,0,6}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"Soda Bottle",2647,1,0,9}, {"Empty Gas Canister",1650,1,0,10}, {"Hunting Knife",335,1,90,4}, {"Box of Matches",328,0.4,90,8}, {"Desert Eagle",348,1,90,0.2}, {"Morphine",1579,1,0,4}, {"Tent",1279,1,0,0.5}, {"M1911",346,1,90,4}, {"Painkiller",2709,3,0,3.5}, {"Lee Enfield",357,1,90,0.3}, {"Winchester 1866",349,1,90,0.3}, {"Tire",1073,1,0,2}, {"Tank Parts",1008,1,0.8,2}, {"Civilian Clothing",1241,2,0,2.5}, {"Map",1277,0.8,90,6}, {"GPS",2976,0.15,0,2}, }, ---------------------- ["residential"] = { {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,5}, {"M1911",346,1,90,1.5}, {"M9 SD",347,1,90,1.9}, {"Winchester 1866",349,1,90,0.1}, {"PDW",352,1,90,1}, {"Hunting Knife",335,1,90,3}, {"Hatchet",339,1,90,1}, {"Pizza",1582,1,0,7}, {"Soda Bottle",2647,1,0,7}, {"Empty Gas Canister",1650,1,0,9}, {"Roadflare",324,1,90,9}, {"Milk",2856,1,0,7}, {"Assault Pack (ACU)",3026,1,0,6}, {"Painkiller",2709,3,0,7}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"Grenade",342,1,0,0.01}, {"Desert Eagle",348,1,90,0.4}, {"Sawn-Off Shotgun",350,1,90,0.3}, {"SPAZ-12 Combat Shotgun",351,1,90,0.4}, {"MP5A5",353,1,90,0.4}, {"Watch",2710,1,0,3}, {"Heat Pack",1576,5,0,6}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,0.3}, {"Alice Pack",1248,1,0,1.5}, {"Tire",1073,1,0,1}, {"Tank Parts",1008,0.8,0,1}, {"Morphine",1579,1,0,2}, {"Civilian Clothing",1241,2,0,9}, {"Map",1277,0.8,90,10}, {"GPS",2976,0.15,0,3}, {"Pasta Can",2770,1,0,7}, {"Beans Can",2601,1,0,7}, --{"TEC-9",372,1,90,0}, {"Burger",2768,1,0,7}, {"Golf Club",333,1,90,3}, {"Baseball Bat",336,1,90,3}, {"Shovel",337,1,90,3}, }, ---------------------- ["military"] = { {"Box of Matches",328,0.4,90,2}, {"M1911",346,1,90,5}, {"M9 SD",347,1,90,4}, {"Winchester 1866",349,1,90,3}, {"PDW",352,1,90,4}, {"Hunting Knife",335,1,90,2.4}, {"Hatchet",339,1,90,2.1}, {"Pizza",1582,1,0,2}, {"Soda Bottle",2647,1,0,2}, {"Empty Gas Canister",1650,1,0,4}, {"Roadflare",324,1,90,4}, {"Milk",2856,1,0,1}, {"Painkiller",2709,3,0,4}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"Grenade",342,1,0,0.5}, {"Sawn-Off Shotgun",350,1,90,2.3}, {"SPAZ-12 Combat Shotgun",351,1,90,2.3}, {"MP5A5",353,1,90,2.8}, {"Watch",2710,1,0,4}, {"Heat Pack",1576,5,0,3}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,3.5}, {"Alice Pack",1248,1,0,4}, {"Night Vision Goggles",368,1,90,4}, {"Binoculars",369,1,0,4}, {"Tire",1073,1,0,2}, {"Tank Parts",1008,0.8,0,2}, {"Morphine",1579,1,0,4}, {"Camouflage Clothing",1247,2,0,4.5}, {"Civilian Clothing",1241,2,0,3}, --{"TEC-9",372,1,90,3}, {"AK-47",355,1,90,3.8}, {"GPS",2976,0.15,0,3}, {"Map",1277,0.8,90,7}, {"Toolbox",2969,0.5,0,1}, {"Engine",929,0.3,0,2}, {"Tent",1279,1,0,4.5}, {"Ghillie Suit",1213,2,0,0.3}, {"M4",356,1,90,2.4}, {"CZ 550",358,1,90,0.4}, {"Infrared Goggles",369,1,90,3}, {"Assault Pack (ACU)",3026,1,0,5}, {"Czech Backpack",1239,1,0,2}, {"Radio Device",330,1,0,6}, {"Coyote Backpack",1252,1,0,0.9}, {"Shovel",337,1,90,1}, }, ---------------------- ["industrial"] = { {"Wire Fence",933,0.25,0,7}, {"Toolbox",2969,0.5,0,3}, {"Tire",1073,1,0,4}, {"Engine",929,0.3,0,3.5}, {"Tank Parts",1008,1,0.8,4}, {"Winchester 1866",349,1,90,3}, {"Water Bottle",2683,1,0,4}, {"Pasta Can",2770,1,0,4}, {"Beans Can",2601,1,0,4}, {"Burger",2768,1,0,4}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,10}, {"Soda Bottle",2647,1,0,4}, {"Empty Gas Canister",1650,1,0,6}, {"Full Gas Canister",1650,1,0,1.5}, {"Map",1277,0.8,90,3}, {"Watch",2710,1,0,2}, {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,2}, {"M1911",346,1,90,1.5}, {"PDW",352,1,90,2}, {"Hunting Knife",335,1,90,2}, {"Hatchet",339,1,90,1.5}, {"Pizza",1582,1,0,4}, {"Roadflare",324,1,90,5}, {"Milk",2856,1,0,4}, {"Assault Pack (ACU)",3026,1,0,6}, {"Coyote Backpack",1252,1,0,0.5}, {"Radio Device",330,1,0,6}, {"Golf Club",333,1,90,1.5}, {"Baseball Bat",336,1,90,1.5}, {"Shovel",337,1,90,1.5}, {"Night Vision Goggles",368,1,90,1.5}, }, ---------------------- ["supermarket"] = { {"Raw Meat",2804,0.5,90,8}, {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,5}, {"M1911",346,1,90,3.5}, {"PDW",352,1,90,2}, {"Hunting Knife",335,1,90,3}, {"Hatchet",339,1,90,2.1}, {"Pizza",1582,1,0,7}, {"Soda Bottle",2647,1,0,7}, {"Empty Gas Canister",1650,1,0,5}, {"Roadflare",324,1,90,6}, {"Milk",2856,1,0,7}, {"Assault Pack (ACU)",3026,1,0,6}, {"Pasta Can",2770,1,0,7}, {"Beans Can",2601,1,0,7}, {"Burger",2768,1,0,7}, {"Painkiller",2709,3,0,7}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"MP5A5",353,1,90,0.5}, {"Watch",2710,1,0,3}, {"Heat Pack",1576,5,0,6}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,0.2}, {"Alice Pack",1248,1,0,0.5}, {"Tire",1073,1,0,1}, {"Tank Parts",1008,1,0.8,2}, {"Morphine",1579,1,0,2}, {"Civilian Clothing",1241,2,0,3.5}, {"Map",1277,0.8,90,4}, {"GPS",2976,0.15,0,1}, {"Radio Device",330,1,0,6}, {"Golf Club",333,1,90,1.9}, {"Baseball Bat",336,1,90,1.4}, {"Shovel",337,1,90,0.3}, }, ["other"] = { {"Raw Meat",2804,0.5,90}, {"Cooked Meat",2806,0.5,90}, {"Full Gas Canister",1650,1,0}, {"Empty Water Bottle",2683,1,0}, {"Survivor Clothing",1577,2,0}, {"Night Vision Goggles",368,1,90}, {"Infrared Goggles",369,1,90}, {"1866 Slug",2358,2,0}, {"2Rnd. Slug",2358,2,0}, {"SPAZ-12 Pellet",2358,2,0}, {"MP5A5 Mag",2358,2,0}, {"AK Mag",1271,2,0}, {"M4 Mag",1271,2,0}, {"M1911 Mag",3013,2,0}, {"M9 SD Mag",3013,2,0}, {"Desert Eagle Mag",3013,2,0}, --{"M136 Rocket",3082,0.7,90}, {"CZ 550 Mag",2358,2,0}, {"Lee Enfield Mag",2358,2,0}, {"PDW Mag",2041,2,0}, {"MP5A5 Mag",2041,2,0}, {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,5}, {"M1911",346,1,90,3.5}, {"PDW",352,1,90,2}, {"Hunting Knife",335,1,90,2.5}, {"Hatchet",339,1,90,1.8}, {"Pizza",1582,1,0,7}, {"Soda Bottle",2647,1,0,7}, {"Empty Gas Canister",1650,1,0,5}, {"Roadflare",324,1,90,6}, {"Milk",2856,1,0,5}, {"Assault Pack (ACU)",3026,1,0,6},
-
Zapraszam wszystkich graczy na serwer MTA DayZ 1.4 IP: 185.38.251.198:22370 Serwer wzorowany jest on na zagranicznych serwerach: The Walking Dead DayZ [ZOMBIES] 500+ Vehicles, Virus-x Zombies oraz jednym polskim serwerze Totalnie Polski DayZ [HARDCORE]. Więc staramy się połączyć niejako 3 serwery w jeden. Więc myślę że serwer można nazwać sklejką. Serwer nie posiada żadnych własnych skryptów, lecz mapa jest powoli przez nas amatorsko edytowana. Na serwerze większość skinów broni, samochodów, jak i ubrań została zamieniona. Na mapę zostały dodane nowe pojazdy którymi można sterować po uzbieraniu do nich odpowiednich części. Gamemod DayZ jest już prawie całkowicie spolszczony. Nazwa serwera: The Walking Dead | 500+ Pojazdów | POLSKA WERSJA JĘZYKOWA Adres IP: 185.38.251.198:22370 Sloty: 20 Gamemode: DayZ Poniżej screeny z gry: Podmianki samochodów http://zapodaj.net/images/a38f14024893b.png W samochodzie: http://zapodaj.net/images/f6b2600c76340.png Spolszczony ekwipunek http://zapodaj.net/images/fdbf5e478080b.png Tabela pod TAB http://zapodaj.net/6fef99cb170c8.png.html Podmianki broni http://zapodaj.net/9bba0a0e80209.png.html
-
Refresh, sorry for double post.
-
How to change size "samochód" column? addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() exports["scoreboard"]:addScoreboardColumn("Samochód", 4) end) setTimer(function() local players = getElementsByType "player" for k, v in ipairs (players) do if (isPedInVehicle(v)) then local vehicle = getPedOccupiedVehicle(v) local carname = getVehicleName(vehicle) setElementData(v, "Samochód", tostring(carname)) else setElementData (v, "Samochód", "brak") end end end, 2500, 0)
-
Im searched script but its in 5 parts. I wanna all i 2-3 files. No 5-6 zip archive.
-
Hi all. Can you write for me new scoreboard (press TAB)? Columns of table scoreboard: Name | Group | Murders (Kill other player) | Zombie killed | Time play | Vehicle | FPS | Ping |
-
Hi, all? How remove this panel? What is name this panel/window? How default hide this panel after player join on the server?
-
Thanks you for help.
-
This is correct? local sWidth, sHeight = guiGetScreenSize() local Width, Height = 1366, 768 --write the width and height here local X = sWidth - Width local Y = 0 function HUD() local weaponType = getPedWeapon(localPlayer) dxDrawImage(300, 300, 128, 128, "Weapons/"..tostring(weaponType).. ".png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end function HandleTheRendering() addEventHandler("onClientRender", getRootElement(), HUD) end addEventHandler("onClientResourceStart", resourceRoot, HandleTheRendering)
-
How settings this same position in top right corner screen, at all resolution? Sorry for my english.
-
Im hide default HUD. Im wanna move weapon icon in top right corner.
-
Hi all. How to write a script which move the weapon icon in the top right corner of the screen? Weapon icon in the picture:
-
refresh How add fuel info in car?