forked from UNLOZE/sm-plugins
[AntiFlood] Block all commands from unconnected players, can't kick them while unconnected.
This commit is contained in:
@@ -55,6 +55,9 @@ bool FloodCheck(int client)
|
||||
if(client <= 0 || client > MaxClients)
|
||||
return false;
|
||||
|
||||
if(!IsClientConnected(client))
|
||||
return true;
|
||||
|
||||
if(++g_Client_CommandCount[client] <= MAX_COMMANDS)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user