From 3122ed0210a26b2d1cdc99e998370dee18aa0436 Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 23 Mar 2026 15:37:14 +0100 Subject: [PATCH] thanks madness, i guess you were right about that --- FPSMaxEnforce/scripting/FPSMaxEnforce.sp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/FPSMaxEnforce/scripting/FPSMaxEnforce.sp b/FPSMaxEnforce/scripting/FPSMaxEnforce.sp index 0925616..5d62837 100644 --- a/FPSMaxEnforce/scripting/FPSMaxEnforce.sp +++ b/FPSMaxEnforce/scripting/FPSMaxEnforce.sp @@ -43,10 +43,19 @@ public void OnConVarQueryFinished(QueryCookie cookie, int client, ConVarQueryRes if (result != ConVarQuery_Okay) LogError("Could not query ConVar \"cvarName\" for %N", client); + int len = strlen(cvarValue); + for (int i = 0; i < len; i++) + { + if (!IsCharNumeric(cvarValue[i])) + { + KickClient(client, "Invalid fps_max Format"); + return; + } + } + //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)"); - }