Library plugin exposing csb_has_immunity(admin, target) plus an ini of protected SteamIDs and flag-weight ranking.
Daemon666
1.0.0 - Initial release.
| csb_immunity_manager.sma main | beff422 | 4.0 KB |
README.md
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_immunitylistprints the loaded protected SteamIDs to console.
Installation
- Compile
csb_immunity_manager.smaand copy it toaddons/amxmodx/plugins/. - Add it to
plugins.iniabove the plugins that call the native, and change the map. - 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
| Command | Access | Description |
|---|---|---|
amx_immunitylist |
u (ADMIN_CFG) |
List protected SteamIDs loaded from csb_immunity.ini. |
Änderungsprotokoll — v1.0.0
1.0.0 - Initial release.Versionen →
Bewertung
No ratings yet.
Download v1.0.0
Anforderungen
| AMX Mod X | ≥ 1.9 |
| Engine | ReHLDS HLDS |
| ReGameDLL | Optional |
| ReAPI | Optional |
| Metamod | Metamod / Metamod-r |
Mitwirkende









