αвυ-wαleed Posted February 14, 2014 Share Posted February 14, 2014 ابغى تعديل على الكود ابغى اذا ضغط على أي زر يشغل الاغنية تطفى الاغاني الباقية والزر a55 ابغاه يطفيها كلها GUIEditor_Image = {} sss = guiCreateWindow(408,100,459,608,"شيلات abu-waleed",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,439,115,"A.png",false,sss) x = guiCreateButton(9,146,42,38,"X",false,sss) guiSetFont(x,"default-bold-small") a11 = guiCreateButton(266,202,142,141,"شيلة ياعبد الغني",false,sss) guiSetFont(a11,"default-bold-small") a22 = guiCreateButton(50,202,142,141,"شيلة أبغى ارفع الصوت",false,sss) guiSetFont(a22,"default-bold-small") a33 = guiCreateButton(271,361,142,141,"الهلال و النصر",false,sss) guiSetFont(a33,"default-bold-small") a44 = guiCreateButton(54,361,142,141,"شيلة يارفيقي",false,sss) guiSetFont(a44,"default-bold-small") a55 = guiCreateButton(111,517,250,76,"ايقاف صوت الشيلة",false,sss) guiSetVisible ( sss, false ) local Marker = createMarker (-1491.3062744141, 762.76330566406, 6.9000, "cylinder", 1, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) setElementFrozen ( player, true ) setTimer (setElementFrozen, 500, 1, player, false) if ( hitPlayer == localPlayer ) then local _, _, Pz = getElementPosition(hitPlayer) local _, _, Mz = getElementPosition(Marker) if (Mz + 3 >= Pz) and (Pz + 3 >= Mz) then guiSetVisible ( sss ,true ) showCursor( true ) end end end) addEventHandler("onClientGUIClick",root, function () if ( source == a11 ) then if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("2.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == a33 ) then if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("3.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == a44 ) then if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("4.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == a55 ) then stopSound( 1.mp3,false ) stopSound( 2.mp3,false ) stopSound( 3.mp3,false ) stopSound( 4.mp3,false) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == x ) then guiSetVisible ( sss ,false ) showCursor( false ) end end ) Link to comment
' ρяofзśŝoя 亗 Posted February 14, 2014 Share Posted February 14, 2014 onClientGUIClick --- آلحدثثء playSound --- تششغيل آلصوتتء stopSound --- آيقااففء آلصوتتء # Link to comment
αвυ-wαleed Posted February 14, 2014 Author Share Posted February 14, 2014 الكود قصير عدل عليه لاهنت onClientGUIClick --- آلحدثثء playSound --- تششغيل آلصوتتء stopSound --- آيقااففء آلصوتتء # Link to comment
' ρяofзśŝoя 亗 Posted February 14, 2014 Share Posted February 14, 2014 local Marker = createMarker (-1491.3062744141, 762.76330566406, 6.9000, "cylinder", 1, 255, 0, 0, 150 ) ؟؟ الككود فيهه آخططاء ، واضنن مزروففء # Link to comment
αвυ-wαleed Posted February 14, 2014 Author Share Posted February 14, 2014 لاانا مسوية عدل الاخطاء لاهنت Link to comment
The Killer Posted February 14, 2014 Share Posted February 14, 2014 جرب ملاحظه عدل x,y,z بالاحداثيات GUIEditor_Image = {} sss = guiCreateWindow(408,100,459,608,"شيلات abu-waleed",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,439,115,"A.png",false,sss) x = guiCreateButton(9,146,42,38,"X",false,sss) guiSetFont(x,"default-bold-small") a11 = guiCreateButton(266,202,142,141,"شيلة ياعبد الغني",false,sss) guiSetFont(a11,"default-bold-small") a22 = guiCreateButton(50,202,142,141,"شيلة أبغى ارفع الصوت",false,sss) guiSetFont(a22,"default-bold-small") a33 = guiCreateButton(271,361,142,141,"الهلال و النصر",false,sss) guiSetFont(a33,"default-bold-small") a44 = guiCreateButton(54,361,142,141,"شيلة يارفيقي",false,sss) guiSetFont(a44,"default-bold-small") a55 = guiCreateButton(111,517,250,76,"ايقاف صوت الشيلة",false,sss) guiSetVisible ( sss, false ) local Marker = createMarker (-1491.3062744141, 762.76330566406, 6.9000, "cylinder", 1, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) setElementFrozen ( player, true ) setTimer (setElementFrozen, 500, 1, player, false) if ( hitPlayer == localPlayer ) then local _, _, Pz = getElementPosition(hitPlayer) local _, _, Mz = getElementPosition(Marker) if (Mz + 3 >= Pz) and (Pz + 3 >= Mz) then guiSetVisible ( sss ,true ) showCursor( true ) end end end) addEventHandler("onClientGUIClick",root, function () if ( source == a11 ) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) destroyElement( sound5 ) local sound = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) elseif (source == a22) then destroyElement( sound ) destroyElement( sound3 ) destroyElement( sound4 ) destroyElement( sound5 ) local sound2 = playSound3D("2.mp3", x,y,z) elseif (source == a33) then destroyElement( sound2 ) destroyElement( sound ) destroyElement( sound4 ) destroyElement( sound5 ) local sound3 = playSound3D("3.mp3", x,y,z) elseif (source == a44) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound ) destroyElement( sound5 ) local sound4 = playSound3D("4.mp3", x,y,z) elseif (source == a55) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) destroyElement( sound ) local sound5 = playSound3D("5.mp3", x,y,z) elseif (source == x) then guiSetVisible(sss, false) showCursor(false) end end ) Link to comment
αвυ-wαleed Posted February 14, 2014 Author Share Posted February 14, 2014 ذا كلير كفوووو بس افهمني شوي ابغى الزر a55 يقفل كل الاغاني والزر a11 a22 a33 a44 اذا ضغطتها تشتغل الشيلة وتقفل الباقي مثلن فتح 1 تقفل 2 3 4 Link to comment
The Killer Posted February 14, 2014 Share Posted February 14, 2014 (edited) GUIEditor_Image = {} sss = guiCreateWindow(408,100,459,608,"شيلات abu-waleed",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,439,115,"A.png",false,sss) x = guiCreateButton(9,146,42,38,"X",false,sss) guiSetFont(x,"default-bold-small") a11 = guiCreateButton(266,202,142,141,"شيلة ياعبد الغني",false,sss) guiSetFont(a11,"default-bold-small") a22 = guiCreateButton(50,202,142,141,"شيلة أبغى ارفع الصوت",false,sss) guiSetFont(a22,"default-bold-small") a33 = guiCreateButton(271,361,142,141,"الهلال و النصر",false,sss) guiSetFont(a33,"default-bold-small") a44 = guiCreateButton(54,361,142,141,"شيلة يارفيقي",false,sss) guiSetFont(a44,"default-bold-small") a55 = guiCreateButton(111,517,250,76,"ايقاف صوت الشيلة",false,sss) guiSetVisible ( sss, false ) local Marker = createMarker (-1491.3062744141, 762.76330566406, 6.9000, "cylinder", 1, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) setElementFrozen ( player, true ) setTimer (setElementFrozen, 500, 1, player, false) if ( hitPlayer == localPlayer ) then local _, _, Pz = getElementPosition(hitPlayer) local _, _, Mz = getElementPosition(Marker) if (Mz + 3 >= Pz) and (Pz + 3 >= Mz) then guiSetVisible ( sss ,true ) showCursor( true ) end end end) addEventHandler("onClientGUIClick",root, function () if ( source == a11 ) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) local sound = playSound3D("1.mp3", -1490.1, 762.89, 8.38) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) elseif (source == a22) then destroyElement( sound ) destroyElement( sound3 ) destroyElement( sound4 ) local sound2 = playSound3D("2.mp3", x,y,z) elseif (source == a33) then destroyElement( sound2 ) destroyElement( sound ) destroyElement( sound4 ) local sound3 = playSound3D("3.mp3", x,y,z) elseif (source == a44) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound ) local sound4 = playSound3D("4.mp3", x,y,z) elseif (source == a55) then destroyElement( sound ) destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) elseif (source == x) then guiSetVisible(sss, false) showCursor(false) end end ) Edited February 14, 2014 by Guest Link to comment
αвυ-wαleed Posted February 14, 2014 Author Share Posted February 14, 2014 ماضبط اضغط زر a11 يشتغل صح واضغط a55 ماتقفل واضغط a22 او a33 او a44 تشتغل شيلتين معى بعض Link to comment
The Killer Posted February 14, 2014 Share Posted February 14, 2014 انسخ الكود مره ثانيه Link to comment
αвυ-wαleed Posted February 14, 2014 Author Share Posted February 14, 2014 ماضبط اش السواة Link to comment
The Killer Posted February 14, 2014 Share Posted February 14, 2014 جرب ؟ GUIEditor_Image = {} sss = guiCreateWindow(408,100,459,608,"شيلات abu-waleed",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,439,115,"A.png",false,sss) x = guiCreateButton(9,146,42,38,"X",false,sss) guiSetFont(x,"default-bold-small") a11 = guiCreateButton(266,202,142,141,"شيلة ياعبد الغني",false,sss) guiSetFont(a11,"default-bold-small") a22 = guiCreateButton(50,202,142,141,"شيلة أبغى ارفع الصوت",false,sss) guiSetFont(a22,"default-bold-small") a33 = guiCreateButton(271,361,142,141,"الهلال و النصر",false,sss) guiSetFont(a33,"default-bold-small") a44 = guiCreateButton(54,361,142,141,"شيلة يارفيقي",false,sss) guiSetFont(a44,"default-bold-small") a55 = guiCreateButton(111,517,250,76,"ايقاف صوت الشيلة",false,sss) guiSetVisible ( sss, false ) local Marker = createMarker (-1491.3062744141, 762.76330566406, 6.9000, "cylinder", 1, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) setElementFrozen ( player, true ) setTimer (setElementFrozen, 500, 1, player, false) if ( hitPlayer == localPlayer ) then local _, _, Pz = getElementPosition(hitPlayer) local _, _, Mz = getElementPosition(Marker) if (Mz + 3 >= Pz) and (Pz + 3 >= Mz) then guiSetVisible ( sss ,true ) showCursor( true ) end end end) addEventHandler("onClientGUIClick",root, function () if isElement(sound) and isElement(sound2) and isElement(sound3) and isElement(sound4) then if ( source == a11 ) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) local sound = playSound3D("1.mp3", -1490.1, 762.89, 8.38) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) elseif (source == a22) then destroyElement( sound ) destroyElement( sound3 ) destroyElement( sound4 ) local sound2 = playSound3D("2.mp3", x,y,z) elseif (source == a33) then destroyElement( sound2 ) destroyElement( sound ) destroyElement( sound4 ) local sound3 = playSound3D("3.mp3", x,y,z) elseif (source == a44) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound ) local sound4 = playSound3D("4.mp3", x,y,z) elseif (source == a55) then destroyElement( sound ) destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) elseif (source == x) then guiSetVisible(sss, false) showCursor(false) end end end ) انسخ الكود من جديد عدلت شي بسيط Link to comment
αвυ-wαleed Posted February 14, 2014 Author Share Posted February 14, 2014 ما اشتغل مرة وحده Link to comment
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 يا اخوان ساعدونا Link to comment
abu5lf Posted February 15, 2014 Share Posted February 15, 2014 ابغى تعديل على الكود ابغى اذا ضغط على أي زر يشغل الاغنية تطفى الاغاني الباقية والزر a55 ابغاه يطفيها كلها GUIEditor_Image = {} sss = guiCreateWindow(408,100,459,608,"شيلات abu-waleed",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,439,115,"A.png",false,sss) x = guiCreateButton(9,146,42,38,"X",false,sss) guiSetFont(x,"default-bold-small") a11 = guiCreateButton(266,202,142,141,"شيلة ياعبد الغني",false,sss) guiSetFont(a11,"default-bold-small") a22 = guiCreateButton(50,202,142,141,"شيلة أبغى ارفع الصوت",false,sss) guiSetFont(a22,"default-bold-small") a33 = guiCreateButton(271,361,142,141,"الهلال و النصر",false,sss) guiSetFont(a33,"default-bold-small") a44 = guiCreateButton(54,361,142,141,"شيلة يارفيقي",false,sss) guiSetFont(a44,"default-bold-small") a55 = guiCreateButton(111,517,250,76,"ايقاف صوت الشيلة",false,sss) guiSetVisible ( sss, false ) local Marker = createMarker (-1491.3062744141, 762.76330566406, 6.9000, "cylinder", 1, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) setElementFrozen ( player, true ) setTimer (setElementFrozen, 500, 1, player, false) if ( hitPlayer == localPlayer ) then local _, _, Pz = getElementPosition(hitPlayer) local _, _, Mz = getElementPosition(Marker) if (Mz + 3 >= Pz) and (Pz + 3 >= Mz) then guiSetVisible ( sss ,true ) showCursor( true ) end end end) addEventHandler("onClientGUIClick",root, function () if ( source == a11 ) then if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("2.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == a33 ) then if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("3.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == a44 ) then if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("4.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == a55 ) then stopSound( 1.mp3,false ) stopSound( 2.mp3,false ) stopSound( 3.mp3,false ) stopSound( 4.mp3,false) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == x ) then guiSetVisible ( sss ,false ) showCursor( false ) 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