Quote:
Originally Posted by Depresie
yes, it does... in the following example both cstrike/sound folder and valve/sound folder will be checked for the sound file
Code:
sound = "ambience/blabla.wav"
what are you trying to do more exactly?
|
This is not what he want try this simple Function :
Code:
stock _playSound(id, const sound[])
{
if (equal(sound[strlen(sound)-4], ".mp3"))
client_cmd(id, "mp3 play ^"sound/%s^"", sound)
else
client_cmd(id, "spk ^"%s^"", sound)
}
usage :
_playSound( index , "media/Something.mp3")
And before that make sure that the media file existe . I would recommend to add your sound file in the original folder .