Raised This Month: $ Target: $400
 0% 

Permissions for register_concmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xfirestorm
Member
Join Date: Mar 2012
Old 12-31-2012 , 11:38   Permissions for register_concmd
Reply With Quote #1

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
xfirestorm is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-31-2012 , 12:03   Re: Permissions for register_concmd
Reply With Quote #2

Change the permissions in the configs/cmdaccess.ini file
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-31-2012 , 15:39   Re: Permissions for register_concmd
Reply With Quote #3

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.
__________________
fysiks is offline
xfirestorm
Member
Join Date: Mar 2012
Old 01-01-2013 , 06:12   Re: Permissions for register_concmd
Reply With Quote #4

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!
xfirestorm is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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