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

VoiceMask Event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-22-2018 , 04:43   VoiceMask Event
Reply With Quote #1

Does anyone have any useful information regarding this event? I'm trying to block a specific player from hearing another player but I couldn't find anything useful on how to use this event.
__________________
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-22-2018 , 08:18   Re: VoiceMask Event
Reply With Quote #3

Yes, I have.
I'm unable to test this with a friend, as none of my friends play this ancient game, and I don't have a running CS 1.6 server, so I'm asking here in case someone knows:

Is this enough to block 2 players from different teams from hearing each other?
PHP Code:
public plugin_init( )
{
    
register_forwardFM_Voice_SetClientListening"@SetClientListening" )
}

@
SetClientListeningiReceiveriSenderbool:bListen )
{
    if( 
GetPlayerTeamiReceiver ) != GetPlayerTeamiSender ) )
    {
        
engfuncEngFunc_SetClientListeningiReceiveriSenderfalse );
        
forward_returnFMV_CELLfalse );
        
        return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_IGNORED;

__________________
edon1337 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 20:45.


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