CSB Immunity Manager

v1.0.0 5 Downloads Daemon666 Zuletzt aktualisiert: Jul 15, 2026

Library plugin exposing csb_has_immunity(admin, target) plus an ini of protected SteamIDs and flag-weight ranking.

CSB Immunity Manager centralises admin immunity so your kick/ban/slay plugins stop each re-implementing the same flag check. It registers a native, csb_has_immunity(admin, target), that returns 1 when the target should be shielded from the acting admin.

A target is immune if their SteamID is listed in configs/csb_immunity.ini (always protected), or if they carry ADMIN_IMMUNITY and outrank the acting admin by flag weight — the number of access letters they hold. Console (admin index 0) can act on anyone, and no one is ever immune to themselves.

Using the native

  • Add native csb_has_immunity(admin, target); to your own plugin.
  • Call it before a punishment: if (csb_has_immunity(admin, target)) return;
  • amx_immunitylist prints the loaded protected SteamIDs to console.

Installation

  1. Compile csb_immunity_manager.sma and copy it to addons/amxmodx/plugins/.
  2. Add it to plugins.ini above the plugins that call the native, and change the map.
  3. Edit addons/amxmodx/configs/csb_immunity.ini.

Installation

1. Put csb_immunity_manager.amxx in addons/amxmodx/plugins/
2. Add it to addons/amxmodx/configs/plugins.ini ABOVE any plugin that calls csb_has_immunity
3. Change map
4. Edit addons/amxmodx/configs/csb_immunity.ini

Befehle

CommandAccessDescription
amx_immunitylist u (ADMIN_CFG) List protected SteamIDs loaded from csb_immunity.ini.

Änderungsprotokoll — v1.0.0

1.0.0 - Initial release.
Versionen →
Mitwirkende: Daemon666 ✦
Lizenz: GPL-3.0

Bewertung

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
.sma herunterladen
Dateien:
csb_immunity_manager.sma main 4.0 KB

Anforderungen

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Optional
ReAPI Optional
Metamod Metamod / Metamod-r
Zurück zu den Plugins