Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Spawn Protection

Featured Replies

Spawn Protectionv1.0.0Counter-Strike 1.6Plugin
0 downloads · 3.8 KB · Updated 3 hours ago
AMX Mod X: 1.10Server engine: ReHLDSNeeds ReAPI: YesMetamod: Metamod-R
Sign in to download
Daemonv1.0.0 First release. · 1 file
/*
 * Spawn Protection (olds.ro workshop card LIB-1960)
 *
 * On the maps named in a list, a player who spawns takes no damage for a few
 * seconds and glows in a team colour shell (red for the Terrorists, blue for
 * the Counter-Terrorists) so everyone can see it. The protection ends early
 * the moment the player attacks: pressing fire (+attack), a shot, a grenade,
 * and also a knife attack unless olds_spawnp_knife is 0. It also ends when
 * the player dies.
 *
 * When a player spawns during the freeze time, the seconds are counted from
 * the end of the freeze time, because nobody can be shot before that.
 * Every spawn starts a fresh protection, so a player who changes team gets
 * the full time again on the next spawn.
 *
 * Cvars (saved with their descriptions in configs/plugins/olds_spawnprotect.cfg
 * the first time the plugin starts):
 *   olds_spawnp_time  2.0             Seconds of protection (0.1 - 30).
 *   olds_spawnp_maps  "aim_,awp_,fy_" Comma separated map name beginnings
 *                                     where the protection is used. Empty =
 *                                     every map. Checked at every spawn.
 *   olds_spawnp_glow  1               1 = show the glow shell while protected.
 *   olds_spawnp_knife 1               1 = a knife attack ends the protection
 *                                     too, 0 = only shots and grenades do.
 *   olds_spawnp_falls 0               1 = fall damage is blocked as well,
View olds_spawnprotect.sma →
Install into: cstrike/
1.0.0 12/4/2026
First release.
v1.0.012/4/2026 · 3.8 KB · 0 downloads
  • Administrator

Short spawn immunity that ends at the first shot, for maps where players spawn in the line of fire, with a visible shell on the protected player.

What it does

Hooks RG_CBasePlayer_TakeDamage pre and returns HC_SUPERCEDE while g_protected[id] is set. Starts on RG_CBasePlayer_Spawn post for olds_spawnp_time 2.0 seconds and ends on the first Ham_Weapon_PrimaryAttack or +attack via client_PreThink. Map filter olds_spawnp_maps "aim_,awp_,fy_". Cvars olds_spawnp_glow 1, olds_spawnp_knife 1 (also ends on knife attack).

Tested

  • Spawn on an aim_ map and take a hit in the first second: no damage is taken and the shell is shown.
  • Press fire in the first second: protection ends with the shot and the glow vanishes.
  • Run on de_dust2 which is not in the map list: the plugin does nothing.
  • Fall damage while protected is blocked only if olds_spawnp_falls is 1.
  • A player who changes team in the protection window gets the protection reset on the next spawn.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_spawnprotect.sma

License: GPL-3.0-or-later.
Written for the olds.ro plugin workshop (LIB-1960), by alexit, reviewed by alexit and checked by the automated Claude review.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.