Hey guys, according to sourcemode docs i will just need to modify admin_overrides.cfg with command name and flag,
like
PHP Code:
Overrides
{
"[name1]" "[flags]"
"@[group1]" "[flags]"
/* ... */
}
i tried this ;
PHP Code:
Overrides
{
/**
* By default, commands are registered with three pieces of information:
* 1)Command Name (for example, "csdm_enable")
* 2)Command Group Name (for example, "CSDM")
* 3)Command Level (for example, "changemap")
*
* You can override the default flags assigned to individual commands or command groups in this way.
* To override a group, use the "@" character before the name. Example:
* Examples:
* "@CSDM" "b" // Override the CSDM group to 'b' flag
* "csdm_enable" "bgi" // Override the csdm_enable command to 'bgi' flags
*
* Note that for overrides, order is important. In the above example, csdm_enable overwrites
* any setting that csdm_enable previously had.
*
* You can make a command completely public by using an empty flag string.
*/
"sv_enablebunnyhopping 1" "o"
"sv_autobunnyhopping 1" "o"
"sv_maxspeed 400" "o"
}
expected result;
any player with flag o, can have bhop enabled and run or walk speed increased.
result;
nothing changes at all.
am i doing it wrong?
second question , according to docs too, in order to add a menu item to admin menu, i would modify the adminmenu_custom.txt
i tried ;
PHP Code:
"Commands"
{
"ServerCommands"
{
"Execute My Cvars"
{
"admin" "root"
"cmd" "sv_enablebunnyhopping 1"
"execute" "server"
}
}
}
expected result;
new admin menu item that enables bhop,
actual result;
no item at all.
am i doing it wrong? advice please.