AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Spectator Group Targeting @spec @unassigned (https://forums.alliedmods.net/showthread.php?t=182089)

DarthNinja 04-06-2012 07:40

[Any] Spectator Group Targeting @spec @unassigned
 
1 Attachment(s)
[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

ecca 04-06-2012 08:51

Re: [Any] Spectator Group Targeting @spec @unassigned
 
Hehe nice one darth:bacon!:

RedSword 04-07-2012 21:58

Re: [Any] Spectator Group Targeting @spec @unassigned
 
Wow, such a function existed. :o (refering to AddMultiTargetFilter)

DarthNinja 04-07-2012 22:16

Re: [Any] Spectator Group Targeting @spec @unassigned
 
It's fairly new.

RedSword 04-08-2012 00:27

Re: [Any] Spectator Group Targeting @spec @unassigned
 
Quote:

Originally Posted by DarthNinja (Post 1684097)
It's fairly new.

http://wiki.alliedmods.net/SourceMod_1.4.0_API_Changes for more information (if someone wonder how he got that).

DarthNinja 04-08-2012 00:59

Re: [Any] Spectator Group Targeting @spec @unassigned
 
That's not how I knew about it, but yeah, that is when it was added.


RedSword 04-08-2012 01:06

Re: [Any] Spectator Group Targeting @spec @unassigned
 
Quote:

Originally Posted by DarthNinja (Post 1684199)
That's not how I knew about it, but yeah, that is when it was added.

Then how ?

FlaminSarge 04-17-2012 20:41

Re: [Any] Spectator Group Targeting @spec @unassigned
 
Any chance you can add an option to leave replay out of this?

DarthNinja 04-17-2012 21:19

Re: [Any] Spectator Group Targeting @spec @unassigned
 
Quote:

Originally Posted by FlaminSarge (Post 1691392)
Any chance you can add an option to leave replay out of this?

Done

napalm00 04-18-2012 12:34

Re: [Any] Spectator Group Targeting @spec @unassigned
 
Quote:

Originally Posted by RedSword (Post 1684083)
Wow, such a function existed. :o (refering to AddMultiTargetFilter)

The same exact thing applies to me, I feel like an idiot now :oops:
Thanks for the example, DN.


All times are GMT -4. The time now is 09:19.

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