Jump to content

AJUDA HEADSHOT


Recommended Posts

Posted

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

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

 

Posted

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>
  • Other Languages Moderators
Posted

Nenhum desses exemplos vai funcionar pois faltou fechar o parênteses do addEventHandler.

Adicione um ) depois do último end.

  • Thanks 1

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