Thread: FlashProtect
View Single Post
Author Message
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-20-2009 , 16:34   FlashProtect
Reply With Quote #1

FlashProtect
Damage players who flash their own team.

ConVars:
sm_flashprotect_enable 1 - Enable/Disable the plugin.
sm_flashprotect_damage 3 - Damage to do per second of flashed.
sm_flashprotect_duration 1.5 - Maximum duration that a flash can last for before it's punishable.
sm_flashprotect_message 1 - Enable/Disable messaging teammates when flashed.

Installation:
Download the plugin and place it in your ~/cstrike/addons/sourcemod/plugins/ folder.
Download the translation file and place it in your ~/cstrike/addons/sourcemod/translations/ folder.
Manually load the plugin, change the map, or restart the server for the plugin to be loaded.
Configure the cvars listed above in an executed config file (server.cfg is fine) to customize the plugin to your liking.

Notes:
Thanks to *XYZ*SaYnt for his original TFlash ES plugin.

Changelog:
  • 1.0.0
    • Initial release.
  • 1.1.0
    • Fixed bug where spectators were counted as being flashed.
    • Added sm_flashprotect_message cvar to control whether or not teammates receive a message when someone flashes their team.
  • 1.2.0
    • Changed damage to slap damage so a player will notice it.
    • Fixed the "{i}" showing up in the team messages.
Attached Files
File Type: sp Get Plugin or Get Source (flashprotect.sp - 301 views - 4.8 KB)
File Type: txt flashprotect.phrases.txt (410 Bytes, 143 views)
bl4nk is offline