[Pomoc] CS 1.6 DeathMatch balans
Results 1 to 6 of 6
  1. #1
    Banovani spamer Array
    Join Date
    Dec 2017
    Karma
    0

    Default CS 1.6 DeathMatch balans

    pozdrav svima novi sam ovde kupio sam server kod vas kgb sada imam problem kada mi je server 32/32 nece da mi se pravi balans u igri

    instalirao sam ovaj plugin i ne pomaze
    PTB Balancer

    ukljucio sam i ovo
    autoteambalance 1 cvar

    sada neznam da li ima jos koji plugin osim ovih sto ja znam?

    da kazem odmah nisam trazio jer nemam vremena a server mi je uvjek pun jer sam kupio od jednog lika week boost.

  2. #2
    Senior Member Array
    Join Date
    Jul 2012
    Location
    www.gamers.rs
    Karma
    8

    Default

    Bas danas me je neko pitao za taj plugin i mislim da bese auto team connect. Potrazi malo na googlu

  3. #3
    Banovani spamer Array
    Join Date
    Dec 2017
    Karma
    0

    Default

    imam i taj plugin ali meni treba tokom igre da prebacuje igraca naprimer ako se igra 10 vs 7 da napravi balans da bude 8 vs 9 vidjao sam taj plugin ali neznam kako se zove

  4. #4
    Senior Member Array
    Join Date
    Dec 2011
    Location
    Presevo
    Age
    23
    Karma
    8

    Default

    Ptb ne radi na dm modu.
    Probaj instant autoteambalance.
    Edit:
    https://forums.alliedmods.net/showth...293#post724293
    Evo ti link da ne lutas po temi.
    Ako imas problema javi.
    Last edited by Cira '95; 16-12-2017 at 03:24.

  5. #5
    Senior Member Array
    Join Date
    Dec 2015
    Location
    Hyderabad, Pakistan
    Age
    22
    Karma
    3

    Default

    PHP Code:
    /*    Copyright  2008, ConnorMcLeod

        Instant AutoTeamBalance is free software;
        you can redistribute it and/or modify it under the terms of the
        GNU General Public License as published by the Free Software Foundation.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with Instant AutoTeamBalance; if not, write to the
        Free Software Foundation, Inc., 59 Temple Place - Suite 330,
        Boston, MA 02111-1307, USA.
    */

    #include <amxmodx>
    #include <cstrike>

    #define VERSION "DM 0.4.0"

    #define BALANCE_IMMUNITY        ADMIN_RCON

    #define MAX_PLAYERS    32

    enum {
        
    aTerro,
        
    aCt
    }

    new 
    bool:g_bImmuned[MAX_PLAYERS+1]

    new 
    Float:g_fJoinedTeam[MAX_PLAYERS+1] = {-1.0, ...}

    new 
    g_pcvarCountg_pcvarImmuneg_pCvarMessage

    new g_iCounter
    new mp_limitteamsmp_autoteambalance

    public plugin_init()
    {
        
    register_plugin("AutoTeamBalance"VERSION"ConnorMcLeod")

        
    g_pcvarCount register_cvar("atb_death_freq""50")
        
    g_pcvarImmune register_cvar("atb_admins_immunity""1")
        
    g_pCvarMessage register_cvar("iatb_message""Teams Auto Balanced")

        
    register_logevent("LogEvent_JoinTeam"3"1=joined team")
        
    register_event("DeathMsg""Event_DeathMsg""a")

        
    mp_limitteams get_cvar_pointer("mp_limitteams")
        
    mp_autoteambalance get_cvar_pointer("mp_autoteambalance")
    }

    public 
    Event_DeathMsg()
    {
        new 
    iFreq get_pcvar_num(g_pcvarCount)
        if( !
    iFreq || !get_pcvar_num(mp_autoteambalance) )
            return

        if( ++
    g_iCounter iFreq )
            return

        
    g_iCounter 0
        balance_teams
    ()
    }

    public 
    LogEvent_JoinTeam()
    {
        new 
    loguser[80], name[32], id
        read_logargv
    (0loguser79)
        
    parse_loguser(logusername31)
        
    id get_user_index(name)

        
    g_fJoinedTeam[id] = get_gametime()
    }

    public 
    client_authorized(id)
    {
        
    g_bImmuned[id] = bool:(get_user_flags(id) & BALANCE_IMMUNITY)
    }

    public 
    client_disconnect(id)
    {
        
    g_iCounter max(0get_pcvar_num(g_pcvarCount) - 1)
    }

    balance_teams()
    {
        new 
    iPlayers[MAX_PLAYERS], iNum
        
    new aTeams[2][MAX_PLAYERS], aNum[2], id

        get_players
    (iPlayersiNum"h")

        for(new 
    ii<iNumi++)
        {
            
    id iPlayers[i]

            switch( 
    cs_get_user_team(id) )
            {
                case 
    CS_TEAM_T:
                {
                    
    aTeams[aTerro][aNum[aTerro]++] = id
                
    }
                case 
    CS_TEAM_CT:
                {
                    
    aTeams[aCt][aNum[aCt]++] = id
                
    }
            }
        }

        new 
    iCheck
        
    new iTimes aNum[aCt] - aNum[aTerro]

        if(
    iTimes 0)
        {
            
    iCheck aCt
        
    }
        else if(
    iTimes 0)
        {
            
    iCheck aTerro
        
    }
        else
        {
            return
        }

        
    iTimes abs(iTimes)

        
    // at this place iTimes is the players num difference between teams
        
    if( iTimes || iTimes <= get_pcvar_num(mp_limitteams) )
        {
            return
        }

        
    iTimes /= 2

        
    new bool:bTransfered[MAX_PLAYERS+1],
            
    bool:bAdminsImmune bool:get_pcvar_num(g_pcvarImmune)

        new 
    iLastiCount
        
    while( iTimes )
        {
            
    iLast 0
            
    for(new i=0<aNum[iCheck]; i++)
            {
                
    id aTeams[iCheck][i]
                if( 
    g_bImmuned[id] && bAdminsImmune )
                {
                    continue
                }
                if(
    bTransfered[id])
                {
                    continue
                }
                if(
    g_fJoinedTeam[id] > g_fJoinedTeam[iLast])
                {
                    
    iLast id
                
    }
            }

            if(!
    iLast)
            {
                return
            }

            if( 
    iCheck )
            {
                
    cs_set_user_team(iLastCS_TEAM_T)
            }
            else
            {
                
    cs_set_user_team(iLastCS_TEAM_CT)
            }

            
    bTransfered[iLast] = true
            iCount
    ++
            
    iTimes--
        }

        new 
    szMessage[128]
        
    get_pcvar_string(g_pCvarMessageszMessagecharsmax(szMessage))
        
    client_print(0print_centerszMessage)

    Respect: K@[L]@uz^


  6. #6
    Banovani spamer Array
    Join Date
    Dec 2017
    Karma
    0

    Default

    Quote Originally Posted by alber.soomro View Post
    PHP Code:
    /*    Copyright  2008, ConnorMcLeod

        Instant AutoTeamBalance is free software;
        you can redistribute it and/or modify it under the terms of the
        GNU General Public License as published by the Free Software Foundation.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with Instant AutoTeamBalance; if not, write to the
        Free Software Foundation, Inc., 59 Temple Place - Suite 330,
        Boston, MA 02111-1307, USA.
    */

    #include <amxmodx>
    #include <cstrike>

    #define VERSION "DM 0.4.0"

    #define BALANCE_IMMUNITY        ADMIN_RCON

    #define MAX_PLAYERS    32

    enum {
        
    aTerro,
        
    aCt
    }

    new 
    bool:g_bImmuned[MAX_PLAYERS+1]

    new 
    Float:g_fJoinedTeam[MAX_PLAYERS+1] = {-1.0, ...}

    new 
    g_pcvarCountg_pcvarImmuneg_pCvarMessage

    new g_iCounter
    new mp_limitteamsmp_autoteambalance

    public plugin_init()
    {
        
    register_plugin("AutoTeamBalance"VERSION"ConnorMcLeod")

        
    g_pcvarCount register_cvar("atb_death_freq""50")
        
    g_pcvarImmune register_cvar("atb_admins_immunity""1")
        
    g_pCvarMessage register_cvar("iatb_message""Teams Auto Balanced")

        
    register_logevent("LogEvent_JoinTeam"3"1=joined team")
        
    register_event("DeathMsg""Event_DeathMsg""a")

        
    mp_limitteams get_cvar_pointer("mp_limitteams")
        
    mp_autoteambalance get_cvar_pointer("mp_autoteambalance")
    }

    public 
    Event_DeathMsg()
    {
        new 
    iFreq get_pcvar_num(g_pcvarCount)
        if( !
    iFreq || !get_pcvar_num(mp_autoteambalance) )
            return

        if( ++
    g_iCounter iFreq )
            return

        
    g_iCounter 0
        balance_teams
    ()
    }

    public 
    LogEvent_JoinTeam()
    {
        new 
    loguser[80], name[32], id
        read_logargv
    (0loguser79)
        
    parse_loguser(logusername31)
        
    id get_user_index(name)

        
    g_fJoinedTeam[id] = get_gametime()
    }

    public 
    client_authorized(id)
    {
        
    g_bImmuned[id] = bool:(get_user_flags(id) & BALANCE_IMMUNITY)
    }

    public 
    client_disconnect(id)
    {
        
    g_iCounter max(0get_pcvar_num(g_pcvarCount) - 1)
    }

    balance_teams()
    {
        new 
    iPlayers[MAX_PLAYERS], iNum
        
    new aTeams[2][MAX_PLAYERS], aNum[2], id

        get_players
    (iPlayersiNum"h")

        for(new 
    ii<iNumi++)
        {
            
    id iPlayers[i]

            switch( 
    cs_get_user_team(id) )
            {
                case 
    CS_TEAM_T:
                {
                    
    aTeams[aTerro][aNum[aTerro]++] = id
                
    }
                case 
    CS_TEAM_CT:
                {
                    
    aTeams[aCt][aNum[aCt]++] = id
                
    }
            }
        }

        new 
    iCheck
        
    new iTimes aNum[aCt] - aNum[aTerro]

        if(
    iTimes 0)
        {
            
    iCheck aCt
        
    }
        else if(
    iTimes 0)
        {
            
    iCheck aTerro
        
    }
        else
        {
            return
        }

        
    iTimes abs(iTimes)

        
    // at this place iTimes is the players num difference between teams
        
    if( iTimes || iTimes <= get_pcvar_num(mp_limitteams) )
        {
            return
        }

        
    iTimes /= 2

        
    new bool:bTransfered[MAX_PLAYERS+1],
            
    bool:bAdminsImmune bool:get_pcvar_num(g_pcvarImmune)

        new 
    iLastiCount
        
    while( iTimes )
        {
            
    iLast 0
            
    for(new i=0<aNum[iCheck]; i++)
            {
                
    id aTeams[iCheck][i]
                if( 
    g_bImmuned[id] && bAdminsImmune )
                {
                    continue
                }
                if(
    bTransfered[id])
                {
                    continue
                }
                if(
    g_fJoinedTeam[id] > g_fJoinedTeam[iLast])
                {
                    
    iLast id
                
    }
            }

            if(!
    iLast)
            {
                return
            }

            if( 
    iCheck )
            {
                
    cs_set_user_team(iLastCS_TEAM_T)
            }
            else
            {
                
    cs_set_user_team(iLastCS_TEAM_CT)
            }

            
    bTransfered[iLast] = true
            iCount
    ++
            
    iTimes--
        }

        new 
    szMessage[128]
        
    get_pcvar_string(g_pCvarMessageszMessagecharsmax(szMessage))
        
    client_print(0print_centerszMessage)

    To sam trazio hvala.



    #Cira '95
    Znam hvala i tebi sto si mi izasao u pomoc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •