MRThinker Posted July 16, 2018 Share Posted July 16, 2018 (edited) hi guys. give me a script for set spawn acl group "Admin" example : all Admins on join spawn at 1040.21, 1037.02, 11 like : acl group "Admin" when join server spawn at 1040.21, 1037.02, 11 and when killing spawn at 1040.21, 1037.02, 11 tnx Edited July 16, 2018 by MRThinker Link to comment
MRThinker Posted July 16, 2018 Author Share Posted July 16, 2018 @Galactix You can help Me? Link to comment
Dimos7 Posted July 16, 2018 Share Posted July 16, 2018 (edited) addEventHandler("onPlayerLogin", root, function() acc = getPlayerAccount(source) accName = getAccountName(acc) if isObjectInACLGroup("user."..accName,aclGetGroup("admin")) then setElementPosition(source, 1040.21, 1037.02, 11) end end) Edited July 16, 2018 by Dimos7 Link to comment
Infinity# Posted July 17, 2018 Share Posted July 17, 2018 (edited) 12 hours ago, Dimos7 said: addEventHandler("onPlayerLogin", root, function() acc = getPlayerAccount(source) accName = getAccountName(acc) if isObjectInACLGroup("user."..accName,aclGetGroup("admin")) then setElementPosition(source, 1040.21, 1037.02, 11) end end) Capital A on "admin", everything else should be good Edited July 17, 2018 by Infinity# Link to comment
MRThinker Posted July 17, 2018 Author Share Posted July 17, 2018 21 hours ago, Dimos7 said: addEventHandler("onPlayerLogin", root, function() acc = getPlayerAccount(source) accName = getAccountName(acc) if isObjectInACLGroup("user."..accName,aclGetGroup("admin")) then setElementPosition(source, 1040.21, 1037.02, 11) end end) thanks 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