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
1. 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.
2. Copy data/lang/olds_plantreward.txt to addons/amxmodx/data/lang/.
3. 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.)
4. 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).