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