CSB Admin Godmode gives an admin a clean invulnerability toggle: amx_god <target> [0|1]. It calls set_user_godmode() from the fun module, paints a small [ GODMODE ] HUD marker over anyone currently protected, and — the part most stock implementations get wrong — it clears the state on death, on disconnect and on map change so a player can never keep godmode by accident.
Inspired by the god-mode command from the classic AMX Mod X Admin Commands plugin. This is an independent GPL re-implementation; no original code is reused.
amx_god <name or #userid> [0|1] — toggle, or force on/off with the second argument.cmd_target with ADMIN_IMMUNITY respected and self-targeting allowed.DeathMsg, client_disconnected and map change.csb_admin_godmode.sma and drop it in addons/amxmodx/plugins/.csb_admin_godmode.amxx to addons/amxmodx/configs/plugins.ini.The command needs the ADMIN_CFG flag (u) by default; adjust it in users.ini or through your admin system.