Yea, funny. I tested change default "Commands" to different names and it not have affect...
But anyway, the way you wanted make sub-categories not going to work.
By arrange commands to top of category make easier to use.
adminmenu_sorting.txt
Before you try this my custom admin menu, make backup of yours.
Don't know how much rights you have given for those admins...
But try this, (and make backup before doing this)
Make new group in
admin_groups.cfg
Code:
Groups
{
/**
* Allowed properties for a group:
*
* "flags" - Flag string.
* "immunity" - Immunity level number, or a group name.
* If the group name is a number, prepend it with an
* '@' symbol similar to admins_simple.ini. Users
* will only inherit the level number if it's higher
* than their current value.
*/
"Default"
{
"immunity" "1"
}
"Full Admins"
{
/**
* You can override commands and command groups here.
* Specify a command name or group and either "allow" or "deny"
* Examples:
* ":CSDM" "allow"
* "csdm_enable" "deny"
*/
Overrides
{
}
"flags" "abcdefghiz"
/* Largish number for lots of in-between values. */
"immunity" "99"
}
"HD Admins"
{
Overrides
{
"sm_admin" "allow"
"sm_scramblenow" "allow"
"sm_scramblereset" "allow"
"sm_balls_cleanup" "allow"
}
"flags" "o"
}
}
add admin in this group,
admins.cfg (remove person from admin_simple.ini, don't add in both files!)
Code:
/**
* USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
*
* Each admin should have its own "Admin" section, followed by a name.
* The name does not have to be unique.
*
* Available properties: (Anything else is filtered as custom)
* "auth" - REQUIRED - Auth method to use. Built-in methods are:
* "steam" - Steam based authentication
* "name" - Name based authentication
* "ip" - IP based authentication
* Anything else is treated as custom.
* Note: Only one auth method is allowed per entry.
*
* "identity" - REQUIRED - Identification string, for example, a steamid or name.
* Note: Only one identity is allowed per entry.
*
* "password" - Optional password to require.
* "group" - Adds one group to the user's group table.
* "flags" - Adds one or more flags to the user's permissions.
* "immunity" - Sets the user's immunity level (0 = no immunity).
* Immunity can be any value. Admins with higher
* values cannot be targetted. See sm_immunity_mode
* to tweak the rules. Default value is 0.
*
* Example:
"BAILOPAN"
{
"auth" "steam"
"identity" "STEAM_0:1:16"
"flags" "abcdef"
}
*
*/
Admins
{
"That admin name"
{
"auth" "steam"
"identity" "STEAM_0:1:12345"
"group" "HD Admins"
}
}
- Now that admin can use admin menu with those commands what
"allowed"
Rest
TF2 Balls commands are hard coded in plugin and behind cvar
sm_balls_override "flag"
So I have given now flag "o" to "HD Admins" to example.
You can give also more flags to admin in admin.cfg, just add "flags" parameter.
Do what you like.