fix FakePopulation
This commit is contained in:
parent
b68f66c85a
commit
834985b66a
@ -279,7 +279,7 @@ public void CheckPopulation()
|
||||
{
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(g_bFakePopulation[i] && GetClientTeam(i) < 1)
|
||||
if(g_bFakePopulation[i] && GetClientTeam(i) <= CS_TEAM_SPECTATOR)
|
||||
{
|
||||
ChangeClientTeam(i, CS_TEAM_CT);
|
||||
FakeClientCommandEx(i, "joinclass");
|
||||
@ -293,7 +293,7 @@ public void CheckPopulation()
|
||||
{
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(g_bFakePopulation[i] && GetClientTeam(i) > 0)
|
||||
if(g_bFakePopulation[i] && GetClientTeam(i) >= CS_TEAM_T)
|
||||
{
|
||||
ChangeClientTeam(i, CS_TEAM_SPECTATOR);
|
||||
iFakesInTeam--;
|
||||
|
Loading…
Reference in New Issue
Block a user