xTanKx Posted September 13, 2014 Share 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? Link to comment
Et-win Posted September 13, 2014 Share Posted September 13, 2014 What is function 'isElementWithinSafeZone' ? What are the debugscript 3 errors? Or maybe the event has to be 'onClientPlayerDamage' x: Link to comment
xTanKx Posted September 13, 2014 Author Share Posted September 13, 2014 It works! Thank you Link to comment
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