probably last edits for now
This commit is contained in:
parent
13f4727826
commit
7e3ad44699
@ -195,7 +195,7 @@ public void OnMapEnd()
|
|||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
public Action RunPopulationCheck(Handle timer)
|
public Action RunPopulationCheck(Handle timer)
|
||||||
{
|
{
|
||||||
RequestFrame(CheckPopulation);
|
CheckPopulation();
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -406,13 +406,13 @@ public void CheckPopulation()
|
|||||||
{
|
{
|
||||||
iPlayers = 16;
|
iPlayers = 16;
|
||||||
}
|
}
|
||||||
int iFakesInTeamNeeded = iPlayers / 5;
|
int iFakesInTeamNeeded = iPlayers / 2;
|
||||||
int iFakesNeeded = iPlayers;
|
int iFakesNeeded = iPlayers;
|
||||||
|
|
||||||
iPlayers = 0;
|
iPlayers = 0;
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
if(IsClientConnected(i) && IsClientInGame(i) && IsClientAuthorized(i) && !IsFakeClient(i) && !IsClientAutismBot(i) && !IsClientSourceTV(i) && GetClientTeam(i) > CS_TEAM_SPECTATOR)
|
if (IsClientConnected(i))
|
||||||
iPlayers++;
|
iPlayers++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -448,7 +448,7 @@ public void CheckPopulation()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//LogMessage("specs: %i", specs);
|
//LogMessage("specs: %i", specs);
|
||||||
if (specs >= 13 && iFakesNeeded > 0)
|
if (specs >= 14 && iFakesNeeded > 0)
|
||||||
{
|
{
|
||||||
iFakesInTeamNeeded = iFakes;
|
iFakesInTeamNeeded = iFakes;
|
||||||
if (iFakes >= 5)
|
if (iFakes >= 5)
|
||||||
@ -458,7 +458,7 @@ public void CheckPopulation()
|
|||||||
okay_to_change_count = true;
|
okay_to_change_count = true;
|
||||||
//LogMessage("iFakesInTeamNeeded: %i", iFakesInTeamNeeded);
|
//LogMessage("iFakesInTeamNeeded: %i", iFakesInTeamNeeded);
|
||||||
}
|
}
|
||||||
else if (specs <= 10)
|
else if (specs <= 9)
|
||||||
{
|
{
|
||||||
iFakesInTeamNeeded = (iFakesNeeded / 5);
|
iFakesInTeamNeeded = (iFakesNeeded / 5);
|
||||||
}
|
}
|
||||||
@ -519,7 +519,6 @@ public void CheckPopulation()
|
|||||||
CS_SetClientClanTag(iIndex, "");
|
CS_SetClientClanTag(iIndex, "");
|
||||||
}
|
}
|
||||||
iFakes++;
|
iFakes++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iFakes > iFakesNeeded)
|
if (iFakes > iFakesNeeded)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user