TorNix~|nR Posted August 3, 2017 Posted August 3, 2017 Hello guys, how do I set ACL access on this script, I don't know how help please function Skin(thePlayer, commandName) setElementModel(thePlayer, 10) end addCommandHandler("skin", Skin)
NeXuS™ Posted August 3, 2017 Posted August 3, 2017 Do you mean you want ACL access for the command? 1
NeXuS™ Posted August 3, 2017 Posted August 3, 2017 function Skin(thePlayer, commandName) setElementModel(thePlayer, 10) end addCommandHandler("skin", Skin, true) And then you have to write <right name="command.skin" access="true"/> into the ACL group which should have the right. 1
TorNix~|nR Posted August 3, 2017 Author Posted August 3, 2017 thank you, but is there no way use this? isObjectInACLGroup
TorNix~|nR Posted August 3, 2017 Author Posted August 3, 2017 I mean only the user on the ACL, can access to that command
NeXuS™ Posted August 3, 2017 Posted August 3, 2017 (edited) If you have an "Admin" ACL and you give right to that ACL, all users in that ACL can use the command. It doesn't matter if you use isObjectInACLGroup or just use the restricted feature in the addCommandHandler. Edited August 3, 2017 by NeXuS™ 1
TorNix~|nR Posted August 3, 2017 Author Posted August 3, 2017 Done! I made it, thanks for everything.
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