Liberty Unleashed

Scripting => Script Help => Topic started by: mimomohamed on November 05, 2011, 12:25:46 pm

Title: what is the problem with this ?
Post by: mimomohamed on November 05, 2011, 12:25:46 pm
w_sound <- null;

function onScriptLoad()
{
     w_Sound <- null;
}

function onPlayerJoin( player )
{
    if ( !w_Sound )
    {
         w_Sound = FindSound( "welcome.mp3" );
         if ( w_Sound )
         {
              w_Sound.Open();
              w_Sound.Play();
         
              return 1;
         }
    }
    else
    {
    w_Sound.Open();
         w_Sound.Play();
      
         return 1;
    }
}
Title: Re: what is the problem with this ?
Post by: mimomohamed on November 05, 2011, 12:37:37 pm
 ;D THANKS WORKS NOW
Title: Re: what is the problem with this ?
Post by: mimomohamed on November 05, 2011, 12:51:39 pm
NO man i don't think like that but thanks   ;D