Compare commits

...

2 Commits

Author SHA1 Message Date
jenz
a5a856073e thanks madness 2026-03-23 15:40:25 +01:00
jenz
3122ed0210 thanks madness, i guess you were right about that 2026-03-23 15:37:14 +01:00

View File

@ -41,12 +41,21 @@ public void OnConVarQueryFinished(QueryCookie cookie, int client, ConVarQueryRes
return;
if (result != ConVarQuery_Okay)
LogError("Could not query ConVar \"cvarName\" for %N", client);
LogError("Could not query ConVar fps_max 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)");
}