added filter from boss

This commit is contained in:
christian 2021-08-15 18:41:17 +02:00
parent d65ccb60ee
commit 8405bc52f2

View File

@ -85,6 +85,22 @@ public void Event_RoundStart(Handle event, const char[] name, bool dontBroadcast
roundStartedTime = GetEngineTime();
}
public bool CheckString(const char[] string)
{
char Blacklist[][] = {
"recharge", "recast", "cooldown", "cool"
};
for (int i = 0; i < sizeof(Blacklist); i++)
{
if (StrContains(string, Blacklist[i], false) != -1)
{
return true;
}
}
return false;
}
public Action PointServerCommandForward(const char[] sCommand)
{
if (!strncmp("say", sCommand, 3, false))
@ -98,7 +114,7 @@ public Action PointServerCommandForward(const char[] sCommand)
sMessage[i] = sCommand[i + 4];
i++;
}
if (StrContains(sMessage, "sec", false) != -1)
if (StrContains(sMessage, "sec", false) != -1 && !CheckString(sMessage))
{
int indexTracker = -1
int endIndexTracker = -1