max-mohammed Posted January 24, 2014 Posted January 24, 2014 شباب انا سويت مود اغاني فيه الازرار التالية اغلاق اعادة تشغيل ايقاف ايقاف مؤقت local s1 = "sn/club3.mp3" wnd = guiCreateWindow(200, 169, 599, 487, "لوحة الاغاني", false) stop = guiCreateButton(247, 40, 113, 39, "ايقاف", false, wnd) close = guiCreateButton(404, 40, 113, 39, "X", false, wnd) restart = guiCreateButton(84, 40, 113, 39, "اعادة تشغيل", false, wnd) song1 = guiCreateButton(84, 230, 113, 39, "Midnight clup3", false, wnd) guiSetFont(GUIEditor.button[4], "default-bold-small") stoptime = guiCreateButton(247, 230, 113, 39, "ايقاف مؤقت", false, wnd) guiSetVisible(wnd,false) addEventHandler("onClientGUIClick",guiRoot,function(player) local 111 = playSound(s1) if source == stop then if (111 == true) then stopSound(s1) outputChatBox("تم ايقاف الاغنية", player, 0, 255, 0) elseif (111 == false) then outputChatBox("لاتوجد اغنية قيد التشغيل", player, 0, 255, 0) end end end ) addEventHandler("onClientGUIClick",guiRoot,function() if source == close then guiSetVisible(wnd,false) showCursor(false) end end ) addEventHandler("onClientGUIClick",guiRoot,function(player) local 111 = playSound(s1) if source == restart then if (111 == true) then stopSound(s1) playSound(s1) outputChatBox("لقد تم اعادة تشغيل الاغنية", player, 0, 255, 0) elseif (111 == false) then outputChatBox("لاتوجد اغنية قيد التشغيل", player, 0, 255, 0) end end end ) addEventHandler("onClientGUIClick",guiRoot,function(player) local 111 = playSound(s1) if source == song1 then if (111 == true) then outputChatBox("لقد بدئت اغنية clup3 ", player, 0, 255, 0) elseif (111 == false) then outputChatBox("هذه الاغنية قيد التشغيل ", player, 0, 255, 0) end end end ) addEventHandler("onClientGUIClick",guiRoot,function(player) local 111 = playSound(s1) local pause = isSoundPaused(111) if source == stoptime then if (pause == true) then outputChatBox("لقد تم ايقاف الموسيقى ايقاف مؤقت من قبل", player, 0, 255, 0) elseif (pause == true) then outputChatBox("الموسيقى تم ايقفها ايقاف مؤقت", player, 0, 255, 0) end end end ) bindKey('F4','down', function() if guiGetVisible(wnd) then guiSetVisible(wnd,false) showCursor(false) else guiSetVisible(wnd,true) showCursor(true) end end ) الكود موراضي يشتغل اتمنى فهمتوني
!#NssoR_) Posted January 24, 2014 Posted January 24, 2014 كودك فيه هريس كثير ترا انت حاط اسم الصوت 111 اعتقد مايصير تحطه ارقام و انا ملاحظ بـ اكوادك بسطر 71 هذا الكود isSoundPaused هذا يستخدم لـتحقق من ان الصوت موقف او شغال فـ اذا حاب توقفه تستخدم setSoundPaused وحاط بـ اسم الفنكشن function ( player ) = ??? خلها فاضيه كذا function ( )
Do_De<3 Posted January 25, 2014 Posted January 25, 2014 شباب انا سويت مود اغاني فيه الازرار التاليةاغلاق اعادة تشغيل ايقاف ايقاف مؤقت local s1 = "sn/club3.mp3" wnd = guiCreateWindow(200, 169, 599, 487, "لوحة الاغاني", false) stop = guiCreateButton(247, 40, 113, 39, "ايقاف", false, wnd) close = guiCreateButton(404, 40, 113, 39, "X", false, wnd) restart = guiCreateButton(84, 40, 113, 39, "اعادة تشغيل", false, wnd) song1 = guiCreateButton(84, 230, 113, 39, "Midnight clup3", false, wnd) guiSetFont(GUIEditor.button[4], "default-bold-small") stoptime = guiCreateButton(247, 230, 113, 39, "ايقاف مؤقت", false, wnd) guiSetVisible(wnd,false) addEventHandler("onClientGUIClick",guiRoot,function(player) local 111 = playSound(s1) if source == stop then if (111 == true) then stopSound(s1) outputChatBox("تم ايقاف الاغنية", player, 0, 255, 0) elseif (111 == false) then outputChatBox("لاتوجد اغنية قيد التشغيل", player, 0, 255, 0) end end end ) addEventHandler("onClientGUIClick",guiRoot,function() if source == close then guiSetVisible(wnd,false) showCursor(false) end end ) addEventHandler("onClientGUIClick",guiRoot,function(player) local 111 = playSound(s1) if source == restart then if (111 == true) then stopSound(s1) playSound(s1) outputChatBox("لقد تم اعادة تشغيل الاغنية", player, 0, 255, 0) elseif (111 == false) then outputChatBox("لاتوجد اغنية قيد التشغيل", player, 0, 255, 0) end end end ) addEventHandler("onClientGUIClick",guiRoot,function(player) local 111 = playSound(s1) if source == song1 then if (111 == true) then outputChatBox("لقد بدئت اغنية clup3 ", player, 0, 255, 0) elseif (111 == false) then outputChatBox("هذه الاغنية قيد التشغيل ", player, 0, 255, 0) end end end ) addEventHandler("onClientGUIClick",guiRoot,function(player) local 111 = playSound(s1) local pause = isSoundPaused(111) if source == stoptime then if (pause == true) then outputChatBox("لقد تم ايقاف الموسيقى ايقاف مؤقت من قبل", player, 0, 255, 0) elseif (pause == true) then outputChatBox("الموسيقى تم ايقفها ايقاف مؤقت", player, 0, 255, 0) end end end ) bindKey('F4','down', function() if guiGetVisible(wnd) then guiSetVisible(wnd,false) showCursor(false) else guiSetVisible(wnd,true) showCursor(true) end end ) الكود موراضي يشتغل اتمنى فهمتوني مآظن فيه آحدد بيسآعدكك : ) يكسبون ذنووبكك علشانك ؟ #You think you know me ?, Think again ~ #En[K]sAr Is Here ~
max-mohammed Posted January 25, 2014 Author Posted January 25, 2014 local s1 = "sn/club3.mp3" local son = playSound(s1) stopSound(son) wnd = guiCreateWindow(200, 169, 599, 487, "لوحة الاغاني", false) stop = guiCreateButton(247, 40, 113, 39, "ايقاف", false, wnd) close = guiCreateButton(404, 40, 113, 39, "X", false, wnd) restart = guiCreateButton(84, 40, 113, 39, "اعادة تشغيل", false, wnd) song1 = guiCreateButton(84, 230, 113, 39, "Midnight clup3", false, wnd) guiSetFont(GUIEditor.button[4], "default-bold-small") stoptime = guiCreateButton(247, 230, 113, 39, "ايقاف مؤقت", false, wnd) guiSetVisible(wnd,false) addEventHandler("onClientGUIClick",guiRoot,function() if source == stop then if (son == true) then stopSound(s1) outputChatBox("تم ايقاف الاغنية", source, 0, 255, 0) elseif (son == false) then outputChatBox("لاتوجد اغنية قيد التشغيل", source, 0, 255, 0) end end end ) addEventHandler("onClientGUIClick",guiRoot,function() if source == close then guiSetVisible(wnd,false) showCursor(false) end end ) addEventHandler("onClientGUIClick",guiRoot,function() if source == restart then if (son == true) then stopSound(s1) playSound(s1) outputChatBox("لقد تم اعادة تشغيل الاغنية", source, 0, 255, 0) elseif (son == false) then outputChatBox("لاتوجد اغنية قيد التشغيل", source, 0, 255, 0) end end end ) addEventHandler("onClientGUIClick",guiRoot,function() if source == song1 then if (son == true) then outputChatBox("لقد بدئت اغنية Midnight clup3 ", source, 0, 255, 0) playSound(s1) elseif (son == false) then outputChatBox("هذه الاغنية قيد التشغيل ", source, 0, 255, 0) end end end ) addEventHandler("onClientGUIClick",guiRoot,function() local pause = isSoundPaused(son) if source == stoptime then if (pause == true) then setSoundPaused(son, false) guiSetText(stoptime,"استكمال") outputChatBox("لقد تم استكمال الموسيقى", source, 0, 255, 0) elseif (pause == true) then outputChatBox("الموسيقى تم ايقفها ايقاف مؤقت", source, 0, 255, 0) guiSetText(stoptime,"ايقاف مؤقت") setSoundPaused(son, true) end end end ) bindKey('F4','down', function() if guiGetVisible(wnd) then guiSetVisible(wnd,false) showCursor(false) else guiSetVisible(wnd,true) showCursor(true) end end ) كذا صح؟
max-mohammed Posted January 25, 2014 Author Posted January 25, 2014 وينكم؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
iPrestege Posted January 25, 2014 Posted January 25, 2014 ودي اعدله لك لكن آغـاني : ( للآســف صعـــبـــه ..
Mando Posted January 25, 2014 Posted January 25, 2014 ياخوي لو اعرف كنت عدلتة لك والسبب : انك ماكذبت وقولت مثلآ قرآن انشيد وكذا في ناس تقول بحط قرآن وانشيد وكذا وتكون بتحط ااغاني انت قولت الصراحة علي طول لكن انا معرف اعدل شيء
SoMe/RPG Posted January 25, 2014 Posted January 25, 2014 ودي اعدله لك لكن آغـاني : ( للآســف صعـــبـــه .. +2
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