Jump to content

Donde va el booleano true o false?


Aruna

Recommended Posts

Hola aca yo entiendo que me quiere decir que el elemento "destroyelement" que no especifica el argumento 1 del booleando que tengo que eliminar?..

28r2lfm.png

--[[ 
#---------------------------------------------------------------#
----*           DayZ MTA Script spawn.lua           *----
----*.
----* C.r
----* ga
----*                                                       *----
#---------------------------------------------------------------#
]]
local spawnPositions = {
  {
    -697.66729736328,
    1610.0223388672,
    1300.044586181641
  },
  {
    -699.19360351563,
    946.80822753906,
    1300.324913978577
  },
  {
    174.79534912109,
    148.06318664551,
    1300.1025438308716
  },
  {
    -1425.1381835938,
    2167.8332519531,
    1300.843318939209
  },
  {
    -278.6669921875,
    -2882.1572265625,
    1300.104232788086
  },
  {
    -958.5595703125,
    -2887.9912109375,
    1300.82421875
  },
  {
    -1816.9375,
    -2748.18359375,
    1300.7327127456665
  },
  {
    -2816.166015625,
    -2439.0546875,
    1300.4004096984863
  },
  {
    -2941.5673828125,
    -1206.2373046875,
    1300.7848854064941
  },
  {
    -2911.51171875,
    -895.22265625,
    1300.4013109207153
  },
  {
    -2185.6669921875,
    2957.380859375,
    1300.474840164185
  },
  {
    272.2265625,
    2928.505859375,
    1300.3713493347168
  },
  {
    2803.943359375,
    595.9365234375,
    1300.7612648010254
  },
  {
    2883.7509765625,
    -178.4658203125,
    1300.2714653015137
  },
  {
    -233.46484375,
    -1735.8173828125,
    1300.5520644187927
  },
  {
    -1056.8720703125,
    2939.068359375,
    1300.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"},
  {
    "Bouteille"
  },
  {"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"},
  {"AK-47"},
  {"Blood Bag"},
  {"GPS"},
  {"Map"},
  {"Toolbox"},
  {"Wire Fence"},
  {"Tire"},
  {"Engine"},
  {"Tank Parts"},
  {"CZ 550 Mag"},
  {
    "Lee Enfield Mag"
  },
  {"M4"},
  {"CZ 550"},
  {"Satchel"},
  {
    "Infrared Goggles"
  },
  {
    "Night Vision Goggles"
  },
  {"Tent"},
  {"Raw Meat"},
  {
    "Cooked Meat"
  },
  {
    "Camouflage Clothing"
  },
  {
    "Ghillie Suit"
  },
  {
    "Ghillie[F] Suit"
  },
  {
    "Civilian Clothing"
  },
  {
    "Civilian[F] Clothing"
  },
  {
    "Survivor Clothing"
  },
  {
    "Survivor[F] Clothing"
  },
  {"Painkiller"},
  {
    "Empty Water Bottle"
  },
  {
    "Empty Soda Cans"
  },
  {
    "Scruffy Burgers"
  },
  {"1866 Slug"},
  {"2Rnd. Slug"},
  {
    "SPAZ-12 Pellet"
  },
  {
   
Edited by Guest
Link to comment
¿Qué estabas intentando destruir?

Puedes colocar el código?

  setTimer(setElementPosition, 500, 1, source, 6000, 6000, 0) 
  triggerClientEvent(source, "onClientPlayerDeathInfo", source) 
  setAccountData(account, "isDead", true) 
  setElementData(source, "isDead", true) 
  triggerClientEvent("onRollMessageStart", getRootElement(), "#FFFFFF" .. getPlayerName(source) .. " #FFFFFFha muerto", 0, 22, 255, "died") 
  destroyElement(getElementData(source, "playerCol")) 
  setTimer(spawnDayZPlayer, 5000, 1, source) 
end 

Lo que hace este codigo es cuando el usuario muere, pierda todo lo que tenga en su inventario por eso esta el desdroy

Link to comment
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...