Make sure oldbutton is not IN_ATTACK
Code:
static iButton, iOldButtons
iButton = get_uc(handle, UC_Buttons)
iOldButtons = pev( id, pev_oldbuttons )
if ( ( iButton & IN_ATTACK ) && !( iOldButtons & IN_ATTACK ) )
emit_sound(id, CHAN_WEAPON, snd_fire[random_num(0, sizeof snd_fire - 1)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
__________________