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:
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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user