tony402 Posted April 9, 2014 Posted April 9, 2014 Hi, my name is tony and i am an admin a sever and i just recently download CCTV Cameras resource but the problem is that any one can type in the command /cctv and create cameras or delete them. can some one please tell me how to make that command only for admin. thnks
Castillo Posted April 10, 2014 Posted April 10, 2014 Read the description next time: Access to setup can be blocked for specific groups by disallowing them "command.cctv", obviously.
tony402 Posted April 10, 2014 Author Posted April 10, 2014 i already read that but the problem is that its only Admins and the rest of the players. I don't have groups. i just want the command only for admin. thnks
Woovie Posted April 10, 2014 Posted April 10, 2014 You still don't have a single clue what he's talking about. You need to edit your ACL file.
tony402 Posted April 10, 2014 Author Posted April 10, 2014 i already edited my ACL list but then even the admins cant type in the command any more. in acl gruop defualt i put command.cctv to false,but again that blocks the admin from accessing the command too.
Twisted Posted April 11, 2014 Posted April 11, 2014 i already edited my ACL list but then even the admins cant type in the command any more. in acl gruop defualt i put command.cctv to false,but again that blocks the admin from accessing the command too. You tried adding "command.cctv" in the Admin group of the ACL?
tony402 Posted April 11, 2014 Author Posted April 11, 2014 yes but still i cant access the command, pls help.
Noki Posted April 11, 2014 Posted April 11, 2014 https://wiki.multitheftauto.com/wiki/AddCommandHandler [bool restricted = false, bool caseSensitive = true] restricted: Specify whether or not this command should be restricted by default. Use this on commands that should be inaccessible to everyone as default except special users specified in the ACL (Access Control List). This is to make sure admin commands such as ie. 'punish' won't be available to everyone if a server administrator forgets masking it in ACL. Make sure to add the command to your ACL under the proper group for it to be usefull (i.e ). This argument defaults to false if nothing is specified. addCommandHandler("cctv", functionName, true)
tony402 Posted April 11, 2014 Author Posted April 11, 2014 Where do I add the command handler, I know i have to add it in the ACL list but where in the ACL List I'm new to this. Thnks
tony402 Posted April 12, 2014 Author Posted April 12, 2014 I added it to defualt as false, and I added it to admin as true but I can't access it.
tony402 Posted April 12, 2014 Author Posted April 12, 2014 Only I am in the Admin ACL group. Is user.* suppose to be in admin ACL.
tony402 Posted April 14, 2014 Author Posted April 14, 2014 Can someone help me pls I really need to make that command only for admins.
Twisted Posted April 14, 2014 Posted April 14, 2014 Is user.* suppose to be in admin ACL. No it's not. Also we've all told you how to restrict it. just add "command.cctv" access to true in Admin and false in Default. Also make sure you're in the Admin ACL group.
tony402 Posted April 15, 2014 Author Posted April 15, 2014 I have done that but it still blocks the admins too.
tony402 Posted April 15, 2014 Author Posted April 15, 2014 Thanks you all for helping me, i found the solution again thanks a lot
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