Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Pair Balance

Featured Replies

  • Administrator

Offer a volunteer transfer after several uneven round starts.

Pair Balance 1.0.0 (olds.ro)

Offers a volunteer move instead of forcing one. When the teams start several rounds in a row with a gap of at least two players, the player who joined most recently on the bigger team gets a Yes/No menu for 10 seconds:

Teams are uneven (7 v 4). Move to the Counter-Terrorists?

  • Yes, move me
  • No, I stay

Yes: the team counts are checked again. If the gap is still there, the player moves (at once during the freeze time, otherwise at the start of the next round, checked once more then), hears a short click, and everyone reads who helped. If the gap has closed meanwhile, nothing happens and the player is told so. No, or no answer in 10 seconds: nobody moves and the count starts over.

An open offer ends when a new round starts or the offered player changes team. Only one offer is open at a time. Nobody is ever moved without saying yes.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI (the move uses rg_set_user_team)
  • AMX Mod X 1.10 or newer
  • Tested on AMX Mod X 1.10.0.5490, ReAPI 5.29.0.358, ReGameDLL_CS 5.30.0.814, ReHLDS 3.15.0.896

Install

  • Compile scripting/olds_pairbalance.sma with amxxpc 1.10 and copy olds_pairbalance.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and reapi_*.inc) in addons/amxmodx/scripting/include/.
  • Copy data/lang/olds_pairbalance.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_pairbalance.cfg to addons/amxmodx/configs/plugins/.
  • Add olds_pairbalance.amxx to addons/amxmodx/configs/plugins.ini. It works next to the game's own mp_autoteambalance; if you want only volunteer moves, set mp_autoteambalance 0.

Settings (addons/amxmodx/configs/plugins/olds_pairbalance.cfg)

  olds_pairbal_rounds 3   uneven round starts in a row before an offer (1 - 20)
  olds_pairbal_gap    2   least difference in players that counts as uneven (2 - 16)

Commands None.

The click is the stock buttons/button9.wav, so nothing is downloaded. Texts are in data/lang/olds_pairbalance.txt (English).

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card AMX-026. Licence: GPL-3.0-or-later.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_pairbalance.sma

Idea: olds.ro workshop library · Plugin: alexit · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (AMX-026).

Pair Balance
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.6 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 374 lines
/*
 * Pair Balance (olds.ro workshop card AMX-026)
 *
 * Offers a volunteer move instead of forcing one. When the teams start
 * olds_pairbal_rounds rounds in a row with a gap of at least
 * olds_pairbal_gap players, the player who joined most recently on the
 * bigger team gets a Yes/No menu for 10 seconds: "Teams are uneven (7 v 4).
Show all 374 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.