Prova501 Posted July 17, 2013 Posted July 17, 2013 السلام عليكم شبآب ابغى كود او فكشن > بس الافضل كود خخ اذا وآحد مرر المآوس ع الزر يشتغل sb.mp3 مس ما ابيه ينعآد .,~ نفترض الزر bl
jafar Posted July 17, 2013 Posted July 17, 2013 Event : onClientMouseEnter playSound isElement destroyElement
Prova501 Posted July 17, 2013 Author Posted July 17, 2013 اخوي onClientMouseEnter يستخدم اذا ضغطت ع الزر صح ؟
فاّرس Posted July 17, 2013 Posted July 17, 2013 اخوي onClientMouseEnter يستخدم اذا ضغطت ع الزر صح ؟ اذا لمست الزر يعني اذا مريت عليه بدون ضغط
Prova501 Posted July 17, 2013 Author 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 كذا ؟
Prova501 Posted July 17, 2013 Author Posted July 17, 2013 وين الحدث؟,وودي اساعدك لكن خايف تحط اغاني ._. اخوي هذا صوت لما يجي يأشر ع الزر مثل اف اف اس وليش الاغآني برمضآن
AboShanab Posted July 17, 2013 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 الى اسم الزر ... #
./BlackBird# Posted July 17, 2013 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 الى اسم الزر ... # كود رائع ماشاء الله بس تقدر تقولي وش يسوي؟
S4MuEL Posted July 17, 2013 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
فاّرس Posted July 17, 2013 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
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