Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Reserve Runner

Featured Replies

  • Administrator

Let a runner pledge a spare life to an eliminated teammate who accepts.

Reserve Runner 1.0.0 (olds.ro)

Deathrun: a runner with spare lives can give one to a teammate who has been eliminated. The teammate gets a yes/no menu; only a yes moves the life, and the teammate respawns at once.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer
  • Deathrun Mod by Mistrick (github.com/Mistrick/DeathrunMod): deathrun_core (dr_get_terrorist) and deathrun_lifes (dr_get_lifes, dr_set_lifes)

Install

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

Use

  say /gift <name>        offer one of your lives to a dead runner (part of
                          the name is enough)
  olds_lifegift_status    lives, roles and pending offers (ADMIN_CFG)

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

  olds_lifegift_min 2       lives a donor needs to give one away (2-20), so
                            the donor always keeps at least one
  olds_lifegift_timeout 15  seconds an offer stays open (5-60)

Rules

  • The donor must be a living runner (counter-terrorist) with at least olds_lifegift_min lives. The receiver must be a runner who is dead; the activator (the terrorist) is never a runner and is refused.
  • One pending offer per donor and per receiver. The offer is cancelled when it expires, when the receiver says no, at round end, or when either player leaves.
  • On a yes everything is checked again (round still running, both still runners, receiver still dead, donor still has enough lives). Then one life moves: donor 3 -> 2, receiver 0 -> 1, and the receiver respawns.
  • The move is one function call: both balances are read, written and read back with nothing else running in between. If the lives plugin did not take the change, both balances are put back and nothing moves.

No downloads: the exchange uses a menu and chat text.

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_lifegift.sma, test/dr_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-040).

Reserve Runner
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.2 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 340 lines
/*
 * Reserve Runner (olds.ro workshop card AMX-040)
 *
 * Deathrun: a runner with spare lives can give one to a teammate who has been
 * eliminated. The teammate gets a yes/no menu; only a yes moves the life, and
 * the teammate respawns at once.
 *
Show all 340 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.