Promote server
csb-spawn-protection / README.md
1 lines 1.4 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Spawn Protection</strong> gives every player a short burst of invulnerability the moment they respawn, so they cannot be instantly gunned down before they even load in. This is essential on DM and CSDM servers where players respawn constantly and spawn-camping otherwise ruins the round.</p><h2>How it works</h2><p>On <code>Ham_Spawn</code> the player gets <code>set_user_godmode</code> plus a <strong>team-coloured glow shell</strong> and a translucent model, so everyone can see at a glance who is still protected and will not waste bullets on them. The protection is removed the instant the player fires (<code>csb_spawnprot_breakfire</code>), optionally when they move (<code>csb_spawnprot_breakmove</code>), or when the timer expires &mdash; whichever comes first.</p><h2>Features</h2><ul><li>Configurable duration via <code>csb_spawnprot_time</code> (fractional seconds allowed).</li><li>Team-coloured glow (red for T, blue for CT) so protection is obvious to other players.</li><li>Breaks on first shot and/or on first movement, both cvar-controlled.</li><li>Rendering and godmode are always cleanly restored, even on disconnect mid-protection.</li></ul><h2>Installation</h2><ol><li>Compile and copy <code>csb_spawn_protection.amxx</code> into <code>addons/amxmodx/plugins/</code>.</li><li>Add it to <code>addons/amxmodx/configs/plugins.ini</code>.</li><li>Change the map.</li></ol>