MA[S]RIY Posted August 15, 2016 Share Posted August 15, 2016 السلام عليكم ابي كود لما الاعب يجي يسجل يعني لما تجيلو لوحه التسجيل تشتغل اغنيه ولما يخلص تسجيل الاغنيه تطفي --------- وشكرا Link to comment
coNolel Posted August 15, 2016 Share Posted August 15, 2016 onPlayerLogin setTimer playSound stopSound Link to comment
MA[S]RIY Posted August 15, 2016 Author Share Posted August 15, 2016 اخي هكذا الترتيب للاكواد صح ام لا playSound onPlayerLogin stopSound صح ام لا + انا ما ابي تايمر لاني ابي الاغنيه ششغاله واللوحة مفتوحة اول ما يسجل الاغنيه تطفي Link to comment
Wleed1998 Posted August 15, 2016 Share Posted August 15, 2016 حط اول ما يسجل دخول او يسجل يطفي الصوت حط كود توقيف الصوت بعد مايتحقق انه سجل دخوله و راحت الوحه Link to comment
SycroX Posted August 15, 2016 Share Posted August 15, 2016 addEventHandler = "onClientResourceStart" playSound --------#ServerSide addEventHandler = "onPlayerLogin" triggerClientEvent stopSound Link to comment
Ahmed Ly Posted August 15, 2016 Share Posted August 15, 2016 في اكثر من طريقه تقدر تستخدمه "onClientGUIClick" playSound isElement stopSound Link to comment
SycroX Posted August 15, 2016 Share Posted August 15, 2016 في اكثر من طريقه تقدر تستخدمه "onClientGUIClick" playSound isElement stopSound هو يبي لما تكون لوحة التسجيل موجودة Link to comment
MA[S]RIY Posted August 15, 2016 Author Share Posted August 15, 2016 شباب معلش ابي احد يسوي الترايقر من السرفر لكلينت علشان انا ما اعرف ابي احد يسويها علشان اتعلم والله لو كنت اعرف كنت سويتها بس ابي لسه اتعلم -------------- انا وصلت لحد كده فاضل الترايقر -----تشغيل الصوت addEventHandler( "onClientResourceStart", resourceRoot, sound ) function sound() sound = playSound( "music.mp3", true ) end ---توقيف الصوت function stopMySound() stopSound( music ) end Link to comment
SycroX Posted August 15, 2016 Share Posted August 15, 2016 addEventHandler("onClientResourceStart", resourceRoot, function() if isElement(sound) then destroyElement(sound) end sound = playSound("File.mp3") end) addEvent("StopSound", true) addEventHandler("StopSound", root, function() stopSound(sound) end ) --#ServerSide addEventHandler("onPlayerLogin", root, function() triggerClientEvent(source, "StopSound", source) end ) Link to comment
MA[S]RIY Posted August 15, 2016 Author Share Posted August 15, 2016 والله اخي احمد لك كامل الشكر وانا مب هلصك الكود إلا لما اتعلمه واعرف اسوي الترايقر وحدي Link to comment
MA[S]RIY Posted August 15, 2016 Author Share Posted August 15, 2016 اخي احمد ممكن حسابك سكايب او فيس او اي شئ Link to comment
SycroX Posted August 15, 2016 Share Posted August 15, 2016 اخي احمد ممكن حسابك سكايب او فيس او اي شئ ahmad.gaber25 + كنت بدور لك علي فيديو حلو تتعلم منو التريقرات و لقيت واحد حق سفاح مفيد و مبسط Link to comment
MA[S]RIY Posted August 15, 2016 Author Share Posted August 15, 2016 والله اخي مليون مليون شكر لك +ما عندك فيس بوك 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