Hi
I'm trying to restrict access to some entries in the admin menu, but I'm having trouble getting it to work.
Basically i have two admin groups configured, 'server owner' with the z flag, and 'server admin' with 'abcdefghjkl'
I have configured adminmenu_custom.txt like this:
Code:
"ServerCommands"
{
"admin" "sm_ban"
"Server Config"
{
"cmd" "sm_execcfg #1"
"admin" "sm_ban"
"execute" "server"
"1"
{
"type" "list"
"title" "Options:"
"1" "server.cfg"
"1." "Default Server"
"2" "sm_restart_round.cfg"
"2." "Restart Round"
}
}
"Stats"
{
"cmd" "sm_execcfg #1"
"admin" "sm_rcon"
"execute" "server"
"1"
{
"type" "list"
"title" "Stats:"
"1" "sm_hlx.cfg"
"1." "On"
"2" "sm_hlx_off.cfg"
"2." "Off"
}
}
etc
The problem is that the server admin group, without the r (sm_rcon) flag can still see and use the Stats option. How can I restrict some entries to only the server owner group? I don't want to globally restrict exec'ing configs as I use that for other commands which I want all admins to be able to use
Cheers!