1REDBULL Posted May 17, 2014 Share Posted May 17, 2014 addEventHandler('onClientGUIClick', root, function () if ( source == GUIEditor.button[1] ) then local sound = playSound(M.MP3) setSoundVolume(sound, 0.5) end ) guiSetVisible (GUIEditor.window[1], false) function OpenWin() if guiGetVisible (GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down", OpenWin) وش الخطء؟ Link to comment
!#NssoR_) Posted May 17, 2014 Share Posted May 17, 2014 (edited) سطر 4 جرب خليه كذا local sound = playSound("M.MP3") + ناقص اند Edited May 17, 2014 by Guest Link to comment
TAPL Posted May 17, 2014 Share Posted May 17, 2014 addEventHandler('onClientGUIClick', root, function () if ( source == GUIEditor.button[1] ) then local sound = playSound("M.MP3") setSoundVolume(sound, 0.5) end end) Link to comment
™!>VàLéNTiNô<!™ Posted May 17, 2014 Share Posted May 17, 2014 guiSetVisible (GUIEditor.window[1], false) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down", OpenWin) addEventHandler("onClientGuiClick", root, function () if ( source == GUIEditor.button[1] ) then local sound = playSound("M.mp3") setSoundVolume(sound, 0.5) end end ) Link to comment
iMr.Dawix~# Posted May 17, 2014 Share Posted May 17, 2014 guiSetVisible (GUIEditor.window[1], false) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down", OpenWin) addEventHandler("onClientGuiClick", root, function () if ( source == GUIEditor.button[1] ) then local sound = playSound("M.mp3") setSoundVolume(sound, 0.5) end end ) Link to comment
1REDBULL Posted May 17, 2014 Author Share Posted May 17, 2014 يعطيكم العافيه طلع ذا الكود الصحيح addEventHandler("onClientGUIClick", root, function() if(source == GUIEditor.button[1])then if(sound)then return end sound = playSound("M.mp3",true) elseif(source == GUIEditor.button[5])then if(sound)then stopSound(sound) sound = nil end end end ) Link to comment
EH10 Posted May 17, 2014 Share Posted May 17, 2014 يعني كل ذا مشان كود خخخخ كيف نساعدك وتبي تشغل اغاني Link to comment
1REDBULL Posted May 17, 2014 Author Share Posted May 17, 2014 لامو علشان كود كان في خطء و طلع الخطء في الكود و عدلته و مو شرط اغاني ممكن اناشيد او اي شي 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