fix infinite loop and disable userinfo change
- userinfo needs to be fixed by botox - add fakes in teams back since its fixed
This commit is contained in:
		
							parent
							
								
									5e9b74e568
								
							
						
					
					
						commit
						b241eaaca0
					
				| @ -203,7 +203,7 @@ public void OnClientDisconnect(int client) | |||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| public void OnClientSettingsChanged(int client) | /*public void OnClientSettingsChanged(int client) | ||||||
| { | { | ||||||
| 	if(!g_bFakePopulation[client]) | 	if(!g_bFakePopulation[client]) | ||||||
| 		return; | 		return; | ||||||
| @ -220,7 +220,7 @@ public void OnClientSettingsChanged(int client) | |||||||
| 	aData[105] = 0; | 	aData[105] = 0; | ||||||
| 
 | 
 | ||||||
| 	SetStringTableData(g_iUserInfoStringTable, client - 1, aData, len); | 	SetStringTableData(g_iUserInfoStringTable, client - 1, aData, len); | ||||||
| } | }*/ | ||||||
| 
 | 
 | ||||||
| //---------------------------------------------------------------------------------------------------- | //---------------------------------------------------------------------------------------------------- | ||||||
| // Purpose: | // Purpose: | ||||||
| @ -247,7 +247,7 @@ public void CheckPopulation() | |||||||
| 		if (g_bFakePopulation[i]) | 		if (g_bFakePopulation[i]) | ||||||
| 			iFakes++; | 			iFakes++; | ||||||
| 
 | 
 | ||||||
| 		if (g_bFakePopulation[i] && GetClientTeam(i) > 0) | 		if (g_bFakePopulation[i] && GetClientTeam(i) <= CS_TEAM_SPECTATOR) | ||||||
| 			iFakesInTeam++; | 			iFakesInTeam++; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| @ -266,16 +266,17 @@ public void CheckPopulation() | |||||||
| 	else if(iPlayers > 55) | 	else if(iPlayers > 55) | ||||||
| 	{ | 	{ | ||||||
| 		iFakesNeeded = 1; | 		iFakesNeeded = 1; | ||||||
|  | 		iFakesInTeamNeeded = 1; | ||||||
| 	} | 	} | ||||||
| 	else if (iPlayers > 20) | 	else if (iPlayers > 20) | ||||||
| 	{ | 	{ | ||||||
| 		iFakesNeeded = 4; | 		iFakesNeeded = 4; | ||||||
| 		iFakesInTeamNeeded = 0; | 		iFakesInTeamNeeded = 2; | ||||||
| 	} | 	} | ||||||
| 	else if (iPlayers > 10) | 	else if (iPlayers > 10) | ||||||
| 	{ | 	{ | ||||||
| 		iFakesNeeded = 3; | 		iFakesNeeded = 3; | ||||||
| 		iFakesInTeamNeeded = 0; | 		iFakesInTeamNeeded = 1; | ||||||
| 	} | 	} | ||||||
| 	else if (iPlayers > 5) | 	else if (iPlayers > 5) | ||||||
| 	{ | 	{ | ||||||
| @ -330,7 +331,7 @@ public void CheckPopulation() | |||||||
| 
 | 
 | ||||||
| 	if (iFakes == iFakesNeeded && iFakesInTeam != iFakesInTeamNeeded && g_iAdminFakes == -1) | 	if (iFakes == iFakesNeeded && iFakesInTeam != iFakesInTeamNeeded && g_iAdminFakes == -1) | ||||||
| 	{ | 	{ | ||||||
| 		while (iFakesInTeam < iFakesInTeamNeeded) | 		if (iFakesInTeam < iFakesInTeamNeeded) | ||||||
| 		{ | 		{ | ||||||
| 			for(int i = 1; i <= MaxClients; i++) | 			for(int i = 1; i <= MaxClients; i++) | ||||||
| 			{ | 			{ | ||||||
| @ -344,7 +345,7 @@ public void CheckPopulation() | |||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		while (iFakesInTeam > iFakesInTeamNeeded) | 		if (iFakesInTeam > iFakesInTeamNeeded) | ||||||
| 		{ | 		{ | ||||||
| 			for(int i = 1; i <= MaxClients; i++) | 			for(int i = 1; i <= MaxClients; i++) | ||||||
| 			{ | 			{ | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user