CSB Spawn Protection

v1.0.0 1 téléchargements Daemon666 Dernière mise à jour: Jul 15, 2026

Short invulnerability at spawn with a visible team-coloured glow, dropped when you shoot or move.

CSB Spawn Protection 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.

How it works

On Ham_Spawn the player gets set_user_godmode plus a team-coloured glow shell 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 (csb_spawnprot_breakfire), optionally when they move (csb_spawnprot_breakmove), or when the timer expires — whichever comes first.

Features

  • Configurable duration via csb_spawnprot_time (fractional seconds allowed).
  • Team-coloured glow (red for T, blue for CT) so protection is obvious to other players.
  • Breaks on first shot and/or on first movement, both cvar-controlled.
  • Rendering and godmode are always cleanly restored, even on disconnect mid-protection.

Installation

  1. Compile and copy csb_spawn_protection.amxx into addons/amxmodx/plugins/.
  2. Add it to addons/amxmodx/configs/plugins.ini.
  3. Change the map.

Installation

1. Put csb_spawn_protection.amxx in addons/amxmodx/plugins/
2. Add it to plugins.ini
3. Change map

Cvars

CVARDefaultDescription
csb_spawnprot_enabled 1 Enable or disable spawn protection.
csb_spawnprot_time 3.0 Protection duration in seconds.
csb_spawnprot_breakfire 1 End protection when the player shoots.
csb_spawnprot_breakmove 0 End protection when the player moves.
csb_spawnprot_alpha 160 Model transparency (0-255) while protected.

Journal des modifications — v1.0.0

1.0.0 - Initial release.
Versions →
Contributeurs: Daemon666 ✦
Licence: GPL-3.0

Note

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Télécharger .sma
Fichiers:
csb_spawn_protection.sma main 4.3 KB

Prérequis

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Optionnel
ReAPI Optionnel
Metamod Metamod / Metamod-r
Modules fakemeta hamsandwich fun
Conflits connus Other spawn-protection / god-on-spawn plugins - run only one.
Retour aux Plugins