75fb3b22f5
FAILED
58 lines
1.4 KiB
SourcePawn
58 lines
1.4 KiB
SourcePawn
#pragma semicolon 1
|
|
|
|
#include <sourcemod>
|
|
#include <sdktools>
|
|
#include <zombiereloaded>
|
|
#include <cstrike>
|
|
#include <ccc>
|
|
#include <multicolors>
|
|
|
|
bool g_bHideLennies[MAXPLAYERS + 1] = { false, ... };
|
|
|
|
char g_cLennies[20][] = {"( ͡° ͜ʖ ͡°)", "͜ʖ", "(° ͜ʖ °)", "( ͝͠°͜ل͝͠°)", "( ͡° ͜ ͡°)", "( ͡°╭͜ʖ╮͡° )", "( ͠° ͜ʖ ͡°)", "( ° ͜ʖ °)", "(╯°□°)╯", "_(ツ)_", "_ツ_", "( ̿°̿ ͜ل͜ ̿°̿ )", "( ͡", "( ͠", "( ͝", "( °", "(͡", "ಠ_ಠ", "͡°", "°͡"};
|
|
|
|
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)
|
|
{
|
|
char buffer[192];
|
|
strcopy(buffer, sizeof(buffer), message);
|
|
|
|
CRemoveTags(buffer, 192);
|
|
|
|
for(int i = 0; i < 20; i++)
|
|
{
|
|
if(g_bHideLennies[client] && StrContains(buffer, 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;
|
|
} |