Marilith 0 Posted February 23 Share Posted February 23 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 post
Tekken 146 Posted February 23 Share Posted February 23 I don’t exactly get it? 12000 blood that’s DayZ, you will have to call "killDayZPlayer" Link to post
Marilith 0 Posted February 23 Author Share Posted February 23 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 post
Hydra 36 Posted February 24 Share Posted February 24 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 post
Marilith 0 Posted February 24 Author Share Posted February 24 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 post
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now