Will notify attackers, victims, or everyone when a player spawn kills someone.
Based of amount of time between deaths. its not a perfect science but it does the job.
I built (and only tested) this for homefront based on time of death because homefront doesn't have a event for spawning. But it should work the same with any game.
It has warning and a notice times, warn or obvious spawn kill, notice for when the attacker is getting too close to the spawns. then the ability to give the attacker a warning message or to give them a actual warning.
Special Thanks to Courgette for all his help getting this started.
Any ideas, or suggestions would be appreciated. Change Log:
# 08/23/2011 - 1.0.0 - Ultra
# -- Created the plugin and released it to the public.
# 08/23/2011 - 1.0.1 - Ultra
# -- Fixed warning message and indentation issue.
# 09/17/2011 - 1.1.0 - Ultra
# -- Added notice limit to issue a warning after so many notices.
# -- Cleaned up the code a little bit.
# -- Fixed a error when issuing a warning.Example Config
Download Mirror Download
Spawn Protection time between players deaths in seconds to issue a warning.
If joe kills john and john has only been alive for 5 seconds or less
then it is most likley a spawn kill. Warn Joe to not spawn kill.
Spawn Protection time between players deaths in seconds to issue a notice.
If joe kills john and john has only been alive for 10 seconds or less
then it is may be a spawn kill. Give Joe a notice to back up.
<!-- Warning Message (%s is the Players Name). -->
<set name="warning_message">**WARNING**, %s Spawn Camping and Spawn Killing are not allowed.</set>
<!-- Notice Message (%s is the Players Name) -->
<set name="notice_message">**NOTICE**, %s You are to close to spawn. Please back up.</set>
1 = Just send a PM to the attacker.
2 = Send a PM to the attacker and the vitim
3 = Send a PM to the attacker and a message to the whole server.
0 = Just give the attacker a warning message.
1 = Give the attacker actual warning ( 3 of these they get banned )
Rule # for spawn camping.
Notice limit to issue a warning. For every X amount of notices the attacker will get a warning.