Thread: FlashProtect
View Single Post
Author Message
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-06-2009 , 20:39   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.
sm_flashprotect_minhealth 20 - Minimum health a player will be punished to (setting the cvar to 0 disables this feature).

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.
  • 1.3.0
    • Added sm_flashprotect_minhealth cvar.
Attached Files
File Type: sp Get Plugin or Get Source (flashprotect.sp - 3253 views - 5.2 KB)
File Type: txt flashprotect.phrases.txt (410 Bytes, 1486 views)

Last edited by bl4nk; 07-04-2009 at 02:46.
bl4nk is offline