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

Solved Getting spectators in to target index


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
farawayf
Senior Member
Join Date: Jan 2019
Old 05-05-2019 , 10:09   Getting spectators in to target index
Reply With Quote #1

How to get the spectators which spectating the client in to target index ?

the way to use, for example: sending colored fade to all spectators, which spectating the client, if client kills someone.

Last edited by farawayf; 05-06-2019 at 06:05.
farawayf is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 05-05-2019 , 19:12   Re: Getting spectators in to target index
Reply With Quote #2

There is a netprob.

Search a netprops dump for observer.
__________________
Neuro Toxin is offline
farawayf
Senior Member
Join Date: Jan 2019
Old 05-06-2019 , 06:04   Re: Getting spectators in to target index
Reply With Quote #3

Quote:
Originally Posted by Neuro Toxin View Post
There is a netprob.

Search a netprops dump for observer.
Thank you. Solved

PHP Code:
int specmodetarget;
for(
int i 1<= MaxClientsi++) {
    if (!
IsClientInGame(i) || !IsClientObserver(i))
        continue;
                
    
specmode GetEntProp(iProp_Send"m_iObserverMode");
    if (
specmode != && specmode != 5)
        continue;
            
    
target GetEntPropEnt(iProp_Send"m_hObserverTarget");    
    if (
target == client) {
        
//
    
}    

farawayf 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 02:34.


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