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