AnnaBelle Posted April 12, 2017 Share Posted April 12, 2017 Anyone know any pvp system, without delay 0.003ms per shot. Link to comment
Fist Posted April 12, 2017 Share Posted April 12, 2017 Please, explain better your request/problem. Otherwise no one will help 'cause anyone (atleast me) can't understand what are you talking about. Link to comment
AnnaBelle Posted April 12, 2017 Author Share Posted April 12, 2017 I'm looking for the hitmarker with no bug, type the shot in the lag, so it would be a hitmarker that helps in combat Link to comment
Fist Posted April 13, 2017 Share Posted April 13, 2017 10 hours ago, AnnaBelle said: I'm looking for the hitmarker with no bug, type the shot in the lag, so it would be a hitmarker that helps in combat just use event onClientPedDamage then just show hit mark image, no delay whatsoever. Link to comment
AnnaBelle Posted April 13, 2017 Author Share Posted April 13, 2017 (edited) local screenX, screenY local drawTimer local isDrawing local sound function drawHitMarker() dxDrawImage(screenX-16, screenY-16, 32, 32, "hitmarker.png") end addEventHandler("onClientPedDamage", getRootElement(), function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if hitElement then if getElementType(hitElement)== "vehicle" or getElementType(hitElement)== "player" then screenX, screenY = getScreenFromWorldPosition(hitX, hitY, hitZ) if not screenX then return end if isDrawing then return end isDrawing = true 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) end end end) Like this? Edited April 13, 2017 by AnnaBelle Link to comment
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