View Single Post
rolay07
Junior Member
Join Date: Apr 2013
Old 01-14-2016 , 20:44   Re: [Any] Enable / Disable Plugins
Reply With Quote #23

Quote:
Originally Posted by KGB View Post
could you point me in the right direction of creating a custom menu to the sm_admin menu of enabling and disable certain plugins?
I know it's been a while, but maybe it will help for someone:

So, my solution is (adminmenu_custom.txt):

Code:
"Commands"
{ 

	"Plugin toggle"

	{
		"RANDOM PLUGIN"
		{
			"cmd"		"plugins #1 random_plugin.smx"
			"admin"		"sm_ban"
			"execute"	"server"
			"1"
			{
				"type" 		"list"
				"title"		"Turn the Random plugin:"
				"1"		"enable"
				"1."		"ON"
				"2"		"disable"
				"2."		"OFF"
			}
		}
		"ANOTHER PLUGIN"
		{
			"cmd"		"plugins #1 another_plugin.smx"
			"admin"		"sm_ban"
			"execute"	"server"
			"1"
			{
				"type" 		"list"
				"title"		"Turn the Another plugin:"
				"1"		"enable"
				"1."		"ON"
				"2"		"disable"
				"2."		"OFF"
			}
		}
	}

}

Last edited by rolay07; 01-14-2016 at 20:44.
rolay07 is offline