αвυ-wαleed Posted February 15, 2014 Share Posted February 15, 2014 طيب سويت قريد لست لكن مدري اش الخطا 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
Mr.T9 Posted February 15, 2014 Share Posted February 15, 2014 جرب 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
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 كفوووو بس في حاجة خطا اسماء الشيلات ماهي ظاهرة يعني ماكأن فيه ولا شيلة Link to comment
Mr.T9 Posted February 15, 2014 Share Posted February 15, 2014 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
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 طلعت بس اضغط عليها بعدين تشغيل ما اشتغل الصوت Link to comment
Mr.T9 Posted February 15, 2014 Share Posted February 15, 2014 انا مدري وش احط صوت للثانية من نفس الكود مركب على صوت واحد وهو يارفيقي جربه ورد خبر Link to comment
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 يب اشتغل انا ابغى الكل يشتغل واذا شغلت أي شيلة تقفل الباقي الا الي مشغلها واذا ضغطت على ايقاف تقفل كل الشيلات Link to comment
Mr.T9 Posted February 15, 2014 Share Posted February 15, 2014 يب اشتغل انا ابغى الكل يشتغل واذا شغلت أي شيلة تقفل الباقي الا الي مشغلها واذا ضغطت على ايقاف تقفل كل الشيلات طيب جيب كل مسارات الشيلات اللي عندك واركبها لك بالكود Link to comment
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 1.mp3 ياعبد الغني 2.mp3ابغى ارفع الصوت 3.mp3 الهلال والنصر 4.mp3يارفيقي نفس الاحداثيات حقت يارفيقي local sound = playSound3D("4.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795) Link to comment
Mr.T9 Posted February 15, 2014 Share Posted February 15, 2014 جرب مو متاكد 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
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 حظي ابو كلب ما اشتغلت اللوحة Link to comment
Mr.T9 Posted February 15, 2014 Share Posted February 15, 2014 اكتب بـ الكونسل debugscript 3 وحط وش يطلعك هنا Link to comment
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 في اف 8 ولا في حقت المودات الي تحط فيه كودات التهكير Link to comment
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 debugscript: Your debug mode was set to 3 debugscript: Your debug mode is already that Link to comment
al-Kobra Posted February 15, 2014 Share Posted February 15, 2014 وين كود فتح النافذة ؟؟ Link to comment
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 اش الخطأ ؟؟؟؟ 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
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