JoaoZanetti Posted January 27, 2017 Posted January 27, 2017 How can i create a acl and add someone from console window? Not console from game (f8) but console-server. Pro Drift Brasil
MIKI785 Posted January 27, 2017 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. Lua Scripter Owner of mshost.cz MTA portal.
JoaoZanetti Posted January 27, 2017 Author 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. Pro Drift Brasil
Addlibs Posted January 27, 2017 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 Previously known as MrTasty.
JoaoZanetti Posted January 31, 2017 Author 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. Pro Drift Brasil
Addlibs Posted January 31, 2017 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 Previously known as MrTasty.
marty000123 Posted February 1, 2017 Posted February 1, 2017 1 hour ago, deopromta said: u cant lol from F8 only from ACLpanel What's an ACL-panel?
Abu-Solo Posted February 1, 2017 Posted February 1, 2017 ACL MANAGER ... In resources tab خلك احسن من غيرك, لا تقول عندهم اشياء ماهي عندي انت عندك اشياء ماهي عند غيرك #
JoaoZanetti Posted February 4, 2017 Author 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. Pro Drift Brasil
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