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

SetClientListening() not working for GOTV


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xm3kilo
Member
Join Date: Jan 2018
Old 03-27-2020 , 23:09   SetClientListening() not working for GOTV
Reply With Quote #1

Hi guys,

I'm trying to mute players in GOTV (and thus demos), the following code does not work:

PHP Code:
public void SetGotvListeningFlags(int targetListenOverride override)
{
    for (
int i 1<= MaxClientsi++) {
        if (
IsClientConnected(i) && (IsClientSourceTV(i) || IsClientReplay(i))) {
            
SetClientListening(itargetListen_No);
        }
    }

It's definitely hitting the SourceTV client, but SetClientListening just doesn't want to work

Any ideas?
xm3kilo is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-28-2020 , 04:43   Re: SetClientListening() not working for GOTV
Reply With Quote #2

Are you sure you are calling SetGotvListeningFlags() for each player (including newly connected) ?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
xm3kilo
Member
Join Date: Jan 2018
Old 03-28-2020 , 07:47   Re: SetClientListening() not working for GOTV
Reply With Quote #3

Quote:
Originally Posted by Dragokas View Post
Are you sure you are calling SetGotvListeningFlags() for each player (including newly connected) ?
What I'm doing is hooking voice chat, when a player talks when they shouldn't, muting them in GOTV as well so they aren't heard in demos.

If I print to chat in that function, GOTV gets the message but the client is still heard. I'm running that function for the client who is talking.
xm3kilo is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-28-2020 , 09:02   Re: SetClientListening() not working for GOTV
Reply With Quote #4

Maybe you run it too late.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 22:26.


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