thanks madness, i guess you were right about that
This commit is contained in:
parent
9d3a9e6b89
commit
3122ed0210
@ -43,10 +43,19 @@ public void OnConVarQueryFinished(QueryCookie cookie, int client, ConVarQueryRes
|
|||||||
if (result != ConVarQuery_Okay)
|
if (result != ConVarQuery_Okay)
|
||||||
LogError("Could not query ConVar \"cvarName\" for %N", client);
|
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
|
//fps_max 0 is probably acceptable
|
||||||
if (StringToInt(cvarValue) == 0)
|
if (StringToInt(cvarValue) == 0)
|
||||||
return;
|
return;
|
||||||
if (StringToInt(cvarValue) < 58)
|
if (StringToInt(cvarValue) < 58)
|
||||||
KickClient(client, "Your fps_max is invalid, please set it to a higher value (>59)");
|
KickClient(client, "Your fps_max is invalid, please set it to a higher value (>59)");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user