115 lines
2.8 KiB
SourcePawn
115 lines
2.8 KiB
SourcePawn
|
#pragma semicolon 1
|
||
|
|
||
|
#include <sourcemod>
|
||
|
#include <sdktools>
|
||
|
#include <zombiereloaded>
|
||
|
#include <cstrike>
|
||
|
#include <ccc>
|
||
|
|
||
|
bool g_bHideLennies[MAXPLAYERS + 1] = { false, ... };
|
||
|
|
||
|
public Plugin myinfo =
|
||
|
{
|
||
|
name = "AntiLenny",
|
||
|
author = "Dogan",
|
||
|
description = "Make it possible to selfmute all Lennies",
|
||
|
version = "1.0.0",
|
||
|
url = ""
|
||
|
};
|
||
|
|
||
|
public void OnPluginStart()
|
||
|
{
|
||
|
RegConsoleCmd("sm_hide_lennies", HideLennies, "Toggle blocking Lennies");
|
||
|
}
|
||
|
|
||
|
public Action CCC_OnChatMessage(int client, int author, const char[] message)
|
||
|
{
|
||
|
if(g_bHideLennies[client] && StrContains(message, "( ͡° ͜ʖ ͡°)", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "(° ͜ʖ °)", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( ͝͠°͜ل͝͠°)", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( ͡° ͜ ͡°)", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( ͡°╭͜ʖ╮͡° )", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( ͠° ͜ʖ ͡°)", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( ° ͜ʖ °)", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "(╯°□°)╯", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "_(ツ)_", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( ̿°̿ ͜ل͜ ̿°̿ )", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( ͡", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( ͠", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( ͝", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "( °", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "(͡", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, " ಠ_ಠ", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "͡°", false) != -1)
|
||
|
{
|
||
|
return Plugin_Handled;
|
||
|
}
|
||
|
else if(g_bHideLennies[client] && StrContains(message, "°͡", 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;
|
||
|
}
|