Jump to content

play sound on join problem


AHSS

Recommended Posts

Posted

when a player join he downloads the files and resources (client sided)

so when i create a gui on player joins and show it then it might not appear so its better to hide it and show it later

so what if i want to play a sound on player joins i tried it didnt play had to reconnect after downloading

so what should i do to play it correctly on player joins and after downloading?

thanks in advance

Posted

I assume you use 'onClientPlayerJoin' event, don't you? This event will never work for joined player. So it's better use:

addEventHandler( "onClientResourceStart", resourceRoot, function() 
  playSound( "yourSound.mp3", false ); 
end ) 

Posted

hmm its working thanks for quick reply :D

but what about the gui is the best solution is to hide it then make it appear again? or what?

thanks again

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...