Description:
Run cmds to a group of clients.
Examples:
Kick all:
sm_rungroup all sm_kick ##id
All except yourself (by name):
sm_rungroup all-self sm_kick #name
All dead cts, but not bots or admins:
sm_rungroup ct=dead-bot-admin sm_kick ##id
Specteam, unassigned team and players with userid 3 and 5
sm_rungroup spec+unas+3+5 sm_kick ##id
Specteam by number without admins
sm_rungroup team1-admin sm_kick ##id
The first # before #id is the # for sm_kick:
sm_kick <
#userid|name> [reason]
Details:
Requires generic admin flag (b), dissolved cmds are run through FakeClientCommand.
sm_rungroup <targets without whitespaces> <cmd[ args with #id or #steam or #name]*>
sm_rungroup without any args will display a short help, and a list of available targetnames.
targets:
-
all, bot, human, alive, dead, self, notadmin
- me - alias of self
- picker - the player you are aiming at
- lookat - alias of picker
-
teamX - if unknown mod, you can target them by teamid
-
userid of a client
-
admin - clients that have only the reservationflag are not admins
- [modspecific] - see addons/sourcemod/gamedata/rungroup.games.txt
CS:S:
unas, spec, t, ct
operators:
+ clients from a and clients from b
- clients from a without clients of b
= clients that are in group a and b
Test:
sm_rungroup all sm_rcon say #id #steam #name
sm_rungroup all "sm_rcon say #id #steam #name"
Note:
Copy rungroup.games.txt to addons/sourcemod/gamedata/rungroup.games.txt to have mod-specific teamnames
Changelog:
Quote:
0.2.1.19
- added the ability to automatically restore the default teamfile if it's missing (autoupdater compatible, fallback-mode)
0.2.0.18
- added "me" as alias of "self"
- added "lookat" and "picker"
- fixed bug where plugin was loading only one team from rungroup.games.txt caused by this bugfix http://svn.alliedmods.net/viewvc.cgi...&revision=1008 ^^
- moved rungroup.games.txt to addons/sourcemod/gamedata/rungroup.games.txt
- added tf to rungroup.games.txt
0.1.5.17
- a few bugs fixed
- more targets
0.1.0.16
- Public Release
|