Raised This Month: $12 Target: $400
 3% 

Team Balancer by Low Frags v4.0 [+CSDM Support]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-04-2011 , 05:38   CS & CZ Team Balancer by Frags v8.1 [+CS:DM/ BOTs Support]
Reply With Quote #1

CS & CZ Team Balancer by Frags v8.1

+CS:DM/ BOTs Support

Github

• /ClaudiuHKS/AMXXCSTeamBalancerByFragsCSDM

Gametracker

GameTracker/ servers using TBBF v8.1

Modules Used

PHP Code:
CS:DM (BALANCING THE TEAMS AT ANY TIME)     |   ORIGINAL (BALANCING ONLY DURING THE END OF THE ROUND)
--------------------------------------------|--------------------------------------------------------
REQUIRED            OPTIONAL TO HAVE        |   REQUIRED                OPTIONAL TO HAVE
--------------------------------------------|--------------------------------------------------------
CSTRIKE             FUN                     |   HAMSANDWICH             FUN
                    CSDM                    
|   FAKEMETA OR CSTRIKE     CSDM
                    FAKEMETA                
|                           CSTRIKE
                    HAMSANDWICH             
|                           FAKEMETA 
Description

This plugin helps balance the teams especially in CS:DM & Respawn mods but not limited to.
It balances the teams exactly the way you set it to.
The balances are only executed when the difference between Terrorists and Counter Terrorists or
the difference between Counter Terrorists and Terrorists is at least 2 players.
So, for example, after players disconnect from your game server and disturb (alters) the team players quantity.
It will either transfer the players having the lowest score (frags [kills]) or the highest score (frags [kills])
from a team to another in order to perform the balance in a fast and efficient way. It may also transfer
the second or the third {... and so on ...} best player. Depending on the way you set it. See the team_balancer_auto
& the team_balancer_sorting settings below.
It is a kind of mp_autoteambalance but much more powerful. It will never interact with the original game
mp_autoteambalance console variable. You can use mp_autoteambalance 1 while using this plugin.
We also suggest you use mp_limitteams > 0 (I recommend 1) and/ or mp_teamlimit > 0 (I recommend 1).
The main advantage over mp_autoteambalance is that mp_autoteambalance only balances the next round.
CS:DM has no multiple rounds in most cases.
BOTs are supported.
Alive players are never transferred in non-CS:DM game mods. This can be changed.
Both alive & dead players are transferred in CS:DM game mods.
Players can be respawned when transferred. See the settings below.
Works like a charm on non-CS:DM game servers as well.
If you need a drastic team balancer for non-CS:DM servers, see TUTB v1.0.

Console Variables (This CFG Is For Both CS:DM And Non-CS:DM Servers)

PHP Code:
team_balancer_frequency 5.0 // Team check frequency in seconds (float, for example can be 9.125)
team_balancer_bots_delay 2.5 // Ignored if 'team_balancer_bots' is 1. So, after every 'team check above (humans only)' we will 'bots check' every time. Apply seconds delay between 'humans check' and 'bots check'. To avoid chat spam & stuff. This value needs to be smaller than 'team_balancer_frequency' value (float)
team_balancer_talk_tag "[Team Balancer]" // Chat (talk) tag to use. This isn't used in 'print_center' messages
team_balancer_te_difference 1 // Maximum difference between terrorists team and counter terrorists
team_balancer_ct_difference 1 // Maximum difference between counter terrorists team and terrorists
team_balancer_admin_flag "a" // Admin flag to set admins immune. Examples: a, b, c, d (use "" to disable this feature)
team_balancer_bots 0 // Bots are taken as they were humans (1 = yes & 0 = no, so half bots T + half bots CT)
team_balancer_announce 1 // Announce the player by message if they were transferred
team_balancer_announce_type 0 // Announce type (0 = print_center, 1 = print_chat [print_talk] & 2 = print_chat [print_talk] colored)
team_balancer_announce_all 2 // Announce everyone (0 = no, 1 = yes print_chat [print_talk] & 2 = yes print_chat [print_talk] colored)
team_balancer_screen_fade 1 // Performs a screen fade effect on the player if not 0
team_balancer_sf_duration 1.0 // Screen fade duration seconds, if screen fade enabled (float)
team_balancer_sf_hold_time 0.1 // Screen fade hold time seconds, if screen fade enabled (float)
team_balancer_audio 1 // Audio alert to the transferred player
team_balancer_audio_type 0 // Audio alert type (0 = speak to transferred player ears a teleport like sound, 1 = that player emits that sound globally so players around them can still hear the sound at a lower volume depending on the distance between them [if the transferred player is dead 0 will be used instead] & 2 = like 0 but speak "YOUR NOW [ T / C T ] FORCE")
team_balancer_sf_te_r 200 // Red T
team_balancer_sf_te_g 40 // Green T
team_balancer_sf_te_b 0 // Blue T
team_balancer_sf_te_a 240 // Alpha T
team_balancer_sf_ct_r 0 // Red CT
team_balancer_sf_ct_g 40 // Green CT
team_balancer_sf_ct_b 200 // Blue CT
team_balancer_sf_ct_a 240 // Alpha CT
team_balancer_by_low_frags 1 // Transfer players having the lowest score (1) or highest score (0)
team_balancer_auto 1 // If the enemy team is better or equal (better or equal scoring [frags]) we send to them a player with low frags to perform the balance or a player with high frags otherwise
team_balancer_sorting 1 // Only works if 'team_balancer_auto' is on. If 'team_balancer_sorting' is on, players/ bots will be balanced depending on their score (frags). For example, the second or the third {... and so on ...} best player may also be considered for transfer
team_balancer_respawn 1 // Recommended in CS:DM mods but not limited to. Respawn players once transferred
team_balancer_respawn_type 1 // If 1, players are respawned by 'csdm_respawn' (CS:DM) function if that function exists in your game server. Will be respawned by 'spawn' (FUN) or 'dllfunc' (FAKEMETA) if these modules are present otherwise. If none above exist, only if the player is dead when transferred, 'cs_user_spawn' (CSTRIKE) function will be used. If 0, CS:DM available or not, 'spawn', 'dllfunc' or 'cs_user_spawn' will be used to perform the respawn (this may be good if you want them respawned T/ CT side but you are using CS:DM custom spawn points set everywhere on the map)
team_balancer_respawn_delay 0.25 // Seconds delay between the player respawn moment and the announcements and screen fade (float)
team_balancer_round_end_only 1 // If 1, balance only during round end if 'CS:DM' is disabled. If 'CS:DM' enabled and running, this setting is ignored
team_balancer_round_end_quick 1 // If 1, when balancing the teams only during round end while the 'CS:DM' extension is disabled or missing, ignore the 'team_balancer_frequency' and 'team_balancer_bots_delay' console variables and perform everything very quick
team_balancer_no_respawn 1 // Do not respawn if the 'CS:DM' extension is missing or disabled. This setting has no effect if 'CS:DM' exists and running
team_balancer_transfer_alive 1 // Also allow the transfer of alive players in game servers which are not 'CS:DM' or are 'CS:DM' but 'csdm_active' disabled 
If your game server is running `CS:DM` and is performing too many transfers
in a short period of time and you get angry try other frequency values.

Other Values

Changelog

PHP Code:
v8.1 :: More friendly with non-CS:DM servers
Attached Files
File Type: zip sound.zip (32.3 KB, 137 views)
File Type: sma Get Plugin or Get Source (TeamBalancerByFrags.sma - 48 views - 67.9 KB)
__________________

Last edited by claudiuhks; 12-28-2023 at 18:37. Reason: v8.0 -> v8.1
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Ares Veteran
Senior Member
Join Date: Jul 2010
Location: Hungary
Old 07-04-2011 , 08:41   Re: Team Balancer by Low Frags v1.0 [+csdm support]
Reply With Quote #2

Fine, but why do you switch only the lowest player? I think people are mostly disconnecting when they are in a weak team (and can not frag), so you switch a weak player in a weak team, after some rounds he will disconnect too.

After the low player switch a better player can join the better team (and he will join the better team, good players join mostly the better team). The server teams will be unbalanced in players skill.

Or am i wrong?
__________________
P.M.C Clan
pmcfighters.co.nr


Last edited by Ares Veteran; 07-04-2011 at 08:47.
Ares Veteran is offline
Send a message via MSN to Ares Veteran
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-04-2011 , 09:50   Re: Team Balancer by Low Frags v1.0 [+csdm support]
Reply With Quote #3

The players with low score maybe don't like to play in the team they are currently playing. So if the plugin change them team, they'll be more happy?
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
nisam_ja
BANNED
Join Date: Sep 2008
Location: osijek
Old 07-05-2011 , 22:11   Re: Team Balancer by Low Frags v1.0 [+csdm support]
Reply With Quote #4

Quote:
Originally Posted by claudiuhks View Post
The players with low score maybe don't like to play in the team they are currently playing. So if the plugin change them team, they'll be more happy?
that is selfexplanatory.

be happy
nisam_ja is offline
Send a message via MSN to nisam_ja Send a message via Skype™ to nisam_ja
juan2394
Member
Join Date: Sep 2010
Old 07-05-2011 , 23:46   Re: Team Balancer by Low Frags v1.0 [+CSDM support]
Reply With Quote #5

Try adding
#happyplayers
on your code
juan2394 is offline
Trethy
Member
Join Date: Jun 2011
Old 07-06-2011 , 06:46   Re: Team Balancer by Low Frags v1.0 [+CSDM support]
Reply With Quote #6

Nice!
__________________
Im new at coding..
And i need things for my jailbreak server

But no one help me..
Trethy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-07-2011 , 19:36   Re: Team Balancer by Low Frags v2.0 [+CSDM support]
Reply With Quote #7

Use pcvar. It's a requirement.
__________________

Last edited by Arkshine; 10-28-2011 at 10:38.
Arkshine is offline
FOUTA
Senior Member
Join Date: Nov 2010
Location: Lebanon
Old 11-18-2011 , 10:15   Re: Team Balancer by Low Frags v2.0 [+CSDM support]
Reply With Quote #8

how about to check, if a team is winning by a lot like by 10, transfer the strongest player from the winning team and put him in the weak team, there will be balance then, no matter if the teams are balanced or not
__________________
www.cstuts.tk
Everything you might for Counter Strike
FOUTA is offline
C3NsUr3
Member
Join Date: Aug 2011
Location: Romania,Resita
Old 12-01-2011 , 04:09   Re: Team Balancer by Low Frags v2.0 [+CSDM support]
Reply With Quote #9

Nice plugin!
C3NsUr3 is offline
Send a message via Yahoo to C3NsUr3 Send a message via Skype™ to C3NsUr3
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-09-2011 , 19:01   Re: Team Balancer by Low Frags v2.0 [+CSDM support]
Reply With Quote #10

Its cool.
__________________
kramesa is offline
Reply


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 14:34.


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