orcun99 Posted February 17, 2018 Posted February 17, 2018 (edited) 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 February 17, 2018 by orcun99
Mahlukat Posted February 17, 2018 Posted February 17, 2018 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 1
orcun99 Posted February 17, 2018 Author Posted February 17, 2018 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 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now