Daemon666 / CSB Weapon Restrict Public

Blocks selected weapons and equipment from being bought by hooking the buy alias commands, with a live admin toggle menu and a per-map config.

v1.0.0 156 descărcări 5.0/5 (1) GPL-3.0 Ultima actualizare Aug 23, 2026
Daemon666 1.0.0 - Initial release. v1.0.0 Feb 7, 2026 1 Versiuni
csb_weapon_restrict.sma main 533c48d 6.3 KB
README.md

CSB Weapon Restrict stops players buying the weapons and equipment you do not want on your server. It hooks the direct buy alias commands (ak47, awp, deagle, hegren, vesthelm, and so on) and returns PLUGIN_HANDLED for anything restricted, telling the player exactly what is blocked in both the centre HUD and chat.

Features

  • 31 buyable items covered: every gun plus grenades, kevlar, defuse kit and night vision.
  • /restrictmenu for admins to toggle any item live, showing [BLOCKED] / [allowed] inline.
  • Console commands amx_restrict, amx_unrestrict and amx_restrictlist.
  • Per-map override: configs/csb_restrict/<map>.cfg is executed automatically on map start.
  • No modules required - it loads on any AMX Mod X 1.9.

Per-map config example

configs/csb_restrict/de_dust2.cfg:

amx_restrict awp
amx_restrict m249
amx_restrict elite

Installation

  1. Compile, copy csb_weapon_restrict.amxx into plugins/, add it to plugins.ini.
  2. Optionally create per-map cfgs under configs/csb_restrict/.
  3. Change the map.

Inspired by the AMX Mod X "Restrict Weapons" plugin; independent GPL re-implementation. It blocks the direct buy commands - which is how weapons are actually purchased - rather than editing the buy menu.

Instalare
1. Put csb_weapon_restrict.amxx in addons/amxmodx/plugins/
2. Add it to plugins.ini
3. Optionally create configs/csb_restrict/<map>.cfg files
4. Change map
Cvar-uri
CVARDefaultDescription
csb_restrict_enabled 1 Enable or disable buy restrictions.
Comenzi
CommandAccessDescription
say /restrictmenu o (ADMIN_CVAR) Toggle restrictions from a live menu.
amx_restrict o (ADMIN_CVAR) amx_restrict <alias> - restrict an item.
amx_unrestrict o (ADMIN_CVAR) amx_unrestrict <alias> - allow an item again.
amx_restrictlist o (ADMIN_CVAR) List currently restricted items.
Jurnal de modificări — v1.0.0
1.0.0 - Initial release.
Versiuni →
Evaluare
★★★★★ mohamedqash996 · Jul 29, 2026
Despre
Download v1.0.0
Compiled live from the source below — nothing pre-built.
Descarcă .sma
Cerințe
AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Opțional
ReAPI Opțional
Metamod Metamod / Metamod-r
Conflicte cunoscute Other buy-restrict plugins (amx_restrict etc.) - run only one.
Contribuitori
Înapoi la Pluginuri