xTanKx Posted September 13, 2014 Posted September 13, 2014 Well, I'm making my RPG Server, and I want to give players who are in safe zone infinite health. I tryed to use these lines but don't work function canceldamage() if (not isElementWithinSafeZone(localPlayer)) then return end if (getElementDimension(localPlayer) ~= 0) then return end cancelEvent() end addEventHandler("onClientPedDamage", getRootElement(), canceldamage) Can you help me to do that?
Et-win Posted September 13, 2014 Posted September 13, 2014 What is function 'isElementWithinSafeZone' ? What are the debugscript 3 errors? Or maybe the event has to be 'onClientPlayerDamage' x:
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