From 4c69c978b2357475d9e63a02e0bf2a1244419285 Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 21 Mar 2026 12:22:38 +0100 Subject: [PATCH] allowing fps_max 0 is probably ok --- FPSMaxEnforce/scripting/FPSMaxEnforce.sp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FPSMaxEnforce/scripting/FPSMaxEnforce.sp b/FPSMaxEnforce/scripting/FPSMaxEnforce.sp index 728be18..0925616 100644 --- a/FPSMaxEnforce/scripting/FPSMaxEnforce.sp +++ b/FPSMaxEnforce/scripting/FPSMaxEnforce.sp @@ -43,7 +43,10 @@ public void OnConVarQueryFinished(QueryCookie cookie, int client, ConVarQueryRes if (result != ConVarQuery_Okay) LogError("Could not query ConVar \"cvarName\" for %N", client); + //fps_max 0 is probably acceptable + if (StringToInt(cvarValue) == 0) + return; if (StringToInt(cvarValue) < 58) KickClient(client, "Your fps_max is invalid, please set it to a higher value (>59)"); -} \ No newline at end of file +}