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