-
Posts
1,582 -
Joined
-
Last visited
-
Days Won
9
Everything posted by Abu-Solo
-
ترا اقدر افيدك هنا ماله داعي فيس او سكايب
-
اقرأ الموضوع
-
ما عندي سكايب
-
استخدم function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end الكود كامل يصير كذا function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function CarSystem() dxDrawRectangle(456, 124, 439, 530, tocolor(17, 16, 16, 165), false) dxDrawText("", 585, 135, 585, 135, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("Vechicle System | Gta-SPR", 457, 128, 893, 150, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawRectangle(464, 164, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(609, 164, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(755, 164, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawText("Spawn Vechicle", 464, 163, 592, 198, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Destory Vehicle", 609, 164, 737, 199, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Warp (5.000$)", 755, 163, 885, 199, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawRectangle(462, 476, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(609, 476, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(755, 476, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(462, 521, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(609, 521, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(755, 521, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(462, 566, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(609, 566, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(755, 566, 131, 35, tocolor(255, 255, 255, 88), true) dxDrawRectangle(462, 611, 423, 22, tocolor(255, 255, 255, 88), true) dxDrawText("Sell", 463, 475, 591, 509, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Lock / Unlock", 609, 476, 737, 510, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("~Soon~", 755, 476, 883, 510, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Light / Unlight", 755, 521, 883, 555, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Spec.", 609, 521, 737, 555, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Mark / Unmark", 463, 521, 591, 555, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Repair", 462, 566, 590, 600, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Eject Passenger", 609, 566, 738, 582, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "top", false, false, true, false, false) dxDrawText("Flip", 758, 566, 886, 600, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Close Window", 462, 610, 885, 633, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("(5.000$)", 611, 585, 736, 600, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center", false, false, true, false, false) dxDrawLine(890, 157, 462, 157, tocolor(255, 255, 255, 255), 1, true) end removeEventHandler("onClientRender",root,CarSystem) ----- المثال هذا بيقفلك اللوحة من Close Window addEventHandler("onClientClick",root, function ( button , state ) if( button == "left" and state == "up" ) then if ( sShowing == true ) then if ( isMouseInPosition (462, 610, 885, 633) ) then ---- هنا حطيت الاحداثيات حق الدي اكس او الزرار حق الدي اكس removeEventHandler("onClientRender",root,CarSystem) end end end end ) -----كود فتح اللوحة sShowing = false bindKey("f4","down", function ( ) if ( sShowing == true ) then removeEventHandler("onClientRender",root,CarSystem) showCursor ( false ) else addEventHandler("onClientRender",root,CarSystem) showCursor ( true ) end sShowing = not sShowing end ) هذا هو الكود اللي زي onClientGUIClick ولكن هذا خاص فـ الدي اكس addEventHandler("onClientClick",root, function ( button , state ) if( button == "left" and state == "up" ) then if ( sShowing == true ) then if ( isMouseInPosition (220, 210, 330, 146) ) then ----- الاحداثيات هذي مكان ال dxText او dxImage ----- Your code end end end end )
-
اطرح طلبك فـ القسم الانجليزي ترا هناك فيه خبرات اكثر من هنا لو تبي الرد السريع
-
حياك الله
-
سهل اذا جيت تصمم تحط اسم اللوحة نفس اسم اللوحة القديم واسم الازرار نفس اسم الازرار القديمه
-
هلا والله بـ المودات الخورافيه كفو والله ي المبرمجين
-
تبي تعرف كيف سويت الكود يعني؟ عن طريق الويكي
-
هذا مثال بسيط MKAN = { ------ نسوي جدول فيه الاحداثيات واسم المكان {"البداية -1", -3482.1469726563, -3007.9379882813, 13.583124160767}, {"آلدآئري -2",1797.1727294922, 842.46630859375, 10.6328125}, {"آلنخيل -3",2068.7211914063, 907.06707763672, 8.1701345443726}, {"آلطعوس -4",-2617.193359375, -2547.3530273438, 3}, {"آلغروب -5",662.55310058594, 1936.7479248047, 5.5052728652954}, {"الشارع الطويل -6",-2876.2788085938, -3004.4331054688, 12.39999961853}, {"البنك -7",596.37750244141, -1241.4223632813, 18.39999961853}, {"المطار الاول -8",1717.6470947266, -2494.1176757813, 13.39999961853}, {"المطار الثاني -9",-1223.4300537109, -185.74758911133, 14.39999961853}, {"المطار الثالث -10",1411.7646484375, 1482.3529052734, 10.89999961853}, } for i,mk in ipairs(MKAN) do local row = guiGridListAddRow(Warpgrid) ---- غير warpgrid حطها اسم القريد لست حقتك guiGridListSetItemText(Warpgrid,row,1,mk[1],false,false) guiGridListSetItemData(Warpgrid,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(Warpgrid,row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler("onClientGUIDoubleClick",Warpgrid, function () local sel = guiGridListGetSelectedItem(Warpgrid) ----- نفس الشئ غير هذي لـ أسم اللقريد لست حقتك if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(Warpgrid,sel,1)) fadeCamera ( false ) setTimer ( fadeCamera, 1500, 1, true ) setTimer ( setElementPosition, 1200, 1, localPlayer, x, y, z ) end end ,false)
-
تأكد من تغيير اسم الليبل بـ اسم الليبل حقك ^^
-
نفس الطريقة اللي انا سويتها ... بس يالله يالله تفهم شويتين getElementData + setElementData اذا فهمت ذول راح تسوي المود شوف الكلام اللي قلته فوق يمكن تستفيد ,, وترا يمديك تستفيد من الكود اللي حطيته لك #
-
طيب الكود شغال معك ولالا؟ كيف تعرف setElementData وما تعرف getElementData setElementData = وظيفة لـ تخزين بيانات علي مفتاح معــين وهذا رابط الداتا كلها https://wiki.multitheftauto.com/wiki/Element getElementData = هذي تجيب البيانات اللي انت حطيتها هذا الويكي حقه . https://wiki.multitheftauto.com/wiki/GetElementData
-
ماتعرف setElementData + getElementData?
-
+1 عدد المساهمات : 0 تاريخ التسجيل : 02/08/2009 2009???
-
تركيب لوحة open game panel الي يبي اركب له لوحة ب0 ريال يعني مجانا
Abu-Solo replied to MR.SAMSUNG's topic in الاستضافات
من وين تجيكم الخوادم ذي ... أهب
