TorNix~|nR Posted August 3, 2017 Share 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) Link to comment
NeXuS™ Posted August 3, 2017 Share Posted August 3, 2017 Do you mean you want ACL access for the command? 1 Link to comment
NeXuS™ Posted August 3, 2017 Share 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 Link to comment
TorNix~|nR Posted August 3, 2017 Author Share Posted August 3, 2017 thank you, but is there no way use this? isObjectInACLGroup Link to comment
NeXuS™ Posted August 3, 2017 Share Posted August 3, 2017 You can use that function too. 1 Link to comment
TorNix~|nR Posted August 3, 2017 Author Share Posted August 3, 2017 I mean only the user on the ACL, can access to that command Link to comment
NeXuS™ Posted August 3, 2017 Share 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 Link to comment
TorNix~|nR Posted August 3, 2017 Author Share Posted August 3, 2017 Done! I made it, thanks for everything. 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