Quote:
Originally Posted by KGB
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"
}
}
}
}