Jump to content

COMO FICAR IMORTAL NO MTA???


Recommended Posts

Coloca esse script no lado do client e vê se vai funcionar, fiz sem testar:

Pra ficar imortal ou mortal novamente digite /imortal no chat

?
function imortal ( attacker, weapon, bodypart )
	if getElementData (source,"Imortal") then
		cancelEvent ()
	end
end
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), imortal )

addCommandHandler("imortal", function ()
  	if getElementData(source,"Imortal") then
		setElementData(source,"Imortal", false)
  	else
  		setElementData(source,"Imortal", true)
    end
  end)


 

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