for .mp3:
Code:
new MySound[] = "sounds/mysounds.mp3"
public plugin_precache() {
precache_generic(MySound)
}
public functoplaysound() {
client_cmd(0, "mp3 play %s", MySound) //index as 0 will play to all people on server
}
//or if you func passes an ID you can do:
public func_to_play_sound(id) {
client_cmd(id, "mp3 play %s", MySound) //this will play to id func collected
}
__________________