Jump to content

SISTEMA DE DANO [HELP]


Recommended Posts

Bom dia, eu fiz um sistema que faz identificar o dano do player quando acerta o corpo, porem nao consigo identificar o Headshot ou partes do corpo funcional. Alguem pode me ajudar?

 

a função usada é a onClientPlayerWeaponFire

function tiro(wap,mag,ClipM,x,y,z,element)
	if element then
		if getType(element) then
			screenX, screenY = getScreenFromWorldPosition(x,y,z)
			if getType(element) then
				receivePos()
			end
			if getType(element) == "player" then
				dano, weapon = weaponDamage()
				triggerServerEvent("sincroniaSv", getLocalPlayer(), element, dano, weapon)
			end
		end
	end
end
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), tiro)

OBRIGADO.

Link to comment

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...