Jump to content

Recommended Posts

Então Queria saber se tem como me ajudar, tipo o player toma um tiro mais na cabeça mais inves de morrer ela toma uma quantidade de dano tipo dei um tiro ela tomou 30 de dano entende

Link to comment
addEventHandler("onClientPlayerDamage", root, function(attacker, damage_causing, bodypart, loss)
	if bodypart == 9 then
		cancelEvent()
		setElementHealth(source, getElementHealth(source) - 30)
	end
end

 

Link to comment

Crie um recurso com o código abaixo em cliente, desative o recurso headshot também.

addEventHandler("onClientPlayerDamage", root, function(attacker, damage_causing, bodypart, loss)
	if bodypart == 9 then
		setElementHealth(source, getElementHealth(source) - 30)
	end
end

 

Link to comment

Cliente:

addEventHandler("onClientPlayerDamage", root, function()
	if bodypart == 9 then
		setElementHealth(source, getElementHealth(source) - 30)
	end
end

Meta:

<meta>
    <script src="client.lua" type="client" />
</meta>
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...