Jump to content

Safe zone


TorNix~|nR

Recommended Posts

Hello guys, I have my script, a safe zone

when a player enters the safe zone, of course he can't kill players, but the problem is that all the damage are disabled

he have like a godmode

EXAMPLE: when a players falls from a long distance, he never get damaged, I want to disable this

I want the player get damaged, but not from players

help me please

Client side

addEventHandler( 'onClientPlayerDamage', localPlayer,
	function(attacker)
	 if getElementData(attacker,"dd") == true then return end
		if getElementData( localPlayer, 'damage' ) == 'no' then
			cancelEvent( )
		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...