Can't do sub-menus.
SM adminmenu_custom.txt start build command parameter after selected category.
Example if we make new kick command in menu under PlayerCommands.
Command itself works this way
Code:
[SM] Usage: sm_kick <#userid|name> [reason]
Make in admin menu
Code:
"Commands"
{
"PlayerCommands" // Player Commands category
{
"Kick" // Command title in menu
{
"cmd" "sm_kick #1 @2" // command with 2 parameter
"1" // target
{
"title" "<#userid|name>"
"type" "player"
}
"2" // reason
{
"title" "[reason]"
"type" "list"
"1" "Reason text"
}
}
}
}
Can execute multiple commands same time, separated with semicolon ;
Need execute from server and add "admin" to not show public
Code:
"Commands"
{
"New Menu"
{
"Respawn + cash"
{
"admin" "sm_cash" // Admins who have access this command can see this in menu
"cmd" "sm_respawn #1; sm_cash #1 @2"
"execute" "server" // execute commands from server
"1"
{
"title" "Respawn"
"type" "player"
}
"2"
{
"title" "Cash"
"type" "list"
"1" "16000"
}
}
}
}
And lot of more things can do.
With admin groups you can limit show commands on menu and categories.
Or hide yourself, works when not add z flag to yourself.
__________________