Changed MAXPLAYERS to dynamic MaxClients and switched ClientInGame For ClientConnected

MAXPLAYERS was making it throw an error cus he had an equal and MAXPLAYERS value is 65 and was erroring out.
This commit is contained in:
2018-07-25 16:40:33 +02:00
parent a29c747149
commit e557bcb268
@@ -156,9 +156,9 @@ void UpdateRTV()
{ {
g_Voters = 0; g_Voters = 0;
for (int i=1; i<=MAXPLAYERS; i++) for (int i=1; i<=MaxClients; i++)
{ {
if (IsClientInGame(i) && !IsFakeClient(i)) if (IsClientConnected(i) && !IsFakeClient(i))
{ {
if (GetClientTeam(i) == 2 || GetClientTeam(i) == 3) if (GetClientTeam(i) == 2 || GetClientTeam(i) == 3)
{ {