AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Permissions for register_concmd (https://forums.alliedmods.net/showthread.php?t=204536)

xfirestorm 12-31-2012 11:38

Permissions for register_concmd
 
Hello,

I've added a "concmd" to the galileo plugin with ADMIN_LEVEL_B permission level, but I can only execute that command if I also have the ADMIN_MAP level set to an admin. Why is that? I don't want to set ADMIN_MAP permission to the admins that will have permission to use that command, have I done anything wrong?

Here is the code:
Quote:

register_concmd("gal_map","cmd_map",ADMIN_LEV EL_B,"<mapname>");
Or is there any other permissions I must set/change before ADMIN_LEVEL_B admins will be able to use this function?

Regards,
Thomas

YamiKaitou 12-31-2012 12:03

Re: Permissions for register_concmd
 
Change the permissions in the configs/cmdaccess.ini file

fysiks 12-31-2012 15:39

Re: Permissions for register_concmd
 
If it's an existing command then it does no good to change it in the plugin (and is a waste of time) because all commands and their permissions are retrieved from cmdaccess.ini after the first time the plugin has run.

xfirestorm 01-01-2013 06:12

Re: Permissions for register_concmd
 
Hello,

yep, that's done it. It wasn't an existing command, but I must have run the plugin with ADMIN_MAP flag first. So changing cmdaccess.ini file did the trick. Thank you!

Regards and happy new year!


All times are GMT -4. The time now is 13:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.