Raised This Month: $32 Target: $400
 8% 

[CSGO] Get who player is spectating


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shortguy
Member
Join Date: Jul 2009
Old 10-24-2015 , 23:24   [CSGO] Get who player is spectating
Reply With Quote #1

Hi there,

Is it possible to grab the client ID of the player that a person is spectating (if any) in CS GO?

Thanks
shortguy is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 10-25-2015 , 00:14   Re: [CSGO] Get who player is spectating
Reply With Quote #2

I believe you can use:
Code:
GetEntPropEnt(client, Prop_Send, "m_hObserverTarget");
to get the client index.
__________________
splewis is offline
shortguy
Member
Join Date: Jul 2009
Old 10-25-2015 , 02:29   Re: [CSGO] Get who player is spectating
Reply With Quote #3

Cheers, works a treat.
shortguy is offline
Reply


Thread Tools
Display Modes

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 00:14.


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