Raised This Month: $ Target: $400
 0% 

Restricting Admin Menu Command Access


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 08-20-2008 , 18:44   Restricting Admin Menu Command Access
Reply With Quote #1

Hi

I'm trying to restrict access to some entries in the admin menu, but I'm having trouble getting it to work.

Basically i have two admin groups configured, 'server owner' with the z flag, and 'server admin' with 'abcdefghjkl'

I have configured adminmenu_custom.txt like this:

Code:
    "ServerCommands"
    {
        "admin"            "sm_ban"
        "Server Config"
        {
            "cmd"        "sm_execcfg #1"
            "admin"        "sm_ban"
            "execute"        "server"
            "1"
            {
                "type"         "list"
                "title"        "Options:"
                "1"        "server.cfg"
                "1."        "Default Server"
                "2"        "sm_restart_round.cfg"
                "2."        "Restart Round"
            }
        }
        "Stats"
        {
            "cmd"        "sm_execcfg #1"
            "admin"        "sm_rcon"
            "execute"        "server"
            "1"
            {
                "type"         "list"
                "title"        "Stats:"
                "1"        "sm_hlx.cfg"
                "1."        "On"
                "2"        "sm_hlx_off.cfg"
                "2."        "Off"
            }
        }
etc
The problem is that the server admin group, without the r (sm_rcon) flag can still see and use the Stats option. How can I restrict some entries to only the server owner group? I don't want to globally restrict exec'ing configs as I use that for other commands which I want all admins to be able to use

Cheers!
Nomarky is offline
DeaD_EyE82
AlliedModders Donor
Join Date: Jan 2006
Location: Germany
Old 08-20-2008 , 19:03   Re: Restricting Admin Menu Command Access
Reply With Quote #2

Use the file admin_overrides.cfg and change flag from the command "sm_rcon" to "z"
DeaD_EyE82 is offline
Send a message via ICQ to DeaD_EyE82
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 08-21-2008 , 04:23   Re: Restricting Admin Menu Command Access
Reply With Quote #3

Hmm, that didn't work...I've never gotten this to work the way I want. Am I setting up the custom admin menu incorrectly?
Nomarky 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:48.


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