When player reload specific sound is played. That sound can hear all players,from TS and CT.
How can I make this sound heard only players on my team?
PHP Code:
public Event_OnReload ( const i_Ent )
{
static id; id = pev ( i_Ent, pev_owner );
if ( UTIL_IsWeaponReloading ( id, i_Ent ) )
{
emit_sound ( id, CHAN_AUTO, SoundList[ random_num( 0, sizeof SoundList - 1 ) ], 1.0, ATTN_NORM, 0, PITCH_NORM );
}
}