prozi Posted January 15, 2013 Share Posted January 15, 2013 Hello people. I am starting with my own server, and decided to buy host for it when I do all needed things first. But now, my help request. I need help to lock "Full Godmode" script I found from Community resources to an "Admins" spawn, so Admins wouldn't get hurt/deathmatched (yes..I am starting RPG server). Can someone help me? Your, Prozi Link to comment
GTX Posted January 15, 2013 Share Posted January 15, 2013 Try this: Server: addEventHandler("onPlayerLogin", root, function(_, b) local account = getAccountName(b) if isObjectInACLGroup("user.".. account, aclGetGroup("Admin" )) then setElementData(source, "gm", "true") end end ) Client: addEventHandler("onClientPlayerDamage", localPlayer, function() if getElementData(source, "gm") then cancelEvent() end end ) 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