Prova501 Posted July 17, 2013 Share Posted July 17, 2013 السلام عليكم شبآب ابغى كود او فكشن > بس الافضل كود خخ اذا وآحد مرر المآوس ع الزر يشتغل sb.mp3 مس ما ابيه ينعآد .,~ نفترض الزر bl Link to comment
jafar Posted July 17, 2013 Share Posted July 17, 2013 Event : onClientMouseEnter playSound isElement destroyElement Link to comment
Prova501 Posted July 17, 2013 Author Share Posted July 17, 2013 اخوي onClientMouseEnter يستخدم اذا ضغطت ع الزر صح ؟ Link to comment
فاّرس Posted July 17, 2013 Share Posted July 17, 2013 اخوي onClientMouseEnter يستخدم اذا ضغطت ع الزر صح ؟ اذا لمست الزر يعني اذا مريت عليه بدون ضغط Link to comment
Prova501 Posted July 17, 2013 Author Share Posted July 17, 2013 function sound (sound) local sound = playSound("sounds/button_enter.mp3") setSoundVolume(sound, 0.5) if isElement( sound ) destroyElement ( sound ) end end كذا ؟ Link to comment
فاّرس Posted July 17, 2013 Share Posted July 17, 2013 وين الحدث؟, وودي اساعدك لكن خايف تحط اغاني ._. Link to comment
Prova501 Posted July 17, 2013 Author Share Posted July 17, 2013 وين الحدث؟,وودي اساعدك لكن خايف تحط اغاني ._. اخوي هذا صوت لما يجي يأشر ع الزر مثل اف اف اس وليش الاغآني برمضآن Link to comment
AboShanab Posted July 17, 2013 Share Posted July 17, 2013 Client Side ! addEventHandler("onClientMouseEnter",root, function () if source == NameButton then local sound = playSound("sounds/button_enter.mp3") setSoundVolume(sound, 0.5) if isElement( sound ) then destroyElement ( sound ) end end end) التعديل : في سطر 3 NameButton الى اسم الزر ... # Link to comment
./BlackBird# Posted July 17, 2013 Share Posted July 17, 2013 Client Side ! addEventHandler("onClientMouseEnter",root, function () if source == NameButton then local sound = playSound("sounds/button_enter.mp3") setSoundVolume(sound, 0.5) if isElement( sound ) then destroyElement ( sound ) end end end) التعديل : في سطر 3 NameButton الى اسم الزر ... # كود رائع ماشاء الله بس تقدر تقولي وش يسوي؟ Link to comment
S4MuEL Posted July 17, 2013 Share Posted July 17, 2013 (edited) -- Client Side ! addEventHandler("onClientMouseEnter", button, function () if isElement ( sound ) then destroyElement ( sound ) end sound = playSound("sounds/button_enter.mp3") setSoundVolume(sound, 0.5) end,false ) Edited July 17, 2013 by Guest Link to comment
فاّرس Posted July 17, 2013 Share Posted July 17, 2013 (edited) -- Client Side ! addEventHandler("onClientMouseEnter", button, function () if isElement ( sound ) then destroyElement ( sound ) end sound = playSound("sounds/button_enter.mp3") setSoundVolume(sound, 0.5) end ) end,false + عطيته الكود بالخاص اول ذذ Edited July 17, 2013 by Guest 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