Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Operator Standby

Featured Replies

  • Administrator

Queue a volunteer to replace a disconnected operator next round.

Operator Standby 1.0.0 (olds.ro)

Deathrun: players who would like to take over as operator (the terrorist) say /standby to join a queue. When the operator leaves the server, the first connected volunteer in the queue becomes the operator at the next round's role selection.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer
  • Mistrick's Deathrun Mod (library "deathrun_core", github.com/Mistrick/DeathrunMod)

Install

  • Compile scripting/olds_standby.sma and copy olds_standby.amxx to addons/amxmodx/plugins/, below deathrun_core.amxx. The compiler needs ReAPI's include files.
  • Copy data/lang/olds_standby.txt to addons/amxmodx/data/lang/.

Use

  say /standby           join or leave the standby queue
  olds_standby_status    the operator, the vacancy and the queue (ADMIN_CFG)

Settings (addons/amxmodx/configs/plugins/olds_standby.cfg, created on first run)

  olds_standby_max 5     most volunteers in the queue (1-16)

How it works

  • dr_chosen_new_terrorist(id) tells the plugin who the operator is. When that player leaves, the role is marked vacant; the core still puts a random stand-in in for the rest of the round, as it always does.
  • At the next round restart, just before the core picks its terrorist, the plugin calls dr_set_next_terrorist() with the first volunteer still connected (stale entries are removed; if that volunteer leaves before the pick, the next one is handed over).
  • If something else already chose the next terrorist, the plugin leaves that choice alone. With nobody queued the core picks as usual. Only queued players are ever put forward.
  • The chosen volunteer leaves the queue once the core confirms them, and everyone sees who stepped in.

No downloads: chat lines.

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_standby.sma, test/dr_core_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · 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-041).

Operator Standby
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.8 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 219 lines
/*
 * Operator Standby (olds.ro workshop card AMX-041)
 *
 * Deathrun: players who would like to take over as operator (the terrorist)
 * say /standby to join a queue. When the operator leaves the server, the
 * first connected volunteer in the queue becomes the operator at the next
 * round's role selection.
Show all 219 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.