Hello there,
Im using ultimate_sounds plugin which makes a sound while killing someone
so I have those sounds like
PHP Code:
new stksounds[31][] =
{
"misc/killsounds/3multikill_f"
......
}
and then
PHP Code:
public play_sound(sound)
{
//new killer = read_data(1)
sound -=TASK_SOUND
//emit_sound( killer, CHAN_ITEM, stksounds[sound], VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
client_cmd(0, "spk %s", stksounds[sound]);
previous_level = 0
}
as you can see I tried to use emit_sound instead of client_cmd since Im trying to play a sound but depending on the distance, so as close youre standing to that person who kills someone you can hear those sounds and if youre kinda far, you cant.
Ive seen similar plugins and there was something like that code above which is canceled.
How can I fix this?
__________________