#pragma semicolon 1 #include #include #include #include #include bool g_bHideLennies[MAXPLAYERS + 1] = { false, ... }; char g_cLennies[19][] = {"( ͡° ͜ʖ ͡°)", "(° ͜ʖ °)", "( ͝͠°͜ل͝͠°)", "( ͡° ͜ ͡°)", "( ͡°╭͜ʖ╮͡° )", "( ͠° ͜ʖ ͡°)", "( ° ͜ʖ °)", "(╯°□°)╯", "_(ツ)_", "_ツ_", "( ̿°̿ ͜ل͜ ̿°̿ )", "( ͡", "( ͠", "( ͝", "( °", "(͡", "ಠ_ಠ", "͡°", "°͡"}; public Plugin myinfo = { name = "AntiLenny", author = "Dogan", description = "Makes it possible to selfmute Lennies", version = "1.1.0", url = "" } public void OnPluginStart() { RegConsoleCmd("sm_hide_lennies", HideLennies, "Toggle blocking Lennies"); } public Action CCC_OnChatMessage(int client, int author, const char[] message) { for(int i = 0; i < 19; i++) { if(g_bHideLennies[client] && StrContains(message, g_cLennies[i], false) != -1) { return Plugin_Handled; } } return Plugin_Continue; } public Action HideLennies(int client, int args) { g_bHideLennies[client] = !g_bHideLennies[client]; if(g_bHideLennies[client]) { ReplyToCommand(client, "You blocked Lennies"); } else { ReplyToCommand(client, "You unblocked Lennies"); } return Plugin_Handled; }