hey
so this code basically loops .wav sounds.
Code:
#include <amxmodx>
#include <fakemeta_util>
#include <fun>
#tryinclude <biohazard>
#if !defined _biohazard_included
#assert Biohazard functions file required!
#endif
new zomb_ambience
public plugin_init()
{
register_plugin("Bio Ambience", "0.1", "Virtual Vybz for PhoEnix-eSports")
zomb_ambience = register_cvar("bh_ambience","1")
set_task(1.0, "ambience_loop")
}
public plugin_precache()
{
precache_sound("zombie_swarm/ambience.wav")
}
public ambience_loop()
{
if(!get_pcvar_num(zomb_ambience))
return PLUGIN_HANDLED
client_cmd(0,"spk zombie_swarm/ambience.wav")
set_task(17.0,"ambience_loop")
return PLUGIN_CONTINUE
}
how to make it loop .mp3 sounds?
thanks