Jump to content

Cameras


tony402

Recommended Posts

Posted

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

Posted

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

Posted

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.

Posted
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?

Posted
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)

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...