Promuj serwer
csb-admin-godmode / README.md
1 lines 1.6 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Admin Godmode</strong> gives an admin a clean invulnerability toggle: <code>amx_god &lt;target&gt; [0|1]</code>. It calls <code>set_user_godmode()</code> from the <code>fun</code> module, paints a small <code>[ GODMODE ]</code> HUD marker over anyone currently protected, and &mdash; the part most stock implementations get wrong &mdash; it clears the state on death, on disconnect and on map change so a player can never keep godmode by accident.</p><p>Inspired by the god-mode command from the classic AMX Mod X <em>Admin Commands</em> plugin. This is an independent GPL re-implementation; no original code is reused.</p><h2>Features</h2><ul><li><code>amx_god &lt;name or #userid&gt; [0|1]</code> &mdash; toggle, or force on/off with the second argument.</li><li>Targeting through <code>cmd_target</code> with <code>ADMIN_IMMUNITY</code> respected and self-targeting allowed.</li><li>HUD marker refreshed once a second via a HUD sync object, so it never flickers with other messages.</li><li>Auto-clear on <code>DeathMsg</code>, <code>client_disconnected</code> and map change.</li><li>Every toggle is announced in the admin-only chat channel and written to the AMXX log.</li></ul><h2>Installation</h2><ol><li>Compile <code>csb_admin_godmode.sma</code> and drop it in <code>addons/amxmodx/plugins/</code>.</li><li>Add <code>csb_admin_godmode.amxx</code> to <code>addons/amxmodx/configs/plugins.ini</code>.</li><li>Change the map.</li></ol><p>The command needs the <code>ADMIN_CFG</code> flag (<code>u</code>) by default; adjust it in <code>users.ini</code> or through your admin system.</p>