AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CS:S DM (https://forums.alliedmods.net/forumdisplay.php?f=77)
-   -   dm_bot_quotas and spectator (https://forums.alliedmods.net/showthread.php?t=313214)

janpepu 12-31-2018 20:38

dm_bot_quotas and spectator
 
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


All times are GMT -4. The time now is 19:14.

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