Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Featured Replies

  • Administrator

Let teammates pledge adrenaline toward one reward on a genuine flag return.

Return Fund 1.0.0 (olds.ro)

Capture the Flag: teammates pledge adrenaline toward one reward. When a teammate genuinely returns the team's dropped flag, the whole fund is paid once to that player as adrenaline and the adrenaline shop opens for them. An automatic return, an admin return, a round restart or a team change gives the pledges back instead.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer
  • jCTF by Digi with the adrenaline shop (library "jctf", github.com/OsweRRR/jCTF-by-Digi): get_user_adrenaline, set_user_adrenaline, display_shop and the jctf_flag forward

Install

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

Use

  say /pledge <amount>     add to your pledge; your total can reach
                           olds_returnfund_max
  say /pledge              your pledge, your team's fund and your adrenaline
  olds_returnfund_status   both funds and every pledge (ADMIN_CFG)

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

  olds_returnfund_max 25   most adrenaline one player may pledge (1-200)

Details

  • A pledge is taken from your adrenaline at once and held by the plugin, so it cannot be spent in the shop meanwhile. You cannot pledge more than you have; you are told your balance.
  • Settled: the jctf_flag forward with FLAG_RETURNED for the player who returned the flag (assists are ignored), when that player is on the flag's team. The fund is emptied before anything is paid, so a repeated callback pays nothing. The core keeps at most 200 adrenaline: what does not fit goes back to the pledgers, last pledger first.
  • Refunded: FLAG_AUTORETURN or FLAG_ADMINRETURN for the team's flag, every round restart, and your own team change (checked every second).
  • A player who leaves loses their pledge; nobody is paid it.

No downloads: the fund is shown in chat and a DHUD line.

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_returnfund.sma, test/jctf_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-076).

Return Fund
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) · 357 lines
/*
 * Return Fund (olds.ro workshop card AMX-076)
 *
 * Capture the Flag: teammates pledge adrenaline toward one reward. When a
 * teammate genuinely returns the team's dropped flag (picks it up and sends
 * it home), the whole fund is paid once to that player as adrenaline and the
 * adrenaline shop opens for them. An automatic return, an admin return, a
Show all 357 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.