forked from UNLOZE/sm-plugins
missed ingamecheck
This commit is contained in:
@@ -406,7 +406,7 @@ public void CheckPopulation()
|
|||||||
{
|
{
|
||||||
iPlayers = 16;
|
iPlayers = 16;
|
||||||
}
|
}
|
||||||
int iFakesInTeamNeeded = iPlayers / 2;
|
int iFakesInTeamNeeded = RoundToFloor(iPlayers / 2.5);
|
||||||
int iFakesNeeded = iPlayers;
|
int iFakesNeeded = iPlayers;
|
||||||
|
|
||||||
iPlayers = 0;
|
iPlayers = 0;
|
||||||
@@ -441,7 +441,7 @@ public void CheckPopulation()
|
|||||||
int specs = 0;
|
int specs = 0;
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
if(IsClientConnected(i) && GetClientTeam(i) <= CS_TEAM_SPECTATOR)
|
if(IsClientConnected(i) && IsClientInGame(i) && GetClientTeam(i) <= CS_TEAM_SPECTATOR)
|
||||||
{
|
{
|
||||||
specs++;
|
specs++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user