From d31c79c1b1d5c9eee2d9df2a4bfbdb37f4672b98 Mon Sep 17 00:00:00 2001 From: zaCade Date: Sat, 28 Jan 2023 14:46:17 +0100 Subject: [PATCH] [AntiFlood] Block all commands from unconnected players, can't kick them while unconnected. --- AntiFlood/scripting/AntiFlood.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AntiFlood/scripting/AntiFlood.sp b/AntiFlood/scripting/AntiFlood.sp index b264426f..17834e0b 100644 --- a/AntiFlood/scripting/AntiFlood.sp +++ b/AntiFlood/scripting/AntiFlood.sp @@ -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;