Mbtdaa Posted July 22, 2012 Share Posted July 22, 2012 السلام عليكم لو سمحتم بغيت كود لو فتحت النافذة يطلع صوت واذا قفلتها يطلع صوت زي شوب تابل منتظركم, Link to comment
3NAD Posted July 22, 2012 Share Posted July 22, 2012 (edited) حط مع وظيفة فتح النافذة هذا الككود https://wiki.multitheftauto.com/wiki/PlaySound Edited July 22, 2012 by Guest Link to comment
Mbtdaa Posted July 22, 2012 Author Share Posted July 22, 2012 لو سمحت ياليت تسويه لي لاني حاولت فيه وماظبط وذا كود فتح النافذه function mr.sl6an() getvisible = guigetvisible (guieditor_window[1]) if (getvisible == true) then guisetvisible (guieditor_window[1], false) showcursor (false) end if (getvisible == false) then guisetvisible (guieditor_window[1], true) showcursor (true) end end bindkey ("f2", "down", mr.sl6an) Link to comment
JR10 Posted July 22, 2012 Share Posted July 22, 2012 function mrsl6an() guiSetVisible (GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) playSound("sound.mp3", false) end bindkey ("f2", "down", mrsl6an) لاسم الصوت sound.mp3 غير Link to comment
Mbtdaa Posted July 22, 2012 Author Share Posted July 22, 2012 الف شكر لك حبيبي جزاك الله خير والله يكثر من امثالكم Link to comment
GAME_OVER!! Posted July 22, 2012 Share Posted July 22, 2012 bindKey ( "F2" , "down" , function() if ( guiGetVisible ( اسم النافذه ) == true ) then guiSetVisible ( اسم النافذه ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( اسم النافذه ) == false ) then guiSetVisible ( اسم النافذه ,true ) showCursor (false ) guiSetInputEnabled(true) playSound("اسم ملف الصوت نقطه الصيغه") end end ) Link to comment
TAPL Posted July 22, 2012 Share Posted July 22, 2012 function mrsl6an() guiSetVisible (GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) playSound("sound.mp3", false) end bindkey ("f2", "down", mrsl6an) لاسم الصوت sound.mp3 غير bindkey ("f2", "down", mrsl6an) كبتل k حرف bindKey ("f2", "down", mrsl6an) 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