Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Bomb Plant Reward

Featured Replies

  • Administrator

Rewards players with money or frags for planting the bomb.

Bomb Plant Reward 1.0.0 (olds.ro)

The player who plants the bomb gets money and frags at once, on top of what the game itself gives. Optionally the player who defuses the bomb is rewarded too.

  • Planting gives olds_pr_money (300) and olds_pr_frags frags (1) right away; the scoreboard shows the frags at once.
  • With olds_pr_both 1, defusing gives olds_pr_defuse (300) and the same frags. Only a finished defuse counts, not one that is cut short.
  • At most one plant reward and one defuse reward per round.
  • Money never goes above mp_maxmoney (16000 by default); money that is already higher is not lowered.
  • Bots are rewarded the same way as players.
  • The rewarded player gets a chat line.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer, with the cstrike and fun modules (enabled by default)

Install

  • Compile scripting/olds_plantreward.sma and copy olds_plantreward.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release, in addons/amxmodx/scripting/include/) next to the stock AMX Mod X includes.
  • Copy data/lang/olds_plantreward.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_plantreward.cfg to addons/amxmodx/configs/plugins/ and change the values you want. (If the file is missing, the plugin writes one with the defaults the first time it starts.)
  • Add olds_plantreward.amxx to addons/amxmodx/configs/plugins.ini.

Settings (addons/amxmodx/configs/plugins/olds_plantreward.cfg)

  olds_pr_money 300        money for planting the bomb
  olds_pr_frags 1          frags for planting (and for defusing with
                           olds_pr_both 1)
  olds_pr_both 0           1 = the defuser is rewarded too
  olds_pr_defuse 300       money for defusing the bomb (with olds_pr_both 1)

Commands None.

Chat text "[Bomb] Bomb planted: you earn $300 and 1 frag(s)." The texts are in data/lang/olds_plantreward.txt and can be translated there.

Tested on ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-r 1.3.0.149, AMX Mod X 1.10.0-git5490, ReAPI 5.29.0.358.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-0116. Licence: GNU General Public License v3.0 or later (GPL-3.0-or-later).

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_plantreward.sma, test/lib0116_probe.sma

License: GPL-3.0-or-later.
Written for the olds.ro plugin workshop (LIB-0116), by alexit and checked by the automated Claude review.

Bomb Plant Reward
v1.0Counter-Strike 1.6PluginTests: warnings
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.3 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 192 lines
/*
 * Bomb Plant Reward (olds.ro workshop card LIB-0116)
 *
 * The player who plants the bomb gets money and frags at once, on top of
 * what the game itself gives. Optionally the player who defuses it is
 * rewarded too.
 *
Show all 192 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.