Closed ldesgoui closed 3 years ago
why even bother checking IsClientInKickQueue in this validclient check, pretty sure it could be greatly simplified to something like
bool IsValidClient(int client)
{
return ((0 < client <= MaxClients) && IsClientInGame(client) && !IsFakeClient(client));
}
Not sure, didn't feel like figuring out if it was important
actually
bool IsValidClient(int client)
{
return ((0 < client <= MaxClients) && IsClientInGame(client) && !IsClientSourceTV(client) && !IsClientReplay(client));
}
ill merge this 4 now, regardless
thanks for the contribution <3
In
OnClientDisconnect
,IsValidClient
is called, it returns false when a player is in the kick queue, which allows them to abuse automated kick systems to bypass losses counting towards their Elo