SparkySky

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About SparkySky

  • Rank
    Square
  • Birthday 04/03/1991

Details

  • Gang
    20CM
  • Location
    România
  • Occupation
    Creating video content for internet !

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. și cum pot scăpa de costum weapons?
  2. Salutare Tuturor! Vreau să întreb cum pot remedia o greșeală cu o armă? Am 2 arme într-o armă, una originală și una modificată? !! cum pot rezolva asta ?! În ce fișier ar trebui rezolvată problema cu o eroare de armă? Iată o imagine a modului meu de joc DayZ! Aceasta este versiunea 0.7b! https://imgur.com/a/nddULJg https://imgur.com/a/wcr9pVY Mie mi-a spus cineva că trebuie de rezolvat în core.Lua și core_client.Lua ! Uitați fișierele aici ! https://www.mediafire.com/file/brgoz8ebc2g06jn/core_client.Lua/file https://www.mediafire.com/file/ev34e1kbsrzapxj/core.Lua/file Mulțumesc Anticipat !
  3. Hello! I want to ask how can I fix a mistake with a weapon? Do I have 2 weapons in weapons, one original and one modified? !! how can i solve this ?! In which file should the problem with a weapon error be resolved? Here is a picture of my DayZ game mode! This is version 0.7b! https://imgur.com/a/nddULJg https://imgur.com/a/wcr9pVY
  4. ready I already solved the problem with / kill! but I have a problem at the core.Lua with the backpack when my skin changes then my backpack disappears! how can i solve it ?! Thank you in advance ! https://www.mediafire.com/file/vj71yzyj3bk5c4t/core.Lua/file
  5. function spawnDayZPlayer(player) if player then local x,y,z = unpack(spawnPositions[math.random(#spawnPositions)]); spawnPlayer(player, x, y, (z+0.5), math.random(360), 73, 0, 0); setCameraTarget(player, player); fadeCamera(player, true); local 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); setAccountData(getPlayerAccount(player), "isDead", false); setElementData(player, "isDead", false); setElementData(player, "logedin", true); for _,v in ipairs(playerDataTable) do if (v[1] ~= "radiochannel" and v[1] ~= "gpschannel") then setElementData(player, v[1], v[2]); end end setElementData(player, "logedin", true); setTimer(checkBuggedAccont, (25*1000), 1, player); setElementData(player, "spawnedzombies", 0); end end addEventHandler("kilLDayZPlayer", root, function(killer, headshot, weapon) local account = getPlayerAccount(source); if not account then return; end triggerClientEvent(source, "onClientPlayerDeathInfo", source); killPed(source); triggerClientEvent(source, "hideInventoryManual", source); if not isElementInWater(source) then if (getElementData(source, "alivetime") > 5) then -- If alivetime is bigger than 5 mins, to avoid haveing too much corpses at spawn. local x,y,z = getElementPosition(source); if (getDistanceBetweenPoints3D(x, y, z, 6000, 6000, 0) > 200) then local x,y,z = getElementPosition(source); local _,_,rotz = getElementRotation(source); local skin = getElementModel(source); local ped = createPed(skin, x, y, z, rotz); local pedCol = createColSphere(x, y, z, 1.5); killPed(ped); setTimer(function(ped, pedCol) if ped then destroyElement(ped); end if pedCol then destroyElement(pedCol); end end, (10*60000), 1, ped, pedCol); attachElements(pedCol, ped, 0, 0, 0); setElementData(pedCol, "parent", ped); setElementData(pedCol, "playername", getPlayerName(source)); setElementData(pedCol, "deadman", true); setElementData(pedCol, "MAX_Slots", getElementData(source, "MAX_Slots")); local time = getRealTime(); setElementData(pedCol, "deadreason", getPlayerName(source).." is dead. Cause of death: "..(weapon or "Unknown")..". Time of death: "..time.hour..":"..time.minute.." o'clock."); if pedCol then for _,v in ipairs(playerDataTable) do local itemPlus = getElementData(source, v[1]); if (v[1] == "M1911 Mag") then itemPlus = math.floor(getElementData(source, v[1])/10); elseif (v[1] == "M9 SD Mag") then itemPlus = math.floor(getElementData(source, v[1])/15); elseif (v[1] == "Desert Eagle Mag") then itemPlus = math.floor(getElementData(source, v[1])/7); elseif (v[1] == "PDW Mag") then itemPlus = math.floor(getElementData(source, v[1])/30); elseif (v[1] == "MP5A5 Mag") then itemPlus = math.floor(getElementData(source, v[1])/20); elseif (v[1] == "AS50 Mag") then itemPlus = math.floor(getElementData(source, v[1])/40); elseif (v[1] == "CZ550 Mag") then itemPlus = math.floor(getElementData(source, v[1])/10); elseif (v[1] == "Mosin 9130 Mag") then itemPlus = math.floor(getElementData(source, v[1])/35); elseif (v[1] == "M24 Mag") then itemPlus = math.floor(getElementData(source, v[1])/10); elseif (v[1] == "KVSK Mag") then itemPlus = math.floor(getElementData(source, v[1])/15); elseif (v[1] == "M107 Mag") then itemPlus = math.floor(getElementData(source, v[1])/5); elseif (v[1] == "SVD Dragunov Camo Mag") then itemPlus = math.floor(getElementData(source, v[1])/25); elseif (v[1] == "MK 48 Mod 0 Mag") then itemPlus = math.floor(getElementData(source, v[1])/100); elseif (v[1] == "MG36 Mag") then itemPlus = math.floor(getElementData(source, v[1])/100); elseif (v[1] == "PKP Mag") then itemPlus = math.floor(getElementData(source, v[1])/100); elseif (v[1] == "AK-107 Mag") then itemPlus = math.floor(getElementData(source, v[1])/30); elseif (v[1] == "AKS Gold Mag") then itemPlus = math.floor(getElementData(source, v[1])/30); elseif (v[1] == "SA-58V ACOG Mag") then itemPlus = math.floor(getElementData(source, v[1])/30); elseif (v[1] == "AKS-74U Mag") then itemPlus = math.floor(getElementData(source, v[1])/30); elseif (v[1] == "M4A1 Holo Mag") then itemPlus = math.floor(getElementData(source, v[1])/20); elseif (v[1] == "1866 Slug") then itemPlus = math.floor(getElementData(source, v[1])/7); elseif (v[1] == "2Rnd. Slug") then itemPlus = math.floor(getElementData(source, v[1])/2); elseif (v[1] == "SPAZ-12 Pellet") then itemPlus = math.floor(getElementData(source, v[1])/7); elseif (v[1] == "DMR Mag") then itemPlus = math.floor(getElementData(source, v[1])/5); elseif (v[1] == "SKS-45 Mag") then itemPlus = math.floor(getElementData(source, v[1])/10); end if not string.find(v[1], "(Equipped)") then setElementData(pedCol, v[1], itemPlus); end for i = 1, 3 do local item = getElementData(source, "currentweapon_"..tostring(i)); if (item ~= "") then setElementData(pedCol, item, 1); end end end local skin = getSkinNameFromID(getElementData(source, "skin")); setElementData(pedCol, skin, getElementData(pedCol, skin) + 1); local backpack = getBackpackNameFromSlots(getElementData(source, "MAX_Slots")); setElementData(pedCol, backpack, (getElementData(pedCol, backpack) or 0) + 1); end end end end if (killer and killer ~= source and getElementType(killer) == "player") then if (getElementData(source, "htype") ~= "Bandit") then addPlayerStats(killer, "humanity", math.random(-2500, -1000)); else addPlayerStats(killer, "humanity", math.random(1000, 2500)); end setElementData(killer, "murders", getElementData(killer, "murders") + 1); if (getElementData(source, "htype") == "Bandit") then setElementData(killer, "banditskilled", getElementData(killer, "banditskilled") + 1); end if headshot then setElementData(killer, "headshots", getElementData(killer, "headshots") + 1); end triggerClientEvent("displayClientInfo", root, "#FFFFFF"..getPlayerName(source).." #FFFFFFwas killed by "..getPlayerName(killer), 0, 22, 255); else triggerClientEvent("displayClientInfo", root, "#FFFFFF"..getPlayerName(source).." #FFFFFFwas killed", 0, 22, 255); end setTimer(setElementPosition, 500, 1, source, 6000, 6000, 0); setAccountData(account, "isDead", true); setElementData(source, "isDead", true); setTimer(spawnDayZPlayer, 10000, 1, source); end); addEventHandler("onPlayerQuit", root, function() savePlayerData(source); end); addEventHandler("onResourceStop", root, function() for _,v in pairs(getElementsByType("player")) do savePlayerData(v); end end); [2019-10-30 18:32:05] ERROR: [DayZ-MTA]/DayZ/accounts.Lua:344: attempt to perform arithmetic on a boolean value [2019-10-30 18:32:06] WARNING: [DayZ-MTA]/DayZ/accounts.Lua:344: Bad argument @ 'getElementData' [Expected string at argument 2, got nil] [2019-10-30 18:32:06] ERROR: [DayZ-MTA]/DayZ/accounts.Lua:344: attempt to perform arithmetic on a boolean value [2019-10-30 18:31:02] ERROR: [DayZ-MTA]/DayZ/accounts.Lua:307: attempt to perform arithmetic on a boolean value [2019-10-30 18:31:08] WARNING: [DayZ-MTA]/DayZ/accounts.Lua:307: Bad argument @ 'getElementData' [Expected string at argument 2, got nil] [2019-10-30 18:31:08] ERROR: [DayZ-MTA]/DayZ/accounts.Lua:307: attempt to perform arithmetic on a boolean value https://imgur.com/a/rRBCOHf when I give /kill it kills me and my screen floats and does not respawn me
  6. Hi all ! I found the problem so it does not spawn me and just shows me the interface from the 51st! I don't know if this function works correctly! Maybe someone can help me figure it out! addEvent("onPlayerDayZRegister", true); addEvent("onPlayerDayZLogin", true); addEvent("kilLDayZPlayer", true); addEventHandler("onPlayerDayZLogin", root, function(player) local account = getPlayerAccount(player); local x,y,z = getAccountData(account, "last_x"), getAccountData(account, "last_y"), getAccountData(account, "last_z"); local skin = getAccountData(account, "skin"); if getAccountData(account, "isDead") then return spawnDayZPlayer(player); end spawnPlayer(player, x, y, (z+2), math.random(360), skin, 0, 0); fadeCamera(player, true); setCameraTarget(player, player); local 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 _,v in ipairs(playerDataTable) do setElementData(player, v[1], getAccountData(account, v[1])); end setElementData(player, "logedin", true); setElementModel(player, getElementData(player, "skin")); setTimer(checkBuggedAccont, (25*1000), 1, player); setElementData(player, "spawnedzombies", 0); equipThem(player, 0); end); addEventHandler("onPlayerDayZRegister", getRootElement(), function(player) spawnDayZPlayer(player); setElementData(player, "radiochannel", "99999"); setElementData(player, "gpschannel", ""); setElementData(player, "gang", "None"); savePlayerData(player); end); function spawnDayZPlayer(player) if player then local x,y,z = unpack(spawnPositions[math.random(#spawnPositions)]); spawnPlayer(player, x, y, (z+0.5), math.random(360), 73, 0, 0); setCameraTarget(player, player); fadeCamera(player, true); local 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); setAccountData(getPlayerAccount(player), "isDead", false); setElementData(player, "isDead", false); setElementData(player, "logedin", true); for _,v in ipairs(playerDataTable) do if (v[1] ~= "radiochannel" and v[1] ~= "gpschannel") then setElementData(player, v[1], v[2]); end end setElementData(player, "logedin", true); setTimer(checkBuggedAccont, (25*1000), 1, player); setElementData(player, "spawnedzombies", 0); end end
  7. in /debugscript 3 I show no error everything is clean neither warnings nor errors ! look does not show me any error or warning, only the admin appears and so much! https://imgur.com/a/daD2ISn
  8. I did as you said, but another problem appeared to me! That's when I logged on to the server! Here's a picture: https://imgur.com/a/oAJvIYZ
  9. What ?! im need function for repairing problem ?!!!
  10. Hi all ! I have a problem !?! I have a DayZ MTA server and when I log in I randomly teleport and spam me with Account has been reset! I use the MTA DayZ 0.7r3 gamemode ! can i change this script with another one? that when I go to another login panel I get a black screen! look here for some pictures that randomly spawn me and spam me at Account is Buggy has been reset! Photos: https://imgur.com/a/hEfCFXa please help me well i am a beginner in scripting and i need help !!! (Don't hate that you were like me too and you were scripting and asking for help) function checkBuggedAccont(player) if isElement(player) then if not isGuestAccount(getPlayerAccount(player)) then if getElementData(player, "logedin") then if (getElementModel(player) == 0) then removeBackpack(player); removeWeaponBack(player); removeWeaponBack2(player); removeWeaponReplace(player); spawnDayZPlayer(player); outputChatBox(getPlayerName(player).."'s account is buggy and has been reset.", getRootElement(), 25, 255, 25); return; end for _,v in ipairs(playerDataTable) do if (type(getElementData(player, v[1])) ~= type(v[2])) then removeBackpack(player); removeWeaponBack(player); removeWeaponBack2(player); removeWeaponReplace(player); spawnDayZPlayer(player); outputChatBox(getPlayerName(player).."'s account is buggy and has been reset.", getRootElement(), 25, 255, 25); end end end end end end addCommandHandler("kill", function(player) triggerEvent("kilLDayZPlayer", player); end);
  11. Hi all ! I downloaded the gamemode MTA: DayZ 0.7r6 and put some cars on it and when I want to spawn a patriot or other vehicle I no longer see the top hud with engine pulls and parts! Can anyone help me with this problem please! Look here the files maybe I did something wrong! http://www.fileshare.ro/e3427091278 http://www.fileshare.ro/e3427091280 If you read this message it means that you are a good person who can help me with this problem! Thank you in advance !