Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Juggernaut Turn Queue

Featured Replies

  • Administrator

Give volunteers a fair turn as Juggernaut when the mode selects its next player.

Juggernaut Turn Queue 1.0.0 (olds.ro)

Juggernaut: players who want a turn as Juggernaut say /jug to join a queue (again to leave). When the mode picks its next Juggernaut, the first living volunteer in queue order gets the turn; a dead or teamless volunteer is passed over but keeps their place.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer
  • A Juggernaut core that calls this plugin's two natives when it picks its next Juggernaut (directly, or through a small bridge plugin)

Install

  • Compile scripting/olds_jugqueue.sma and copy olds_jugqueue.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
  • Copy data/lang/olds_jugqueue.txt to addons/amxmodx/data/lang/.
  • Copy scripting/include/olds_jugqueue.inc next to the core's sources so the core (or bridge) can use the natives.

Use

  say /jug                join or leave the queue
  say /jugqueue           your place and the queue length
  olds_jugqueue_status    the queue (ADMIN_CFG)

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

  olds_jugqueue_max 8     most volunteers in the queue (1-32)

For the core (include/olds_jugqueue.inc, library "olds_jugqueue")

  olds_jugqueue_candidate()   first eligible volunteer (connected, alive, on
                              a team) or 0; changes nothing
  olds_jugqueue_confirm(id)   call only after the role was really given: id
                              leaves the queue, the rest move up
  At selection: id = olds_jugqueue_candidate(); if id and your assignment of
  id succeeds, call olds_jugqueue_confirm(id); otherwise pick as usual. A
  failed assignment leaves the queue unchanged, and nothing is ever forced
  from this plugin.

Leaving the server removes a player from the queue; the queue starts empty on every map.

No downloads: chat text only.

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/include/olds_jugqueue.inc, addons/amxmodx/scripting/olds_jugqueue.sma, test/jug_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-097).

Juggernaut Turn Queue
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.1 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 187 lines
/*
 * Juggernaut Turn Queue (olds.ro workshop card AMX-097)
 *
 * Juggernaut: players who want a turn as Juggernaut say /jug to join a queue
 * (again to leave). When the mode picks its next Juggernaut, the first
 * living volunteer in queue order gets the turn; a dead or teamless volunteer
 * is passed over but keeps their place.
Show all 187 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.