added filter from boss
This commit is contained in:
parent
d65ccb60ee
commit
8405bc52f2
@ -85,6 +85,22 @@ public void Event_RoundStart(Handle event, const char[] name, bool dontBroadcast
|
|||||||
roundStartedTime = GetEngineTime();
|
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)
|
public Action PointServerCommandForward(const char[] sCommand)
|
||||||
{
|
{
|
||||||
if (!strncmp("say", sCommand, 3, false))
|
if (!strncmp("say", sCommand, 3, false))
|
||||||
@ -98,7 +114,7 @@ public Action PointServerCommandForward(const char[] sCommand)
|
|||||||
sMessage[i] = sCommand[i + 4];
|
sMessage[i] = sCommand[i + 4];
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
if (StrContains(sMessage, "sec", false) != -1)
|
if (StrContains(sMessage, "sec", false) != -1 && !CheckString(sMessage))
|
||||||
{
|
{
|
||||||
int indexTracker = -1
|
int indexTracker = -1
|
||||||
int endIndexTracker = -1
|
int endIndexTracker = -1
|
||||||
|
Loading…
Reference in New Issue
Block a user