View Single Post
Author Message
DragonLight
SourceMod Donor
Join Date: Aug 2011
Old 03-23-2014 , 23:52   Spray Timer v1.2
Reply With Quote #1

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
    • Initial Release
Attached Files
File Type: cfg plugin.spraytimer.cfg (583 Bytes, 351 views)
File Type: sp Get Plugin or Get Source (spraytimer.sp - 992 views - 4.7 KB)

Last edited by DragonLight; 03-27-2014 at 12:22.
DragonLight is offline