Fakes + UptimeRestars
fix minors
This commit is contained in:
		
							parent
							
								
									eff26eba30
								
							
						
					
					
						commit
						f6ff0661ff
					
				@ -49,7 +49,7 @@ public void OnPluginStart()
 | 
				
			|||||||
	g_bMapEnded = false;
 | 
						g_bMapEnded = false;
 | 
				
			||||||
	g_bBlockInstantFakeConnects = false;
 | 
						g_bBlockInstantFakeConnects = false;
 | 
				
			||||||
	g_iBlockInstantFakeConnects = 0;
 | 
						g_iBlockInstantFakeConnects = 0;
 | 
				
			||||||
	CreateTimer(4.0, BlockInstantFakeConnects, _, TIMER_REPEAT);
 | 
						CreateTimer(5.0, BlockInstantFakeConnects, _, TIMER_REPEAT);
 | 
				
			||||||
	CreateTimer(3.0, RandomizePing, _, TIMER_REPEAT);
 | 
						CreateTimer(3.0, RandomizePing, _, TIMER_REPEAT);
 | 
				
			||||||
	CreateTimer(150.0, RandomizeNames, _, TIMER_REPEAT);
 | 
						CreateTimer(150.0, RandomizeNames, _, TIMER_REPEAT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -128,7 +128,7 @@ public Action BlockInstantFakeConnects(Handle timer)
 | 
				
			|||||||
	g_bBlockInstantFakeConnects = false;
 | 
						g_bBlockInstantFakeConnects = false;
 | 
				
			||||||
	RequestFrame(CheckPopulation);
 | 
						RequestFrame(CheckPopulation);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if(g_iBlockInstantFakeConnects > 4)
 | 
						if(g_iBlockInstantFakeConnects > 5)
 | 
				
			||||||
		return Plugin_Stop;
 | 
							return Plugin_Stop;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return Plugin_Continue;
 | 
						return Plugin_Continue;
 | 
				
			||||||
@ -229,7 +229,7 @@ public Action Command_DebugFakes(int client, int argc)
 | 
				
			|||||||
//----------------------------------------------------------------------------------------------------
 | 
					//----------------------------------------------------------------------------------------------------
 | 
				
			||||||
public Action Command_SetFakes(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.");
 | 
							ReplyToCommand(client, "[SM] Not available right now, because the Plugin is still loading. Try again in couple seconds.");
 | 
				
			||||||
		return Plugin_Handled;
 | 
							return Plugin_Handled;
 | 
				
			||||||
@ -372,17 +372,17 @@ public void CheckPopulation()
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	else if (iPlayers > 20)
 | 
						else if (iPlayers > 20)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		iFakesNeeded = 4;
 | 
							iFakesNeeded = 5;
 | 
				
			||||||
		iFakesInTeamNeeded = 2;
 | 
							iFakesInTeamNeeded = 2;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else if (iPlayers > 10)
 | 
						else if (iPlayers > 10)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		iFakesNeeded = 4;
 | 
							iFakesNeeded = 5;
 | 
				
			||||||
		iFakesInTeamNeeded = 1;
 | 
							iFakesInTeamNeeded = 1;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else if (iPlayers > 5)
 | 
						else if (iPlayers > 5)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		iFakesNeeded = 4;
 | 
							iFakesNeeded = 5;
 | 
				
			||||||
		iFakesInTeamNeeded = 0;
 | 
							iFakesInTeamNeeded = 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
@ -434,7 +434,7 @@ public void CheckPopulation()
 | 
				
			|||||||
			//CS_SetClientClanTag(iIndex, "UNLOZE");
 | 
								//CS_SetClientClanTag(iIndex, "UNLOZE");
 | 
				
			||||||
			iFakes++;
 | 
								iFakes++;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if(g_iBlockInstantFakeConnects <= 4)
 | 
								if(g_iBlockInstantFakeConnects <= 5)
 | 
				
			||||||
				g_bBlockInstantFakeConnects = true;
 | 
									g_bBlockInstantFakeConnects = true;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -147,7 +147,7 @@ public Action CheckRestart(Handle timer)
 | 
				
			|||||||
	int iPlayers = GetClientCount(false);
 | 
						int iPlayers = GetClientCount(false);
 | 
				
			||||||
	for(int i = 1; i <= MaxClients; i++)
 | 
						for(int i = 1; i <= MaxClients; i++)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		if(IsFakeClient(i))
 | 
							if(IsClientConnected(i) && IsFakeClient(i))
 | 
				
			||||||
			iPlayers--;
 | 
								iPlayers--;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user