Альтернатива СУПЕРБАНУ?, Подскажите альтернативу надоедливому супербану... |
Здравствуйте, гость Вход | Регистрация
Наши новости:
|
|
|
Альтернатива СУПЕРБАНУ?, Подскажите альтернативу надоедливому супербану... |
Pakistan
|
23.6.2013, 0:20
Сообщение
|
|
|
|
|
|
|
winzh1
|
23.6.2013, 12:43
Сообщение
|
![]() |
Не знаешь как исправить ? Нужно перекомпилировать amxbans_main С этим color_chat.inl Скрытый текст /* AMXBans, managing bans for Half-Life modifications Copyright © 2003, 2004 Ronald Renes / Jeroen de Rover Copyright © 2009, 2010 Thomas Kurz Color Chat Inc refer to http://forums.alliedmods.net/showthread.php?t=45753 credits: teame06 ^x01 is Yellow ^x03 is Team Color. Ie. Red (Terrorist) or blue (Counter-Terrorist) or grey (SPECTATOR or UNASSIGNED). ^x04 is Green */ #if defined _colorchat_included #endinput #endif #define _colorchat_included enum Color { YELLOW = 1, // clients scr_concolor cvar color GREEN, // Green Color TEAM_COLOR, // Red, grey, blue GREY, // grey RED, // Red BLUE, // Blue } new const TeamName[][] = { "", "TERRORIST", "CT", "SPECTATOR" } public ColorChat(id, Color:type, const msg[], any:...) { new message[256]; switch(type) { case YELLOW: // clients scr_concolor cvar color { message[0] = 0x01; } case GREEN: // Green { message[0] = 0x04; } default: // White, Red, Blue { message[0] = 0x03; } } vformat(message[1], 191, msg, 4); // Make sure message is not longer than 192 character. Will crash the server. message[192] = '^0'; new team, ColorChange, index, MSG_Type; if(id) { MSG_Type = MSG_ONE_UNRELIABLE; index = id; } else { index = FindPlayer(); MSG_Type = MSG_BROADCAST; } team = get_user_team(index); ColorChange = ColorSelection(index, MSG_Type, type); replace_colors(message, 191); ShowColorMessage(index, MSG_Type, message); if(ColorChange) { Team_Info(index, MSG_Type, TeamName[team]); } return PLUGIN_CONTINUE } replace_colors(message[], len) { replace_all(message, len, "!g", "^x04"); replace_all(message, len, "!t", "^x03"); replace_all(message, len, "!y", "^x01"); } ShowColorMessage(id, type, message[]) { static msgSayText; if(!msgSayText) { msgSayText = get_user_msgid("SayText"); } message_begin(type, msgSayText, _, id); write_byte(id) write_string(message); message_end(); } Team_Info(id, type, team[]) { static msgTeamInfo; if(!msgTeamInfo) { msgTeamInfo = get_user_msgid("TeamInfo"); } message_begin(type, msgTeamInfo, _, id); write_byte(id); write_string(team); message_end(); return 1; } ColorSelection(index, type, Color:Type) { switch(Type) { case RED: { return Team_Info(index, type, TeamName[1]); } case BLUE: { return Team_Info(index, type, TeamName[2]); } case GREY: { return Team_Info(index, type, TeamName[0]); } } return 0; } FindPlayer() { new i = -1; while(i <= get_maxplayers()) { if(is_user_connected(++i)) return i; } return -1; } ![]() Установлю и настрою FreshBans, DopBan.
Писать в ЛС. |
|
|
|
ex3m777
|
23.6.2013, 13:54
Сообщение
|
![]() |
тут где-то было уже, мог бы и гугле порытся..
1. заменяешь color_chat.inl (скачать) который находится scripting/include/amxbans 2. открываешь amxbans_main.sma находишь там color_chat_init() и комментируй ее (поставь //) 3. скомпилируй плагин amxbans_main (после этого при бане не будет цветного текста)
Отредактировал: grishka444, - 23.6.2013, 13:59
![]() |
Поблагодарили 1 раз
|
|
RedL1ne
|
24.6.2013, 10:34
Сообщение
|
![]() |
Kirby Magicman,
Может, но что это меняет, если таки прекратили?) |
|
|
|
6bIpuk
|
24.6.2013, 16:37
Сообщение
|
|
|
mazdan,
У меня opengl detector банит через супербан,там ник не как не сменить)) |
|
|
|
![]() ![]() |