AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CS:GO] Get a list of spectators spectating a client (https://forums.alliedmods.net/showthread.php?t=264092)

thomasross 06-08-2015 15:21

[CS:GO] Get a list of spectators spectating a client
 
How can I get a list of players that are spectating a client object that I have?

Kailo 06-08-2015 15:29

Re: [CS:GO] Get a list of spectators spectating a client
 
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.

TnTSCS 06-08-2015 15:46

Re: [CS:GO] Get a list of spectators spectating a client
 
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


All times are GMT -4. The time now is 23:51.

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