make it more proper

This commit is contained in:
DoganGFL 2018-11-30 15:41:26 +01:00
parent 2ebe478683
commit a7170b133a

View File

@ -8,14 +8,16 @@
bool g_bHideLennies[MAXPLAYERS + 1] = { false, ... };
char g_cLennies[19][] = {"( ͡° ͜ʖ ͡°)", "(° ͜ʖ °)", "( ͝͠°͜ل͝͠°)", "( ͡° ͜ ͡°)", "( ͡°╭͜ʖ╮͡° )", "( ͠° ͜ʖ ͡°)", "( ° ͜ʖ °)", "(╯°□°)╯", "_(ツ)_", "_ツ_", "( ̿°̿ ͜ل͜ ̿°̿ )", "( ͡", "( ͠", "( ͝", "( °", "", "ಠ_ಠ", "͡°", "°͡"};
public Plugin myinfo =
{
name = "AntiLenny",
author = "Dogan",
description = "Make it possible to selfmute all Lennies",
version = "1.0.0",
description = "Makes it possible to selfmute Lennies",
version = "1.1.0",
url = ""
};
}
public void OnPluginStart()
{
@ -24,81 +26,12 @@ public void OnPluginStart()
public Action CCC_OnChatMessage(int client, int author, const char[] message)
{
if(g_bHideLennies[client] && StrContains(message, "( ͡° ͜ʖ ͡°)", false) != -1)
for(int i = 0; i < 19; i++)
{
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;
}
else if(g_bHideLennies[client] && StrContains(message, "°͡", false) != -1)
{
return Plugin_Handled;
if(g_bHideLennies[client] && StrContains(message, g_cLennies[i], false) != -1)
{
return Plugin_Handled;
}
}
return Plugin_Continue;
}