1. В папке '../configs/colored_translit/'
Создаем файл: prefix.ini
В этом файле вы будете вписывать ник и префикс
Пример:
- Код: Выделить всё
"BlackSmoke" "amx-x.ru"
"DJ_WEST" "AMX-X.RU"
2. В папке '../amxmodx/scripting/colored_translit/'
Создаем файл: prefix.inl
И вписываем туда следующее:
- Код: Выделить всё
/*
* Colored Translit v3.0 by Sho0ter
*/
public ct_message_format(id)
{
new szName[32], pos[2][127], szPr[32];
get_user_name(id, szName, 31);
for(new i; i < iLinesPrefix; i++)
{
parse(szStringFilePrefix[i], pos[0], 126, pos[1], 126);
if(equal(szName, pos[0]))
{
format(szPr, 31, "[^x04%s^x01]", pos[1])
ct_add_to_msg(CT_MSGPOS_PREFIX, szPr)
}
}
}
3. В папке '../amxmodx/scripting/colored_translit/'
Находим: defines.inl и cfg.inl
И вписываем туда следующее:
cfg.inl
- Код: Выделить всё
public plugin_cfg()
{
// ...
format(szPrefixFile, charsmax(szPrefixFile), "%s/colored_translit/prefix.ini", s_ConfigsDir)
if(file_exists(szPrefixFile))
{
while((iLinesPrefix < file_size(szPrefixFile, 1) && read_file(szPrefixFile, iLinesPrefix, szStringFilePrefix[iLinesPrefix], 255, Len)))
{
iLinesPrefix++;
}
}
defines.inl
- Код: Выделить всё
// ...
new szPrefixFile[127]
new szStringFilePrefix[100][256]
new iLinesPrefix
Скачать CT 3.0: Вы должны зарегистрироваться, чтобы видеть ссылки.
Внимание:
Обращайте внимание на окончания: INL и INI