Можно ли "порезать" sm админку?

mrmonkey

Участник
Сообщения
23
Реакции
0
Мне очень нужно порезать меню голосований.Некоторые команды неприемлемы для зм сервера, да и админы будут баловаться.
http://savepic.org/3759756.jpg - можно ли порезать это меню и оставить только голосование на смену карты?
Заранее спасибо.
 

Sam_Fisher

Участник
Сообщения
703
Реакции
203
Конечно можно, для этого существуют флаги администраторов. Либо использовать кастомное админ-меню.
 

SilentShadow

Участник
Сообщения
10
Реакции
2
Когда будешь давать кому то админку, не давай флаг "j", и пропиши в /addons/sourcemod/configs/admin_overrides.cfg
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.
*/
"sm_votemap" "b"
}
 

mrmonkey

Участник
Сообщения
23
Реакции
0
Конечно можно, для этого существуют флаги администраторов. Либо использовать кастомное админ-меню.
если я уберу флаг k, то и смена карты не будет доступна.

Добавлено через 2 минуты
Когда будешь давать кому то админку, не давай флаг "j", и пропиши в /addons/sourcemod/configs/admin_overrides.cfg
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.
*/
"sm_votemap" "b"
}
То, что у тебя в спойлере у меня давно прописано.И почему не давать флаг j?

Добавлено через 50 минут
Проблему решил, прописал команды в отдельный флаг через admin_overrides.cfg
 
Последнее редактирование:
Сверху Снизу