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

SpecialAttack Zones


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
VictorOfSweden
Junior Member
Join Date: Aug 2008
Location: Sweden
Plugin ID:
934
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Executes commands when clients are located in predefined zones.
    Old 06-17-2009 , 16:53   SpecialAttack Zones
    Reply With Quote #1

    This plugin regularly checks player locations. If found to be in one of the user configurable zones, players are then filtered by team and class. If a player passes the filters, a given command is executed (from the server console).

    sm_spa_zones_enabled (0/1, def 1)
    Enable/disable player location checking.

    sm_spa_zones_file (def "configs/zones.txt")
    The configuration file to load.

    sm_spa_zones_interval (def 10)
    Time (in seconds) between checking player locations.

    sm_spa_zones_debug (1/0, def 0)
    Enable/disable debug output (to file & server console).

    By default the plugin reads the configuration from the file configs/zones.txt, which has the following format:

    Code:
    "Zones"
    {
        "ctf_2fort"
        {
            "red_spawn"
            {
                "minx"        "175"
                "miny"        "1310"
                "minz"        "250"
                
                "maxx"        "800"
                "maxy"        "1630"
                "maxz"        "275"
                
                "teams"        "4"
                "classes"      "1"
                
                "command"    "say Hi ''{CLIENT_NAME}''! You are a red scout in front of red spawn on ''ctf_2fort''!"
            }
        }
    }
    Teams

    Red = 4, Blu = 8
    Sum up the numbers corresponding to the teams you want to be affected (Red+Blu=12).

    Classes

    Scout = 1, Soldier = 2, Pyro = 4, ...
    Sum up the numbers corresponding to the classes you want to be affected (Scout+Pyro=5)..

    Command

    The command field can contain the following tolkens: {CLIENT_NAME}, {CLIENT_STEAMID}, {CLIENT_USERID}, {CLIENT_LONG_ID}.

    Changelog
    • 1.0.0
      • Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (SpA-Zones.sp - 1420 views - 11.6 KB)

    Last edited by VictorOfSweden; 07-06-2009 at 14:05. Reason: Fixed plugin info.
    VictorOfSweden is offline
     


    Thread Tools
    Display Modes

    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 17:10.


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