~!#abdullah Posted December 24, 2012 Share Posted December 24, 2012 السلام عليكم ابي كود للفري روم يوم احط مؤشر الماوس على الزر يطلع صوت Link to comment
abu5lf Posted December 24, 2012 Share Posted December 24, 2012 playSoundFrontEnd او playSound onClientMouseEnter Link to comment
~!#abdullah Posted December 24, 2012 Author Share Posted December 24, 2012 function click () local sound = playSound("sound.mp3") setSoundVolume(sound, 1) end addEventHandler( "onClientMouseEnter", getRootElement(), click() كذا صحيح؟ Link to comment
abu5lf Posted December 24, 2012 Share Posted December 24, 2012 function click () local sound = playSound("sound.mp3") setSoundVolume(sound, 1) end addEventHandler( "onClientMouseEnter", getRootElement(), click() كذا صحيح؟ لا وين الزر + في اقواس مالها داعي Link to comment
~!#abdullah Posted December 24, 2012 Author Share Posted December 24, 2012 bindKey("mouse1", "down", function() playSound("open.wav") end) الكود ذا ضبط بس ابي بس بالفري روم اقدر؟ Link to comment
кιηg-αвα∂у Posted December 24, 2012 Share Posted December 24, 2012 addEventHandler( "onClientMouseEnter", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == اسم الزر ) then local sound = playSound("sound.mp3") setSoundVolume(sound, 1) end end ) 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