ahh! I deleted arabmusic.wav by accident how can I restore to the server?
EDIT: I got that figured out... sorry.
But I still can't get a custom .wav to play...
I uploaded the file thebad.wav (6.97MB) to the sound/ambience folder and edited the .sma file accordingly;
Code:
}
public RadioActivate(RadioID[]) {
new EntID = str_to_num(RadioID)
new Station = get_cvar_num("radio_station")
if (Station==1) {
emit_sound(EntID, CHAN_VOICE, "ambience/thebad.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
set_task(107.0, "StartSoundAgain", EntID+22)
} else if (Station==2) {
emit_sound(EntID, CHAN_VOICE, "ambience/Opera.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
set_task(72.0, "StartSoundAgain", EntID+22)
} else {
emit_sound(EntID, CHAN_VOICE, "ambience/lv_jubilee.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
set_task(6.0, "StartSoundAgain", EntID+22)
}
}
public StartSoundAgain(TaskID) {
new EntID = TaskID-22
new Station = get_cvar_num("radio_station")
if (Station==1) {
emit_sound(EntID, CHAN_VOICE, "ambience/thebad.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
set_task(107.0, "StartSoundAgain", EntID+22)
} else if (Station==2) {
emit_sound(EntID, CHAN_VOICE, "ambience/Opera.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
set_task(72.0, "StartSoundAgain", EntID+22)
} else {
emit_sound(EntID, CHAN_VOICE, "ambience/lv_jubilee.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
set_task(6.0, "StartSoundAgain", EntID+22)
}
}
Compiled it and uploaded to the plugins folder. Restarted server, changed maps and I guess things were already wrong when I didn't see that .wav file being downloaded from the server to be cached into the resources...
What did I do wrong?
Thanks.