Raised This Month: $51 Target: $400
 12% 

Spray Timer v1.2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
DragonLight
SourceMod Donor
Join Date: Aug 2011
Plugin ID:
4138
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Disallow sprays for players that are new to a server until the total connection time has been reached.
    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 - 994 views - 4.7 KB)

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



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 07:53.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode