Add ChatFilter2, OverheadChat, EventGreeting and update several plugins

New plugins: ChatFilter2, OverheadChat, EventGreeting.

Updated: HostnameManager, Leader3 (chat and markers), NameFilter2 (plugin
and config), PlayerRankings_nohlstats (rank display modes), custom-chatcolors
(plugin and ccc.inc), Extend (sm_settimeleft).

Add shared includes the plugins build against: Break, ChatFilter2, Couch,
EventNotifier, TransmitManager, leader, ripext, unloze_playtime.
This commit is contained in:
2026-11-23 13:20:15 +00:00
parent 2dca39be8a
commit 3a52b1dfd1
25 changed files with 6209 additions and 175 deletions
+23
View File
@@ -18,6 +18,29 @@ public Action OnClientSayCommand(int client, const char[] command, const char[]
return Plugin_Handled;
}
//----------------------------------------------------------------------------------------------------
// ChatFilter2 (optional): safe chat players get censored marker titles.
//----------------------------------------------------------------------------------------------------
public void ChatFilter2_OnSafeChatChanged(int client, bool enabled)
{
g_bSafeChat[client] = enabled;
}
void Chat_OnChatFilter2Added()
{
g_bChatFilter2 = true;
for (int i = 1; i <= MaxClients; i++)
g_bSafeChat[i] = IsClientInGame(i) && ChatFilter2_IsSafeChatEnabled(i);
}
// Censored copies stay up but nobody counts as safe chat any more, so everyone sees the raw text.
void Chat_OnChatFilter2Removed()
{
g_bChatFilter2 = false;
for (int i = 1; i <= MaxClients; i++)
g_bSafeChat[i] = false;
}
//----------------------------------------------------------------------------------------------------
// Force-mute: while any leader is talking, mute everyone without admin access.
//----------------------------------------------------------------------------------------------------