ZeyadGTX Posted June 18, 2014 Share Posted June 18, 2014 Hey i have Spawn Point But i Have Problem i tried all Spawn point Protection and Not Working can some one make spawn protection for this point and thanks "ranch" posX="-711" posY="957" posZ="12.4" rotation="90"> Link to comment
ZeyadGTX Posted June 18, 2014 Author Share Posted June 18, 2014 Spawn protection when you spawn for 5 seconds i mean no one can kill you after 5 seconds when you spawn like friendly fire Link to comment
Max+ Posted June 18, 2014 Share Posted June 18, 2014 https://community.multitheftauto.com/index.php?p= ... ls&id=3571 Link to comment
ZeyadGTX Posted June 18, 2014 Author Share Posted June 18, 2014 and its Compiled idk where to add the XYZ of spawn Link to comment
Max+ Posted June 18, 2014 Share Posted June 18, 2014 Please Make sure you make the topic in the right section . ---Clinet addEventHandler("onClientPlayerDamage",getRootElement(), function() if getElementData(getLocalPlayer(),"spawnprotect") == "true" then cancelEvent() end end ) ----Server addEventHandler("onPlayerSpawn",getRootElement(), function() setElementData(source,"spawnprotect","true") setElementAlpha(source,150) setTimer(setElementData,10000,1,source,"spawnprotect","false") setTimer(setElementAlpha,10000,1,source,255) end ) Link to comment
ZeyadGTX Posted June 18, 2014 Author Share Posted June 18, 2014 it works but i can be killed when iam protected 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