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

[CS:GO] Get a list of spectators spectating a client


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thomasross
SourceMod Donor
Join Date: Jun 2015
Location: Canada
Old 06-08-2015 , 15:21   [CS:GO] Get a list of spectators spectating a client
Reply With Quote #1

How can I get a list of players that are spectating a client object that I have?
thomasross is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 06-08-2015 , 15:29   Re: [CS:GO] Get a list of spectators spectating a client
Reply With Quote #2

IsClientObserver();
Client entity prop "m_iObserverMode" - Observer Mode
#define SPECMODE_NONE 0
#define SPECMODE_FIRSTPERSON 4
#define SPECMODE_3RDPERSON 5
#define SPECMODE_FREELOOK 6
Client entity prop "m_hObserverTarget" - Spectated Client

i think you know that do next.
Kailo is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 06-08-2015 , 15:46   Re: [CS:GO] Get a list of spectators spectating a client
Reply With Quote #3

There is a plugin that does this where you can get sample code. It works on CSS but not CSGO until keyhinttext is available for CS:GO
__________________
View my Plugins | Donate
TnTSCS is offline
Reply



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 12:12.


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