Raised This Month: $ Target: $400
 0% 

To hear own voice


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-13-2015 , 13:00   Re: To hear own voice
Reply With Quote #7

Quote:
Originally Posted by JusTGo View Post
why ? its easier to just do client_cmd(id,"voice_loopback 1")
That's slowhack and is NOT allowed in this forum.

Not tested, but i guess it should work:
PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_forward(FM_Voice_SetClientListening"fwd_FM_Voice_SetClientListening");
}

public 
fwd_FM_Voice_SetClientListening(receiversenderbool:bListen)
{
    if(
receiver == sender && is_user_connected(receiver))
    {
        
engfunc(EngFunc_SetClientListeningreceiversendertrue);
        return 
FMRES_SUPERCEDE;
    }
    
     return 
FMRES_IGNORED;

__________________
Jhob94 is offline
 



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 18:43.


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