Hi,
Start the music with this:
$player stufftext "tmstart mainta/sound/music/mus_allies_success.mp3"
Then you can stufftext tmvolume in lower and lower values to fade it out.
also stufftexting "tmstop" before starting a new sound will prevent the client having 2 pieces of music playing at once.
There are proberbly better ways, but my brain is frazzled at the moment.
If I remember right you can't cache files with scriptmaster that are not saved in a pk3. If you can then you could just cache the music with scriptmaster, then play it from the script. Perhaps:
[quote=game classes]
music( String current, [ String fallback ] )
Sets the current and fallback (optional) music moods.
musicvolume( Float volume, Float fade_time )
Sets the volume and fade time of the music.
[/quote]
cya