Liberty Unleashed
Scripting => Script Help => Topic started by: Kevin on January 27, 2013, 06:43:01 pm
-
hi guys please help I need a script to start the game when I leave I want sound please help 8)
-
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"/>
. :P
-
Thanks for your help I worked great
-
Moved to the correct board.
Issue resolved, topic locked. :)