Shnurok and I, as an assistant, developed a script that plays music when player spawn.
Here it is:
function onScriptLoad()
{
spawn_Sound <- null;
}
function onClientSpawn( player )
{
if ( !spawn_Sound )
{
spawn_Sound = FindSound( "mysound.mp3" );
if ( spawn_Sound )
{
spawn_Sound.Open();
spawn_Sound.Play();
}
}
else
{
spawn_Sound.Play();
}
}