JoaoZanetti Posted January 27, 2017 Share Posted January 27, 2017 How can i create a acl and add someone from console window? Not console from game (f8) but console-server. Link to comment
MIKI785 Posted January 27, 2017 Share Posted January 27, 2017 There are no commands to do that, either create a resource yourself or use runcode and ACL functions to do it manually. Link to comment
JoaoZanetti Posted January 27, 2017 Author Share Posted January 27, 2017 Maybe i can create a resource that create a group and put some user inside this group, reload acl and after 10 seconds stop and a .sh file delete this resource. Maybe this work. Link to comment
Addlibs Posted January 27, 2017 Share Posted January 27, 2017 (edited) You can use runcode from the server console, and run the following code (however, both resource.runcode and user.Console must be in a privileged group like Admin for this to work) ACLGroup.get("ACL GROUP NAME HERE"):addObject("user.ACCOUNT NAME HERE") (this should work if runcode has OOP enabled.) Edited January 27, 2017 by MrTasty Link to comment
JoaoZanetti Posted January 31, 2017 Author Share Posted January 31, 2017 On 1/27/2017 at 21:02, MrTasty said: You can use runcode from the server console, and run the following code (however, both resource.runcode and user.Console must be in a privileged group like Admin for this to work) ACLGroup.get("ACL GROUP NAME HERE"):addObject("user.ACCOUNT NAME HERE") (this should work if runcode has OOP enabled.) Set all permissions to Admin, run your code and didn't worked. Link to comment
Addlibs Posted January 31, 2017 Share Posted January 31, 2017 (edited) By running the code with runcode, I meant use the console command /run (or /srun), followed by that code. /run ACLGroup.get("ACL GROUP NAME HERE"):addObject("user.ACCOUNT NAME HERE") Make sure runcode is running (if it isn't, or you're unsure, just /start runcode) Edited January 31, 2017 by MrTasty Link to comment
deopromta Posted February 1, 2017 Share Posted February 1, 2017 u cant lol from F8 only from ACLpanel Link to comment
marty000123 Posted February 1, 2017 Share Posted February 1, 2017 1 hour ago, deopromta said: u cant lol from F8 only from ACLpanel What's an ACL-panel? Link to comment
Abu-Solo Posted February 1, 2017 Share Posted February 1, 2017 ACL MANAGER ... In resources tab Link to comment
JoaoZanetti Posted February 4, 2017 Author Share Posted February 4, 2017 On 2/1/2017 at 05:57, deopromta said: u cant lol from F8 only from ACLpanel On 2/1/2017 at 07:40, Abu-Solo said: ACL MANAGER ... In resources tab Will be a server python script that will run this command, not a person. On 1/31/2017 at 19:17, MrTasty said: By running the code with runcode, I meant use the console command /run (or /srun), followed by that code. /run ACLGroup.get("ACL GROUP NAME HERE"):addObject("user.ACCOUNT NAME HERE") Make sure runcode is running (if it isn't, or you're unsure, just /start runcode) Thanks! I will try that. Link to comment
deopromta Posted February 6, 2017 Share Posted February 6, 2017 yea i thinks it is work 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