#if defined _ChatFilter2_included_ #endinput #endif #define _ChatFilter2_included_ /** * Censors bad words in a string the same way safe chat does, with every category. * * @param text String to censor in place * @param maxlen Size of text * @return True if anything was censored */ native bool ChatFilter2_CensorText(char[] text, int maxlen); /** * Checks if a client has safe chat enabled. * * @param client Client index * @return True if safe chat is enabled */ native bool ChatFilter2_IsSafeChatEnabled(int client); /** * Called when a client toggles safe chat, and when their cookies load with safe chat enabled. * * @param client Client index * @param enabled True if safe chat is now enabled */ forward void ChatFilter2_OnSafeChatChanged(int client, bool enabled); #if !defined CHATFILTER2_CORE public SharedPlugin __pl_ChatFilter2 = { name = "ChatFilter2", file = "ChatFilter2.smx", #if defined REQUIRE_PLUGIN required = 1, #else required = 0, #endif }; #if !defined REQUIRE_PLUGIN public void __pl_ChatFilter2_SetNTVOptional() { MarkNativeAsOptional("ChatFilter2_CensorText"); MarkNativeAsOptional("ChatFilter2_IsSafeChatEnabled"); } #endif #endif // CHATFILTER2_CORE