☠ RaZeR ☠ Posted August 31, 2014 Share Posted August 31, 2014 شباب ابي منكم طلب يعني الموضوع مايحتاج الا واحد يرد ذا سكربت الانشودة الزبدة انا خليته قران لما اشغل المود يشغل السورة مرة وحدة ابيه يكرر السورة كل شوي ذا الكود addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() -- little interval, music is getting laggy when all resources are starting.. setTimer(function() playSound("joinsound.mp3") end, 2000, 1) end ) Link to comment
nxFairlywell Posted August 31, 2014 Share Posted August 31, 2014 شوف وقت السوره و ضبط التايمر على وقتها اول ماتخلص يعيد تشغيلها Link to comment
Mr.T9 Posted August 31, 2014 Share Posted August 31, 2014 شوف وقت السوره و ضبط التايمر على وقتها اول ماتخلص يعيد تشغيلها ياذكي التايمر اللي هو حاطه اول مايشغل المود ينتظر ثانيتين وبعدين يشتغل الصوت Link to comment
nxFairlywell Posted August 31, 2014 Share Posted August 31, 2014 شوف وقت السوره و ضبط التايمر على وقتها اول ماتخلص يعيد تشغيلها ياذكي التايمر اللي هو حاطه اول مايشغل المود ينتظر ثانيتين وبعدين يشتغل الصوت اها , طيب يمديه يحط تايمر كل ماتخلص الاغنية يرجعها IsSoundFinished function isSoundFinished(theSound) local length = getSoundLength(theSound) local post = getSoundPosition(theSound) if (post == length) then return true end return false end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() -- little interval, music is getting laggy when all resources are starting.. setTimer(function() sound = playSound("joinsound.mp3") end, 2000, 1) if ( isSoundFinished(sound) ) then playSound("joinsound.mp3") end ) صاحب الموضوع جرب ورجعلي جواب Link to comment
☠ RaZeR ☠ Posted August 31, 2014 Author Share Posted August 31, 2014 ماعاد السورة وقف Link to comment
Mr.T9 Posted August 31, 2014 Share Posted August 31, 2014 addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() local Sound = playSound("NameSound.mp3") if (isSoundFinished(Sound)) then local Sound = playSound("NameSound.mp3") end end ) ماني مجرب لكن اتوقع انه بيشتغل مرتين بس Link to comment
nxFairlywell Posted August 31, 2014 Share Posted August 31, 2014 addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() local Sound = playSound("NameSound.mp3") if (isSoundFinished(Sound)) then local Sound = playSound("NameSound.mp3") end end ) ماني مجرب لكن اتوقع انه بيشتغل مرتين بس اممم ,, علي اي اساس isSoundFinished ???? Link to comment
AboShanab Posted August 31, 2014 Share Posted August 31, 2014 addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() local Sound = playSound("NameSound.mp3") if (isSoundFinished(Sound)) then local Sound = playSound("NameSound.mp3") end end ) ماني مجرب لكن اتوقع انه بيشتغل مرتين بس تشغلها وتتاكد انها خلصت مدري شلون تجي هذي :\ Link to comment
K1NG Posted August 31, 2014 Share Posted August 31, 2014 شباب ابي منكم طلب يعني الموضوع مايحتاج الا واحد يردذا سكربت الانشودة الزبدة انا خليته قران لما اشغل المود يشغل السورة مرة وحدة ابيه يكرر السورة كل شوي ذا الكود addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() -- little interval, music is getting laggy when all resources are starting.. setTimer(function() playSound("joinsound.mp3") end, 2000, 1) end ) * Client Side: setTimer ( playSound, 2000, 1, "joinsound.mp3", true ) 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