function onScriptLoad()
{
spawn_Sound <- null;
}
function onClientRequestClass( player )
{
if ( !spawn_Sound )
{
spawn_Sound = FindSound( "welcome.mp3" );
if ( spawn_Sound )
{
spawn_Sound.Open();
spawn_Sound.Play();
return 1;
}
}
else
{
spawn_Sound.Open();
spawn_Sound.Play();
return 1;
}
}
~~~~~~~~~~~~~~~~
Script :<script file="welcome.nut" client="1"/>
<sound file="welcome.mp3"/>
.