View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 04-06-2012 , 07:40   [Any] Spectator Group Targeting @spec @unassigned
Reply With Quote #1

[Any] Spectator Group Targeting
Version 1.0.1


Description:
Allows admins to target spectators, unassigned players, or both using 3 new group targets.
Target Specifiers:
  • @spec
    • All players who have joined the spectator team.
  • @unassigned
    • Players who have not joined any team (may include connecting players).
  • @notonteams
    • All the above.

Cvars:
  • sm_spec_target_version
    • Plugin Version

Install Instructions:

  1. Place SpectatorTarget.smx into your addons/sourcemod/plugins/ folder.

Usage:
In any command where you can use group targeting (eg, @all), you will be able to use @spec, etc.
Example: 'sm_kick @spec' would kick all players in spectate.

Version History:
  • V1.0.0
    • Initial Release
  • V1.0.1
    • Now ignores SourceTV/Replay bots.
Total downloads as prior to last edit: 40
Attached Files
File Type: sp Get Plugin or Get Source (SpectatorTarget.sp - 1609 views - 1.7 KB)
__________________

Last edited by DarthNinja; 04-17-2012 at 21:18.
DarthNinja is offline