Raised This Month: $ Target: $400
 0% 

dm_bot_quotas and spectator


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:31.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode