I created this plugin based on a working respawn plugin, Player Respawn (v1.5), by bobobagan available at https://forums.alliedmods.net/showthread.php?t=108708.
This plugin improves on Player Respawn by disabling automatic respawn if the player is killed in too short a time after respawning. Players can be killed too quickly if there is an AFK killer or auto-killer on the map (ie: in many mg_ maps) and therefore, I made this modified version of the Player Respawn plugin in an attempt to mitigate this issue. This plugin also allows selective automatic respawns depending on the source of the damage.
I have only tested this plugin in Counter Strike: Global Offensive and therefore I cannot guarantee that it will work with other games.
Otherwise, this plugin works similar to the Player Respawn plugin:
Compatibility:
Requirements:Counter Strike: Source
Counter Strike: Global Offensive
Day of Defeat: Source
Team Fortress 2
Requires SourceMod v1.1 or greater
Slay admin flag is required - F (or root - Z)
Cvars:
Cmds:sm_respawn_version - 1.2.0 (can not be changed)
sm_auto_respawn - Automatically respawn dead players (OFF=0, On World=1, On Enemy=2, On Anything (Default=3))
sm_auto_respawn_time - Amount of seconds to delay the respawn by (Default=0.0)
sm_auto_respawn_type - Respawn type (Disable respawn for all players=0, Disable respawn per player=1 (Default=0))
sm_auto_respawn_bots - Disable/Enable (0/1) respawn bots on death (Default=1)
sm_respawn (also appears under player commands in the admin menu)
Installation:
respawn.smx into /addons/sourcemod/plugins
respawn.phrases.txt into /addons/sourcemod/translations
plugin.respawn.txt into /addons/sourcemod/gamedata - Only required for DoD:S
Download
Source