Compare commits
No commits in common. "a5a856073e9dc72f220964448fd85ff8beb93a06" and "9d3a9e6b89b2ca05b2fdc55d3fb497bc06d444cd" have entirely different histories.
a5a856073e
...
9d3a9e6b89
@ -41,21 +41,12 @@ public void OnConVarQueryFinished(QueryCookie cookie, int client, ConVarQueryRes
|
||||
return;
|
||||
|
||||
if (result != ConVarQuery_Okay)
|
||||
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;
|
||||
}
|
||||
}
|
||||
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)");
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user