AHSS Posted June 3, 2011 Share Posted June 3, 2011 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 Link to comment
DakiLLa Posted June 3, 2011 Share Posted June 3, 2011 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 ) Link to comment
AHSS Posted June 3, 2011 Author Share Posted June 3, 2011 hmm its working thanks for quick reply but what about the gui is the best solution is to hide it then make it appear again? or what? thanks again Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now