Hello!
Im trying to change this script so i can play wav sound and not mp3!
The sounds are located in half-life.gcf valve/sound/tride not valve/media as it says from begining in the script.
This is the code
Code:
/*
* Play a sound during the connection.
*
* Random code part taken from plugin
* connectsound by White Panther
*
* v1.0
*
*/
#include <amxmodx>
#define Maxsounds 6
// sounds localized in gcf cache (valve/media)
// you can add more song if you want.
new soundlist[Maxsounds][] = {"c0a0_tr_emerg","c0a0_tr_dest","c0a0_tr_haz","c0a0_tr_jobs","c0a0_tr_tourn","c0a0_tr_time"}
public client_connect(id) {
new i
i = random_num(0,Maxsounds-1)
client_cmd(id,"mp3 play tride/%s",soundlist[i])
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("Loading Sound","1.0","Amxx User")
return PLUGIN_CONTINUE
}
There it says
Code:
client_cmd(id,"mp3 play tride/%s",soundlist[i])
I figure that mp3 must remove and replace something with play wav to do, becuase the sounds in valve/tride ("c0a0_tr_haz") is not Mp3 its wav.
How do i change it so it works?
__________________