sebyuta1 Posted October 31, 2016 Share Posted October 31, 2016 Cum a putea face ca atunci dupa ce te-ai logat sa inceapa muzica (cer asta pentru ca am deja muzica in login screen si se aud una peste alta , doar vreau ca muzica cealalta sa inceapa dupa ce te-ai logat ) Link to comment
Strike27208 Posted October 31, 2016 Share Posted October 31, 2016 (edited) Posteaza partea in care dupa ce te-ai logat script-ul distruge gui/dx si te spawneaza. sau posteaza client-ul . Sau poti incerca asta , tine mine este parte de server. function onPlayerSpawn ( theSpawnpoint, theTeam ) playSoundFrontEnd ( source, 16 ) end addEventHandler ( "onPlayerSpawn", root, onPlayerSpawn ) In schimb in loc de 16 (16 este un sunet din gta:sa) poti pune sunetul dorit ex : playSoundFrontEnd ( source, "music.mp3" ) Daca dupa ce s-a logat playerul nu se spawneaza si trebuie sa-si aleaga vreun skin sau altceva atunci te rog sa faci ce ti-am zis mai sus. Edited October 31, 2016 by Strike27208 Link to comment
..:D&G:.. Posted October 31, 2016 Share Posted October 31, 2016 (edited) melodia = playSound("melodie.mp3", true) stopSound(melodia) In functia unde jucatorul se logheaza, foloseste stopSound la prima melodie, si baga playSound la a 2a melodie... Nu e asa greu sa gandesti logic -.- Edited October 31, 2016 by ..:D&G:.. 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