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_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.









