Jump to content

Can a "Hitmarker" script cause players to die when activate?


Recommended Posts

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

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

  • Confused 1
Link to post
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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...