-
Posts
397 -
Joined
-
Last visited
Everything posted by mahmod3
-
addEventHandler("onClientGUIClick",root, function () if source == btn7 then removeEventHandler ( "onClientRender",renderDisplay ) end end ) مااشتغل اوك نجحت الطريقة
-
مشكورين شباب تمت الاقاده dxDrawImage ( screenWidth/2 - 50, 0, 100, 100,'plus.png', angle, 0, -50) شباب اريد ان اعمل زر يغلق الصورة وزر يفتح الصورة
-
لا دول بيكبرون الصورة عرفتها 0 غيرتها نجحت معي
-
صح انا اريدها تروح يمين ويسار بس اقصد اني احركها تصير تحت في الشاشة موفوق
-
local screenWidth,screenHeight = guiGetScreenSize() function renderDisplay ( ) local seconds = getTickCount() / 1000 local angle = math.sin(seconds) * 80 local screenWidth = 1250 dxDrawImage ( screenWidth/2 - 50, 0, 100, 100,'plus.png', angle, 0, -50 ) end function HandleTheRendering ( ) addEventHandler("onClientRender", root, renderDisplay) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
-
local screenWidth = 1250 سويت متغير ل دا بس ماينزل تحت هادا ييحرك يمين ويسار فقط
-
addEventHandler("onClientResourceStart", resourceRoot, function() img = guiCreateStaticImage(457, 296, 567, 472, "PNGG.png", false) guiSetVisible(img,false) close = guiCreateButton(0, 0, 105, 36, "ايقاف", false,img) bacara = guiCreateButton(397, 43, 138, 31, "سورة البقرة", false, img) local font0_EmblemaOne = guiCreateFont("EmblemaOne.ttf", 10) guiSetFont(bacara, font0_EmblemaOne) guiSetProperty(bacara, "NormalTextColour", "FFFEFEFE") kahf = guiCreateButton(397, 126, 138, 31, "سورة الكهف", false, img) guiSetFont(kahf, font0_EmblemaOne) guiSetProperty(kahf, "NormalTextColour", "FF0ABF05") Eklas = guiCreateButton(35, 49, 138, 31, "سورة الاخلاص", false, img) guiSetFont(Eklas, font0_EmblemaOne) guiSetProperty(Eklas, "NormalTextColour", "FFB7A50B") flk = guiCreateButton(35, 126, 138, 31, "سورة الفلق", false, img) guiSetFont(flk, font0_EmblemaOne) guiSetProperty(flk, "NormalTextColour", "FF20A199") fatrha = guiCreateButton(230, 14, 94, 25, "سورة الفاتحه", false, img) guiSetFont(fatrha, font0_EmblemaOne) nas = guiCreateButton(35, 225, 138, 31, "سورة الناس", false, img) guiSetFont(nas, font0_EmblemaOne) guiSetProperty(nas, "NormalTextColour", "FF48417F") msd = guiCreateButton(35, 325, 138, 31, "سورة المسد", false, img) guiSetFont(msd, font0_EmblemaOne) guiSetProperty(msd, "NormalTextColour", "FFBF5D5D") nazeat = guiCreateButton(210, 370, 138, 31, "سورة النازعات", false, img) guiSetFont(nazeat, font0_EmblemaOne) guiSetProperty(nazeat, "NormalTextColour", "FFBF5D5D") nba = guiCreateButton(397, 233, 138, 31, "سورة النبأ", false, img) guiSetFont(nba, font0_EmblemaOne) guiSetProperty(nba, "NormalTextColour", "FFBA0909") tkatr = guiCreateButton(397, 325, 138, 31, "سورة التكاثر", false, img) guiSetFont(tkatr, font0_EmblemaOne) guiSetProperty(tkatr, "NormalTextColour", "FFBF5D5D") lable = guiCreateLabel(183, 157, 208, 175, "سور من القر أن الكريم طبعا\nهذه السور يمكنك سماعها والذي بجانبك \nايضالا يمكنه االسماع\nنتمنا لكم الاستمتاع في السيرفر \nوالسلام عليكم ورحمة الله", false, img) local font1_EmblemaOne = guiCreateFont("EmblemaOne.ttf", 13) guiSetFont(lable, font1_EmblemaOne) guiLabelSetColor(lable, 0, 0, 0) end ) function imgg() if guiGetVisible(img) then guiSetVisible(img,false) showCursor(false) else guiSetVisible(img,true) showCursor(true) end end bindKey("F2","down",imgg) addEventHandler("onClientGUIClick",root, function () if source == bacara then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/002.mp3",x,y,z) setSoundMaxDistance( fateha, 1000 ) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == fatrha then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/001.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == Eklas then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/112.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == kahf then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/018.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == flk then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/113.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == nas then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/114.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == nazeat then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/079.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == nba then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/078.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == tkatr then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/102.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == close then destroyElement(ob) stopSound(fateha) end end ) addEventHandler("onClientVehicleEnter",root, function () triggerServerEvent("speaker",localPlayer) end )
-
dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'mahmod.png', angle, 0, -120 ) اريد تحريكها ايش بغير ؟
-
السلام عليكم اريد اعمل صورة واخليها تدور يمين وبعدين ترجع يسار كان شي يتحرك يمين ويرجع يتحرك يسار
-
addEvent("speaker",true) addEventHandler("speaker",root, function speaker ( client, command ) local x, y, z = getElementPosition ( client ) local speaker = createObject ( 2229, x, y, z -1 ) if (getPedOccupiedVehicle(client)) then attachElements(speaker, getPedOccupiedVehicle(client), 0.3, -0.2, 1.1 ) end end ) addCommandHandler ( "spk", speaker ) يعني سويت متلك
-
addEventHandler("onClientVehicleEnter",root, function (cars) local car = getPedOccupiedVehicle ( cars ) if isElement ( fateha ) then attachElements ( fateha,car ); end end ) مانجحت
-
addEventHandler("onClientVehicleEnter",root function () if isElement ( fateha ) then attachElements ( fateha,source ); end end ) نفس الشي مايشتغل شكلكم مافهمتو طلبي اريد السبيكر يركب معي في السيارة والصوت يروح معي في السيارة متل مود الاغاني
-
?? addEventHandler("onClientVehicleEnter",root function () if isElement ( fateha ) then attachElements ( fateha,aMyVehicle ); end; end )
-
ماعرفت استخدم ال is Element
-
بعرف انا اريده بهاد الشكل + يعني ابي الاحداتيات تروح معي
-
السلام عليكم انا عملت مود سور واعملت كل شي عموما اريد لما اركب سيارة يروح معي الصوت يعني متل مود الاغاني addEventHandler("onClientResourceStart", resourceRoot, function() img = guiCreateStaticImage(457, 296, 567, 472, "PNGG.png", false) guiSetVisible(img,false) close = guiCreateButton(0, 0, 105, 36, "ايقاف", false,img) bacara = guiCreateButton(397, 43, 138, 31, "سورة البقرة", false, img) local font0_EmblemaOne = guiCreateFont("EmblemaOne.ttf", 10) guiSetFont(bacara, font0_EmblemaOne) guiSetProperty(bacara, "NormalTextColour", "FFFEFEFE") kahf = guiCreateButton(397, 126, 138, 31, "سورة الكهف", false, img) guiSetFont(kahf, font0_EmblemaOne) guiSetProperty(kahf, "NormalTextColour", "FF0ABF05") Eklas = guiCreateButton(35, 49, 138, 31, "سورة الاخلاص", false, img) guiSetFont(Eklas, font0_EmblemaOne) guiSetProperty(Eklas, "NormalTextColour", "FFB7A50B") flk = guiCreateButton(35, 126, 138, 31, "سورة الفلق", false, img) guiSetFont(flk, font0_EmblemaOne) guiSetProperty(flk, "NormalTextColour", "FF20A199") fatrha = guiCreateButton(230, 14, 94, 25, "سورة الفاتحه", false, img) guiSetFont(fatrha, font0_EmblemaOne) nas = guiCreateButton(35, 225, 138, 31, "سورة الناس", false, img) guiSetFont(nas, font0_EmblemaOne) guiSetProperty(nas, "NormalTextColour", "FF48417F") msd = guiCreateButton(35, 325, 138, 31, "سورة المسد", false, img) guiSetFont(msd, font0_EmblemaOne) guiSetProperty(msd, "NormalTextColour", "FFBF5D5D") nazeat = guiCreateButton(210, 370, 138, 31, "سورة النازعات", false, img) guiSetFont(nazeat, font0_EmblemaOne) guiSetProperty(nazeat, "NormalTextColour", "FFBF5D5D") nba = guiCreateButton(397, 233, 138, 31, "سورة النبأ", false, img) guiSetFont(nba, font0_EmblemaOne) guiSetProperty(nba, "NormalTextColour", "FFBA0909") tkatr = guiCreateButton(397, 325, 138, 31, "سورة التكاثر", false, img) guiSetFont(tkatr, font0_EmblemaOne) guiSetProperty(tkatr, "NormalTextColour", "FFBF5D5D") lable = guiCreateLabel(183, 157, 208, 175, "سور من القر أن الكريم طبعا\nهذه السور يمكنك سماعها والذي بجانبك \nايضالا يمكنه االسماع\nنتمنا لكم الاستمتاع في السيرفر \nوالسلام عليكم ورحمة الله", false, img) local font1_EmblemaOne = guiCreateFont("EmblemaOne.ttf", 13) guiSetFont(lable, font1_EmblemaOne) guiLabelSetColor(lable, 0, 0, 0) end ) function imgg() if guiGetVisible(img) then guiSetVisible(img,false) showCursor(false) else guiSetVisible(img,true) showCursor(true) end end bindKey("F2","down",imgg) addEventHandler("onClientGUIClick",root, function () if source == bacara then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/002.mp3",x,y,z) setSoundMaxDistance( fateha, 1000 ) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == fatrha then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/001.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == Eklas then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/112.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == kahf then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/018.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == flk then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/113.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == nas then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/114.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == nazeat then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/079.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == nba then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/078.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == tkatr then destroyElement(ob) stopSound(fateha) local x,y,z = getElementPosition(localPlayer) fateha = playSound3D("http://server12.mp3quran.net/maher/102.mp3",x,y,z) ob = createObject(2229,x,y+1,z-1) end end ) addEventHandler("onClientGUIClick",root, function () if source == close then destroyElement(ob) stopSound(fateha) end end )
-
السلام عليكم ورحمة الله وبركاته اريد اعمل صورة تدور حول نفسها ياريت الاكواد