Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Marilith

  1. the idea was good, it really should work, but now when the element gets hit, he bug and needs to reconnect, i'll try to see why this happen
  2. i tested here, it seems to not worth, the image appears, but do not kill the target
  3. yes, the code is in the hitmarker script: function fireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if hitElement then if getElementType(hitElement)=="player" then screenX, screenY = getScreenFromWorldPosition(hitX, hitY, hitZ) if not screenX then return end if isDrawing then return end isDrawing = true if (weapon == 34) then triggerServerEvent("kilLDayZPlayer", hitElement) end if (weapon == 34) then setElementData(localPlayer,"murders",getElementData(localPlayer,"murders")+1) end local sound = playSound("hitmarker-sound.wav") setSoundVolume( sound , 1) addEventHandler("onClientRender", root, drawHitMarker) if drawTimer and isTimer(drawTimer) then killTimer(drawTimer) end drawTimer = setTimer(function() isDrawing = false removeEventHandler("onClientRender", root, drawHitMarker) end, 500, 1) addEventHandler ( "onPlayerDamage", root, playerDamage_text ) end end end--func addEventHandler("onClientPlayerWeaponFire", localPlayer, fireFunc)
  4. I made a script with killdayzplayer that triggers a server event to kill the other player whenever he is hit by a sniper as a method of removing the shot you miss and kill anyway. if (weapon == 34) then triggerServerEvent("kilLDayZPlayer", hitElement), in this case hitElement == "player" then identify the other player and it works. but with this method there is no "killer" so kill messages appear that the player was killed by unknown. I tried a few things but everything went wrong, does anyone have a solution? https://i.imgur.com/I2dzgln.mp4
  5. Hey friend, I forgot to post here, but yesterday I got exactly what I wanted, credits to "Tekken" that helped me a lot, basically I made a hitX, Y, Z system with ammo and ammoclip, and I made one that hitElement activated killDayzPlayer, so , I put the sniper to do 1 damage, so now the sniper shots seem to have real time synchronization, in the same line of the code I put it for if the weapon is 34 then localPlayer will win 1 murder, and it's ready. Thanks for the help.
  6. yeah, but what I want to know exactly is the possibility of creating a script that activates "HitMarker", causing the target player to die. for me it is very complicated to say exactly what I want, but this server was perfectly able to ignore the ping from the server, and that makes the players enter it, the sniper pvp is magnificent
  7. I know a server that whenever you hit another player, it appears that you hit him and he dies, and hits in the lag do 1 damage. The blood of the hit player remains at 12000 but he dies, sometimes when hit also goes to 11999, but still dies ... I would like to know if it is possible to create a script capable of causing that when a Hitmarker is activated, the affected player dies instantly.
  • Create New...