if you get a "filed to transmit" = means its not int he misc folder. Besides you have to precache it.
Here is an example:
Code:
#include <amxmodx>
#define Maxsounds 5
new soundlist[Maxsounds][] = {"mysong1","mysong2","mysong3","mysong4","mysong5"}
public plugin_precache() {
precache_sound("misc/mysong1.mp3")
precache_sound("misc/mysong2.mp3")
precache_sound("misc/mysong3.mp3")
precache_sound("misc/mysong4.mp3")
precache_sound("misc/mysong5.mp3")
return PLUGIN_CONTINUE
}
public client_connect(id) {
new i
i = random_num(0,Maxsounds-1)
client_cmd(id,"mp3 play sound/misc/%s",soundlist[i])
return PLUGIN_CONTINUE
}
If you want to use your own, i would suggest disabeling the one int he super (via cvar) and use
This one.
__________________