Дада именно это я имел в виду, а где вписывать новые флаги, не подскажите?Флага u нет. Следовательно он хочет создать флаг u, но можно просто
C-подобный:ADMFLAG_CUSTOM7 / u / custom7 / Пользовательский флаг 7
Чушь не несите.Как вариант написать свой SourceMod с флагами которые тебе нужны.
/addons/sourcemod/configs/admin_levels.cfg/addons/sourcemod/data/admin_levels.cfg
/**
* There is no reason to edit this file. Core uses this to map each named
* access type to a given ASCII character. The names are all pre-defined.
*/
Levels
{
/**
* These are the default role flag mappings.
* You can assign new letters for custom purposes, however you should
* not change the default names, as SourceMod hardcodes these.
*/
Flags
{
"reservation" "a" //Reserved slots
"generic" "b" //Generic admin, required for admins
"kick" "c" //Kick other players
"ban" "d" //Banning other players
"unban" "e" //Removing bans
"slay" "f" //Slaying other players
"changemap" "g" //Changing the map
"cvars" "h" //Changing cvars
"config" "i" //Changing configs
"chat" "j" //Special chat privileges
"vote" "k" //Voting
"password" "l" //Password the server
"rcon" "m" //Remote console
"cheats" "n" //Change sv_cheats and related commands
/**
* Custom flags can be used by plugins, but they can also be used to
* for you to expand on the previous groups, using Overrides.
*/
"custom1" "o"
"custom2" "p"
"custom3" "q"
"custom4" "r"
"custom5" "s"
"custom6" "t"
"custom7" "u"
/**
* Root is a magic access flag that grants all permissions.
* This should only be given to trusted administrators.
* Root users can target anyone regardless of immunity,
* however, they themselves are not automatically immune.
*/
"root" "z"
}
}
Я же правильно понимаю?@hirowatch, упс, да. Исправил.
Этот файл хотели в data перетащить как-то... Видимо, он до сих пор в configs обитает.
"custom7" "u"
"custom8" "1"
Высрать "умную" мысль же надо людям :)Чушь не несите.
Остается только проверять на самом сервере, но делать этого конечно не буду.@hirowatch, на эти вопросы я уже ответить не смогу, т.к. я не занимался редактированием сего файла. Мне хватает дефолтной версии. У меня RBAC доступ.
Нужно добавитьКак вариант написать свой SourceMod с флагами которые тебе нужны.
Пробовал сделать, не получилось.Нужно добавить
sourcemod/AdminCache.cpp at 237db0504c7a59e394828446af3e8ca3d53ef647 · alliedmodders/sourcemod · GitHub
sourcemod/IAdminSystem.h at 237db0504c7a59e394828446af3e8ca3d53ef647 · alliedmodders/sourcemod · GitHub
sourcemod/admin.inc at 237db0504c7a59e394828446af3e8ca3d53ef647 · alliedmodders/sourcemod · GitHub
sourcemod/admin_levels.cfg at 237db0504c7a59e394828446af3e8ca3d53ef647 · alliedmodders/sourcemod · GitHub
sourcemod/basecommands.sp at c7f413f1b02a99781867d6ea3018684bd6c4a267 · alliedmodders/sourcemod · GitHub