View Single Post
Author Message
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-02-2012 , 22:10   [TF2] No Enemies In Spawn
Reply With Quote #1

[TF2] No Enemies In Spawn

v1.2.1

Description:
There are a few glitches in TF2 that allow people to enter the enemy team's spawn room. This plugin will slay anyone who enters the enemy team's spawn room. Admins who have access to the sm_admin command are immune from slaying. Players are, of course, allowed to enter the enemy team's spawn room during humiliation.

This can also be useful on trade servers that run maps in which the entire spawn area isn't enclosed in a func_respawnroom, allowing engineers to build teleporter exits, which allow enemy spies in.

Don't use this on maps with moving spawns.

Cvars:
no_enemy_in_spawn_version - plugin version
no_enemy_in_spawn_message - message that will be displayed in the center of the screen when a player is slayed (defaults to "You may not enter the enemy team's spawn")
no_enemy_in_spawn_auto_update - enables automatic updating (has no effect if Updater is not installed) (defaults to 1)

Requirements:
Requires the SDK Hooks extension.

Installation:
Install SDK Hooks, put no_enemy_in_spawn.smx into /addons/sourcemod/plugins, and reboot your server or type "sm plugins load no_enemy_in_spawn" into your console or rcon.

Auto Update:
Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.2.0 (7/17/13)
    • Updated detection method
  • v1.1.0 (6/17/13)
    • Fixed the detection method
    • Updated Updater integration
  • v1.0.0 (12/2/12)
    • Initial release

Download Plugin (no_enemy_in_spawn.smx)
View Source (no_enemy_in_spawn.sp)
__________________

Last edited by Dr. McKay; 07-14-2020 at 04:27.
Dr. McKay is offline