Jump to content

little help


orcun99

Recommended Posts

function onSafeZoneHit (theElement)
	if theElement == localPlayer then
	if not getElementData(source, "Group") == "Four Dragons Family"  then
		outputChatBox(enterMessage, 0, 255, 0)
		
		toggleControl("fire", false)
		toggleControl("aim_weapon", false)
		toggleControl("next_weapon", false)
		toggleControl("previous_weapon", false)
		
		addEventHandler("onClientPlayerDamage", root, cancelEvent)
		drainTimer = setTimer(function() setElementHealth(localPlayer, 0) end, 10000, 1)
		else
		cancelEvent()
	end
end
end

    if  getElementData(source, "Group") == "Four Dragons Family"  then cancelevent

Edited by orcun99
Link to comment

try this

function onSafeZoneHit (theElement)
	if theElement == localPlayer then
		if getElementData(theElement, "Group") ~= "Four Dragons Family"  then
			outputChatBox(enterMessage, 0, 255, 0)
			toggleControl("fire", false)
			toggleControl("aim_weapon", false)
			toggleControl("next_weapon", false)
			toggleControl("previous_weapon", false)
			
			addEventHandler("onClientPlayerDamage", root, cancelEvent)
			drainTimer = setTimer(function() setElementHealth(localPlayer, 0) end, 10000, 1)
		end
	end
end

 

  • Like 1
Link to comment
11 minutes ago, Mahlukat said:

try this


function onSafeZoneHit (theElement)
	if theElement == localPlayer then
		if getElementData(theElement, "Group") ~= "Four Dragons Family"  then
			outputChatBox(enterMessage, 0, 255, 0)
			toggleControl("fire", false)
			toggleControl("aim_weapon", false)
			toggleControl("next_weapon", false)
			toggleControl("previous_weapon", false)
			
			addEventHandler("onClientPlayerDamage", root, cancelEvent)
			drainTimer = setTimer(function() setElementHealth(localPlayer, 0) end, 10000, 1)
		end
	end
end

 

works <3

  • Thanks 1
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...