CSB Buy HP

v1.0.0 3 descargas Daemon666 Última actualización: Jul 15, 2026

Spend credits earned from kills on +HP, capped, with a per-round purchase limit and a HUD confirmation.

CSB Buy HP is a self-contained shop item: type /buyhp to trade credits for health. Credits are earned by killing (csb_buyhp_reward per frag), each purchase adds csb_buyhp_amount HP up to the cap in csb_buyhp_maxhp, and you can only buy it csb_buyhp_limit times per round.

It needs no external shop core to work, but it also exposes a public callable, csb_hp_give(id, amount), so a larger shop or VIP system can grant capped HP through the same code path.

Features

  • /buyhp and /credits from chat.
  • Health cap so buying never exceeds a sane maximum.
  • Per-round purchase limit.
  • HUD confirmation showing HP added and credits spent.
  • Refuses the purchase when you are already at the cap or short on credits.

Installation

  1. Make sure the fun module is enabled in modules.ini.
  2. Compile, copy csb_buy_hp.amxx into addons/amxmodx/plugins/ and add it to plugins.ini.
  3. Tune the cost/reward/limit cvars in amxx.cfg, then change the map.

Notes

Credits are kept in memory for the duration of a connection; they are not saved to a database. If you want persistent, account-wide credits, feed this plugin from your own store through csb_hp_give().

Instalación

1. Enable the fun module in modules.ini
2. Put csb_buy_hp.amxx in addons/amxmodx/plugins/ and add it to plugins.ini
3. Tune the csb_buyhp_* cvars, change map

Cvars

CVARDefaultDescription
csb_buyhp_enabled 1 Enable or disable the buy-HP item.
csb_buyhp_cost 10 Credit cost of one purchase.
csb_buyhp_amount 25 HP granted per purchase.
csb_buyhp_maxhp 150 Maximum HP a player can reach through the shop.
csb_buyhp_limit 3 Purchases allowed per round (0 = unlimited).
csb_buyhp_reward 2 Credits earned per kill.

Comandos

CommandAccessDescription
say /buyhp Buy extra health with credits.
say /credits Show your current credit balance.

Registro de cambios — v1.0.0

1.0.0 - Initial release.
Versiones →
Colaboradores: Daemon666 ✦
Licencia: GPL-3.0

Valoración

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Descargar .sma
Archivos:
csb_buy_hp.sma main 4.2 KB

Requisitos

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Opcional
ReAPI Opcional
Metamod Metamod / Metamod-r
Módulos fun
Volver a Plugins