possible fix of amb537

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401134
This commit is contained in:
Borja Ferrer 2007-07-16 21:32:17 +00:00
parent e620951ddc
commit 4bf15ee0bd

View File

@ -47,6 +47,12 @@ public OnPluginStart()
sm_flood_time = CreateConVar("sm_flood_time", "0.75", "Amount of time allowed between chat messages");
}
public OnClientPutInServer(client)
{
g_LastTime[client] = 0.0;
g_FloodTokens[client] = 0;
}
public Action:CheckChatFlood(client, args)
{
/* Chat from server console shouldn't be checked for flooding */