Jump to content

تعديل


Recommended Posts

طيب سويت قريد لست

لكن مدري اش الخطا

GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
s = guiCreateWindow(302,239,705,295,"شيلات",false) 
GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) 
ss = guiCreateGridList(224,23,468,207,false,s) 
guiGridListSetSelectionMode(ss,2) 
  
guiGridListAddColumn(ss,"شيلات",0.2) 
  
for i = 1, 4 do 
    guiGridListAddRow(ss) 
end 
  
guiGridListSetItemText(ss,0,1,"أبغى ارفع الصوت") 
  
guiGridListSetItemText(ss,1,1,"الهلال والنصر") 
  
guiGridListSetItemText(ss,2,1,"يارفيقي") 
  
guiGridListSetItemText(ss,3,1,"ياعبد الغني") 
GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
  
  
  
  
  
  
          
addEventHandler("onClientGUIClick",root, 
    function () 
        local sel = guiGridListGetSelectedItem(s) 
        local text = guiGridListGetItemText(s,sel,1) 
        if ( source == GUIEditor_Button[2] ) then 
            if ( sel ~= -1 ) then 
          destroyElement( sound ) 
end 
if ( source == GUIEditor_Button[3] ) then 
            if ( sel ~= -1 ) then 
        local sound = playSound3D("sound",  -1490.0997314453, 762.89318847656, 8.3803997039795) 
  
            end 
        end 
    end 
) 

Link to comment

جرب

GUIEditor_Button = {} 
GUIEditor_Image = {} 
s = guiCreateWindow(302,239,705,295,"شيلات",false) 
GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) 
ss = guiCreateGridList(224,23,468,207,false,s) 
guiGridListSetSelectionMode(ss,2) 
guiGridListAddColumn(ss,"شيلات",0.2) 
for i = 1, 4 do 
    guiGridListAddRow(ss) 
end 
guiGridListSetItemText(ss,0,1,"أبغى ارفع الصوت") 
guiGridListSetItemText(ss,1,1,"الهلال والنصر") 
guiGridListSetItemText(ss,2,1,"يارفيقي") 
guiGridListSetItemText(ss,3,1,"ياعبد الغني") 
GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
addEventHandler( "onClientGUIClick", getRootElement(), 
function () 
if source == GUIEditor_Button[2]  then 
local selectedRow, selectedCol = guiGridListGetSelectedItem( ss ) 
local Name = guiGridListGetItemText( ss, selectedRow, selectedCol ) 
if Name == "يارفيقي" then 
local sound = playSound3D("sound",  -1490.0997314453, 762.89318847656, 8.3803997039795) 
elseif Name == "أبغى ارفع الصوت" then 
setSoundVolume(sound, 0.9) 
            end 
        end 
    end 
) 

Link to comment
GUIEditor_Button = {} 
GUIEditor_Image = {} 
s = guiCreateWindow(302,239,705,295,"شيلات",false) 
GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) 
ss = guiCreateGridList(224,23,468,207,false,s) 
guiGridListSetSelectionMode(ss,2) 
GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
local Namesound = guiGridListAddColumn(ss,"شيلات",0.2) 
Namesound = 
{ 
{"أبغى ارفع الصوت"}, 
{"الهلال والنصر"}, 
{"يارفيقي"}, 
{"ياعبد الغني"}, 
} 
if ( Namesound ) then 
for id,Namesound in ipairs(Namesound) do 
local row = guiGridListAddRow ( ss ) 
guiGridListSetItemText(ss, row, 1, tostring(Namesound[1]), false, false) 
end 
end  
addEventHandler( "onClientGUIClick", getRootElement(), 
function () 
if source == GUIEditor_Button[2]  then 
local selectedRow, selectedCol = guiGridListGetSelectedItem( ss ) 
local Name = guiGridListGetItemText( ss, selectedRow, selectedCol ) 
if Name == "يارفيقي" then 
local sound = playSound3D("sound",  -1490.0997314453, 762.89318847656, 8.3803997039795) 
elseif Name == "أبغى ارفع الصوت" then 
setSoundVolume(sound, 0.9) 
            end 
        end 
    end 
) 

Link to comment
يب اشتغل

انا ابغى الكل يشتغل واذا شغلت أي شيلة تقفل الباقي

الا الي مشغلها

واذا ضغطت على ايقاف تقفل كل الشيلات

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

واركبها لك بالكود

Link to comment

جرب

مو متاكد :)

GUIEditor_Button = {} 
GUIEditor_Image = {} 
s = guiCreateWindow(302,239,705,295,"شيلات",false) 
GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) 
ss = guiCreateGridList(224,23,468,207,false,s) 
guiGridListSetSelectionMode(ss,2) 
GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
local Namesound = guiGridListAddColumn(ss,"شيلات",0.2) 
Namesound = 
{ 
{"أبغى ارفع الصوت"}, 
{"الهلال والنصر"}, 
{"يارفيقي"}, 
{"ياعبد الغني"}, 
} 
if ( Namesound ) then 
for id,Namesound in ipairs(Namesound) do 
local row = guiGridListAddRow ( ss ) 
guiGridListSetItemText(ss, row, 1, tostring(Namesound[1]), false, false) 
end 
end 
addEventHandler( "onClientGUIClick", getRootElement(), 
function () 
if source == GUIEditor_Button[2]  then 
local selectedRow, selectedCol = guiGridListGetSelectedItem( ss ) 
local Name = guiGridListGetItemText( ss, selectedRow, selectedCol ) 
elseif Name == "يارفيقي" then 
local sound1 = playSound3D("4.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,true) 
local sound2 = playSound3D("3.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
local sound3 = playSound3D("1.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
elseif Name == "الهلال والنصر" then 
local sound2 = playSound3D("3.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,true) 
local sound1 = playSound3D("4.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
local sound3 = playSound3D("1.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
elseif Name == "ياعبد الغني" then 
local sound3 = playSound3D("1.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,true) 
local sound3 = playSound3D("1.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
local sound2 = playSound3D("3.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
elseif Name == "أبغى ارفع الصوت" then 
setSoundVolume(sound, 0.9) 
            end 
        end 
    end 
) 

Link to comment

اش الخطأ ؟؟؟؟

  
GUIEditor_Button = {} 
  
GUIEditor_Image = {} 
  
s = guiCreateWindow(302,239,705,295,"شيلات",false) 
  
GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) 
  
ss = guiCreateGridList(224,23,468,207,false,s) 
  
guiGridListSetSelectionMode(ss,2) 
  
GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) 
  
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
  
GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) 
  
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
  
local Namesound = guiGridListAddColumn(ss,"شيلات",0.2) 
  
Namesound = 
  
{ 
  
{"أبغى ارفع الصوت"}, 
  
{"الهلال والنصر"}, 
  
{"يارفيقي"}, 
  
{"ياعبد الغني"}, 
  
} 
if ( Namesound ) then 
  
for id,Namesound in ipairs(Namesound) do 
  
local row = guiGridListAddRow ( ss ) 
  
guiGridListSetItemText(ss, row, 1, tostring(Namesound[1]), false, false) 
  
end 
  
end 
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", getRootElement(), 
  
function () 
  
if source == GUIEditor_Button[2]  then 
  
local selectedRow, selectedCol = guiGridListGetSelectedItem( ss ) 
  
local Name = guiGridListGetItemText( ss, selectedRow, selectedCol ) 
  
elseif Name == "يارفيقي" then 
  
local sound1 = playSound3D("4.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,true) 
  
local sound2 = playSound3D("3.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
  
local sound3 = playSound3D("1.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
  
elseif Name == "الهلال والنصر" then 
  
local sound2 = playSound3D("3.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,true) 
  
local sound1 = playSound3D("4.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
  
local sound3 = playSound3D("1.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
  
elseif Name == "ياعبد الغني" then 
  
local sound3 = playSound3D("1.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,true) 
  
local sound3 = playSound3D("1.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
  
local sound2 = playSound3D("3.mp3",  -1490.0997314453, 762.89318847656, 8.3803997039795,false) 
  
elseif Name == "أبغى ارفع الصوت" then 
  
setSoundVolume(sound, 0.9) 
  
            end 
  
        end 
  
    end 
  
) 

Link to comment

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...