View Single Post
Author Message
janpepu
AlliedModders Donor
Join Date: Sep 2007
Location: france
Old 12-31-2018 , 20:38   dm_bot_quotas and spectator
Reply With Quote #1

HI,

cssdm_bots_balance 4
4 spectators = 0 bots
Someone to help for fix ?

Code:
if (IsClientInGame(i) && !IsFakeClient(i) && GetClientTeam(i) != 0 && GetClientTeam(i) != 1)
Code:
public Action EventPlayerTeam(Event event, const char[] name, bool dontBroadcast)

{

	new team = GetEventInt(event, "team"); 
	if (team == 0) 
	{ 
		BalanceBots(GetConVarInt(BalanceAmt));
	}
	if (team == 1) 
		{ 
			BalanceBots(GetConVarInt(BalanceAmt));

		}
	if (team == 2) 
		{ 
			BalanceBots(GetConVarInt(BalanceAmt));

		}
	if (team == 3) 
		{ 
			BalanceBots(GetConVarInt(BalanceAmt));

		}
}
Thanks

Last edited by janpepu; 12-31-2018 at 20:38.
janpepu is offline