addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.9 KB
No file matches.
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
1. Compile scripting/olds_jugqueue.sma and copy olds_jugqueue.amxx to
addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
2. Copy data/lang/olds_jugqueue.txt to addons/amxmodx/data/lang/.
3. 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.