Marilith Posted February 23, 2021 Share Posted February 23, 2021 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. Link to comment
Tekken Posted February 23, 2021 Share Posted February 23, 2021 I don’t exactly get it? 12000 blood that’s DayZ, you will have to call "killDayZPlayer" Link to comment
Marilith Posted February 23, 2021 Author Share Posted February 23, 2021 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 1 Link to comment
Hydra Posted February 24, 2021 Share Posted February 24, 2021 local myMarker = createMarker(0, 0, 5, "cylinder", 1.5, 255, 255, 255, 255, getRootElement()) function a(hitElement, matchingDimension) if hitElement == source then killPed(hitElement) else end end addEventHandler("onPlayerMarkerHit", myMarker, a) Is this what you want? Link to comment
Marilith Posted February 24, 2021 Author Share Posted February 24, 2021 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. Link to comment
Kelvenbrryan Posted January 15, 2022 Share Posted January 15, 2022 help. On 24/02/2021 at 12:28, Marilith said: 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. help Link to comment
Administrators Tut Posted January 15, 2022 Administrators Share Posted January 15, 2022 Closing thread to prevent gravebumping. @Kelvenbrryan please continue to use your own thread for help with your code. Link to comment
Recommended Posts