Jump to content

تعديل


Recommended Posts

Posted

ابغى تعديل على الكود ابغى اذا ضغط على أي زر يشغل الاغنية

تطفى الاغاني الباقية

والزر

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 
) 
  
  

Posted

جرب

ملاحظه عدل

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 
    ) 
Posted

ذا كلير كفوووو بس افهمني شوي

ابغى الزر

a55

يقفل كل الاغاني

والزر

a11

a22

a33

a44

اذا ضغطتها تشتغل الشيلة وتقفل الباقي

مثلن فتح 1

تقفل

2

3

4

Posted (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 by Guest
Posted

جرب ؟ :shock:

        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 
     ) 

انسخ الكود من جديد عدلت شي بسيط

Posted
ابغى تعديل على الكود ابغى اذا ضغط على أي زر يشغل الاغنية

تطفى الاغاني الباقية

والزر

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 
) 
  
  

عجبتني فكرة المود :lol:

لكن انت ليه حاط ازرة سو قريد لست اسهل

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...