Hi! I have this headshot plugin but idk why it doesn't play the sound. Sound have the good format.
Code:
#include <amxmodx>
new const sound_hohoho[] = "gooba/headhunter.wav";
public plugin_init()
{
register_plugin("HoHoHo", "0.1", "Devil.");
register_event("DeathMsg", "ev_DeathMsg", "a");
}
public plugin_precache()
{
precache_sound(sound_hohoho);
}
public ev_DeathMsg()
{
new id_Killer = read_data(1);
new iHeadShot = read_data(3);
if (iHeadShot)
{
client_cmd(id_Killer, "spk ^"%s^"", sound_hohoho);
set_hudmessage(255, 0, 0, 0.4, 0.22, 0, 6.0, 12.0);
show_hudmessage(id_Killer, "Head Hunter!");
}
}