Quote:
Originally Posted by Rohanlogs
|
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_forward( FM_Voice_SetClientListening, "@SetClientListening" )
}
@SetClientListening( iReceiver, iSender, bool:bListen )
{
if( GetPlayerTeam( iReceiver ) != GetPlayerTeam( iSender ) )
{
engfunc( EngFunc_SetClientListening, iReceiver, iSender, false );
forward_return( FMV_CELL, false );
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
__________________