Fakes + UptimeRestars

fix minors
This commit is contained in:
dogan 2020-07-07 13:06:04 +02:00
parent eff26eba30
commit f6ff0661ff
2 changed files with 8 additions and 8 deletions

View File

@ -49,7 +49,7 @@ public void OnPluginStart()
g_bMapEnded = false;
g_bBlockInstantFakeConnects = false;
g_iBlockInstantFakeConnects = 0;
CreateTimer(4.0, BlockInstantFakeConnects, _, TIMER_REPEAT);
CreateTimer(5.0, BlockInstantFakeConnects, _, TIMER_REPEAT);
CreateTimer(3.0, RandomizePing, _, TIMER_REPEAT);
CreateTimer(150.0, RandomizeNames, _, TIMER_REPEAT);
@ -128,7 +128,7 @@ public Action BlockInstantFakeConnects(Handle timer)
g_bBlockInstantFakeConnects = false;
RequestFrame(CheckPopulation);
if(g_iBlockInstantFakeConnects > 4)
if(g_iBlockInstantFakeConnects > 5)
return Plugin_Stop;
return Plugin_Continue;
@ -229,7 +229,7 @@ public Action Command_DebugFakes(int client, int argc)
//----------------------------------------------------------------------------------------------------
public Action Command_SetFakes(int client, int argc)
{
if(g_iBlockInstantFakeConnects <= 4)
if(g_iBlockInstantFakeConnects <= 5)
{
ReplyToCommand(client, "[SM] Not available right now, because the Plugin is still loading. Try again in couple seconds.");
return Plugin_Handled;
@ -372,17 +372,17 @@ public void CheckPopulation()
}
else if (iPlayers > 20)
{
iFakesNeeded = 4;
iFakesNeeded = 5;
iFakesInTeamNeeded = 2;
}
else if (iPlayers > 10)
{
iFakesNeeded = 4;
iFakesNeeded = 5;
iFakesInTeamNeeded = 1;
}
else if (iPlayers > 5)
{
iFakesNeeded = 4;
iFakesNeeded = 5;
iFakesInTeamNeeded = 0;
}
else
@ -434,7 +434,7 @@ public void CheckPopulation()
//CS_SetClientClanTag(iIndex, "UNLOZE");
iFakes++;
if(g_iBlockInstantFakeConnects <= 4)
if(g_iBlockInstantFakeConnects <= 5)
g_bBlockInstantFakeConnects = true;
}

View File

@ -147,7 +147,7 @@ public Action CheckRestart(Handle timer)
int iPlayers = GetClientCount(false);
for(int i = 1; i <= MaxClients; i++)
{
if(IsFakeClient(i))
if(IsClientConnected(i) && IsFakeClient(i))
iPlayers--;
}