Raised This Month: $51 Target: $400
 12% 

Custom admin menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
teol
Veteran Member
Join Date: Oct 2009
Location: Marbella
Old 10-26-2013 , 11:23   Custom admin menu
Reply With Quote #1

Hi,

I am currently running a L4D2 server with sourcemod 1.5.1.
I am trying to add options in my admin menu. I found this : http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29

Here is my adminmenu_custom.txt:
Code:
"Commands"
{
    "AirStrike"
    {
        "cmd"            "sm_strike"
        "admin"            "sm_kick"
        "execute"        "player"
    }
    "Juif"
    {
        "cmd"            "sm_juif #1"
        "admin"            "sm_kick"
        "execute"        "player"
        "1"
        {
            "type"         "player"
            "method"    "name"
            "title"        "Activer le mode youpin"
        }
    }
}
I wanted to have a new "AirStrike" line which open the AirStrike plugin's menu, and a second one which exec the command "sm_juif #1" where #1 is a player name.

The problem is that nothing changed, the admin menu is still the same after the reboot... Did I do something wrong ?

Regards,

Last edited by teol; 10-26-2013 at 11:24.
teol is offline
jackmakes
New Member
Join Date: Oct 2013
Old 10-28-2013 , 02:44   Re: Custom admin menu
Reply With Quote #2

Thanks for sharing information,your information increase my knowledge.Your information very helpful for me.
__________________
jackmakes is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 10-28-2013 , 11:44   Re: Custom admin menu
Reply With Quote #3

Dunno if this is related, but you didnt create or give a category:
Try this:

Code:
"Commands"
{
    "YourCategoryName"
	{
		"AirStrike"
		{
			"cmd"            "sm_strike"
			"admin"            "sm_kick"
			"execute"        "player"
		}
		"Juif"
		{
			"cmd"            "sm_juif #1"
			"admin"            "sm_kick"
			"execute"        "player"
			"1"
			{
				"type"         "player"
				"method"    "name"
				"title"        "Activer le mode youpin"
			}
		}
	}
}
You can Change "YourCategoryName" to whatever you want. If you want to sort your commands into excisting ones, then give them the Categoryname Of your choice. Default ones are:
"PlayerCommands" "ServerCommands" "VotingCommands" (quite obvious, but I always have to look for this ^^ )
__________________

Last edited by micazoid; 10-28-2013 at 11:46.
micazoid is offline
teol
Veteran Member
Join Date: Oct 2009
Location: Marbella
Old 10-29-2013 , 17:29   Re: Custom admin menu
Reply With Quote #4

Ok I will try it, thanks.
teol 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 16:54.


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