Jump to content

Cameras


tony402

Recommended Posts

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

Link to comment
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?

Link to comment
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)

Link to comment

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