scripting/dm_bot_quotas.sp
changeset 36 369d95743d20
parent 19 4a79c2770e9e
child 43 6793d77652a4
     1.1 --- a/scripting/dm_bot_quotas.sp	Wed Nov 14 06:27:01 2007 +0000
     1.2 +++ b/scripting/dm_bot_quotas.sp	Wed Nov 14 07:28:14 2007 +0000
     1.3 @@ -62,13 +62,18 @@
     1.4  
     1.5  BalanceBots(quota)
     1.6  {
     1.7 +	if (!quota)
     1.8 +	{
     1.9 +		return;
    1.10 +	}
    1.11 +	
    1.12  	new maxClients = GetMaxClients()
    1.13  	new humans, bots
    1.14  	
    1.15  	/* Get the number of valid humans and bots */
    1.16  	for (new i=1; i<=maxClients; i++)
    1.17  	{
    1.18 -		if (!IsPlayerInGame(i))
    1.19 +		if (!IsClientInGame(i))
    1.20  		{
    1.21  			continue
    1.22  		}