Spray Timer
This is a basic plugin to disallow sprays for players that are new to a server for a certain amount of connection time. Many trolls don't visit servers for very long and like to leave behind some pretty bad sprays. This blocks sprays until the connection time has been reached and sprays function normally. Uses cookies to store play time persistently, good for single or multiple servers sharing same clientprefs database. You can also toggle if you want admins/donators with reserve slot to bypass the timer.
CVars:
sm_spraytimer_version - Spray Timer version.
sm_spraytimer_enabled - If you want plugin enabled or disabled. (Default: 1)
sm_spraytimer_time - Total connection time in minutes before players can use sprays. (Default: 120)
sm_spraytimer_reserved - Any players with admin reserve flag "A" can bypass the timer if enabled. (Default: 0)
Credits:
Thanks to Spray Tracer (
https://forums.alliedmods.net/showthread.php?t=75480) for some of the coding.
Installation:
Put the plugin (spraytimer.smx) into your /addons/sourcemod/plugins folder.
plugin.spraytimer.cfg will automatically be created in the /tf/cfg/sourcemod/ folder.
Changelog:
- 1.2
- Removed TF2 specific checks.
- 1.1
- Added check to bypass bots on disconnect.
- 1.0