2018-11-29 22:04:39 +01:00
|
|
|
#pragma semicolon 1
|
|
|
|
|
|
|
|
#include <sourcemod>
|
|
|
|
#include <sdktools>
|
|
|
|
#include <zombiereloaded>
|
|
|
|
#include <cstrike>
|
|
|
|
#include <ccc>
|
|
|
|
|
|
|
|
bool g_bHideLennies[MAXPLAYERS + 1] = { false, ... };
|
|
|
|
|
2018-11-30 15:41:26 +01:00
|
|
|
char g_cLennies[19][] = {"( ͡° ͜ʖ ͡°)", "(° ͜ʖ °)", "( ͝͠°͜ل͝͠°)", "( ͡° ͜ ͡°)", "( ͡°╭͜ʖ╮͡° )", "( ͠° ͜ʖ ͡°)", "( ° ͜ʖ °)", "(╯°□°)╯", "_(ツ)_", "_ツ_", "( ̿°̿ ͜ل͜ ̿°̿ )", "( ͡", "( ͠", "( ͝", "( °", "(͡", "ಠ_ಠ", "͡°", "°͡"};
|
|
|
|
|
2018-11-29 22:04:39 +01:00
|
|
|
public Plugin myinfo =
|
|
|
|
{
|
|
|
|
name = "AntiLenny",
|
|
|
|
author = "Dogan",
|
2018-11-30 15:41:26 +01:00
|
|
|
description = "Makes it possible to selfmute Lennies",
|
|
|
|
version = "1.1.0",
|
2018-11-29 22:04:39 +01:00
|
|
|
url = ""
|
2018-11-30 15:41:26 +01:00
|
|
|
}
|
2018-11-29 22:04:39 +01:00
|
|
|
|
|
|
|
public void OnPluginStart()
|
|
|
|
{
|
|
|
|
RegConsoleCmd("sm_hide_lennies", HideLennies, "Toggle blocking Lennies");
|
|
|
|
}
|
|
|
|
|
|
|
|
public Action CCC_OnChatMessage(int client, int author, const char[] message)
|
|
|
|
{
|
2018-11-30 15:41:26 +01:00
|
|
|
for(int i = 0; i < 19; i++)
|
2018-11-29 22:30:46 +01:00
|
|
|
{
|
2018-11-30 15:41:26 +01:00
|
|
|
if(g_bHideLennies[client] && StrContains(message, g_cLennies[i], false) != -1)
|
|
|
|
{
|
|
|
|
return Plugin_Handled;
|
|
|
|
}
|
2018-11-29 22:04:39 +01:00
|
|
|
}
|
|
|
|
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;
|
|
|
|
}
|