Raised This Month: $ Target: $400
 0% 

Autoclose custom admin menu?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chinagreenelvis
Senior Member
Join Date: Dec 2009
Old 12-17-2013 , 14:50   Autoclose custom admin menu?
Reply With Quote #1

Here is an example of what my adminmenu_custom.txt looks like:

PHP Code:
"Commands"
{
    
"Custom"
    
{
        
"Switch to Custom Maps"
        
{
            
"cmd"            "sm_cvar mapcyclefile mapcycle_custom.txt"
            "admin"            "sm_kick"
            "execute"        "server"
        
}
    }

This option changes the map cycle file. Simple enough. And it works - but the menu stays open even after the option is selected. How do I get it so that selecting the option also exits the admin menu?

Last edited by chinagreenelvis; 12-17-2013 at 14:51.
chinagreenelvis is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-18-2013 , 04:01   Re: Autoclose custom admin menu?
Reply With Quote #2

no, there isn't autoclose feature when using adminmenu_custom.txt.

either, you grant those admins to use admin command "sm_execcfg"
Then you have file ...addons/sourcemod/configs/adminmenu_cfgs.txt
Add in there your new cfg file which include
mapcyclefile mapcycle_custom.txt
In admin menu you see option Server Commands -> Exec CFG

or request new tiny plugin...

Last edited by Bacardi; 12-18-2013 at 04:03.
Bacardi 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 08:51.


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