-
Posts
1,304 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Ahmed Ly
-
تفضل : https://pastebin.mtasa.com/860457778 انتظار الرد من ccw
-
شرح جميل
-
استخدم isElementMoving https://wiki.multitheftauto.com/wiki/IsElementMoving playSound
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=13541 DONE
-
تنسيق رائع وجميل بتوفيق
-
ماشاء الله ابداع ننتظر جديدك وبالتوفيق
-
function stop (player,cmd,img) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup("Console")) then if cmd == "stoprecource" then local name = getResourceFromName(img) if name then stopResource(name) outputChatBox("تم ايقاف المود"..img.."",player,0,255,0,true) else outputChatBox("لا يوجد مود باهدا اسم"..img.."",player,0,255,0,true) end end else outputChatBox("هدا امر خاص بكونسل فقط",player,0,255,0,true) end end addCommandHandler ( "stoprecource", stop )
-
http://bpb-team.ru/lex128/tactics-wiki/
-
نايس استمر يبطل
-
كود امقاوي غلط كله المهم جرب هذا وسويتلك فيه فواصل فراغات في القريد ليست local screenW, screenH = guiGetScreenSize() local PlacesTable = { {'=][ أماكن التوجيهات ][=', } , {'', } , {'القفزة الخنفشارية', 1550.0161132813,-1366.4044189453,326.2109375,} , {'مركز الشرطة',1543.1385498047,-1677.0050048828,13.555870056152,} , {'التل الشاهق',-2393.25415, -2202.31543, 33.28906,} , {'مقر الجيش',146.66674804688, 1720, 17.640625,} , {'السد الكبير',-887.02734375, 2000.9217529297, 60.654315948486,} , {'مننطقة البندقية',723.33862, -1487.2187523047, 1.93434,} , {'الجسر المعلق',-2696.1865234375, 1232.7795410156, 55.621524810791,} , {'الحفرة الكبيرة',369.61615, 991.90735, 30.41144,} , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مكتب المطار',1678.33533, 1447.70569, 10.77515,} , {'المطار الاول',1717.6470947266, -2494.1176757813, 13.39999961853,} , {'لمطار الثاني',1411.7646484375, 1482.3529052734, 10.89999961853,} , {'المطار الثالث',-1223.4300537109, -185.74758911133, 14.39999961853,} , {'برج الفيصليه',1842.3481445313,858.84588623047 ,9.882495880127,} , {'الفنادق',-1739.0821533203, 940.56231689453, 24.7421875,} , {'حارة سي جي',2491.12109375, -1667.4482421875, 13.34375,} , {'ساحه التفجير',-2051.4926757813, -173.29304504395, 35.3203125,}, {'', } , {'=][ آماكن التطعيس والتفجير ][=', } , {'', } , {'ساحة التفجير',-2051.4926757813, -173.29304504395, 35.3203125,} , {'الطعس',-2600,-2694.1176757813,10.188545227051,}, {'', } , {'= ][آماكن الهجولة ][=', } , {'', } , {'الشارع الطويل',-3072.5554199219,-3000.345703125,5,} , {'الدائري',1753.3974609375, 776.7255859375, 10.8203125,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'النخيل',2068.1389160156, 1008.2157592773, 10.671875,} , {'المطار الاول',1717.6470947266, -2494.1176757813, 13.5546875,} , {'المطار الثاني',-1277.7352294922, 36.338359832764, 14.1484375,} , {'المطار الثالث',1321.2225341797, 1494.2713623047, 10.8203125,} , {'الفروسية',2878.1115722656, -1110.029296875, 10.882762908936,}, {'', } , {'=][ آماكن شراء الاسلحة ][=', } , {'', } , {'المتجر الاول',-2248.24194 ,127.06280, 35.17188,} , {'المتجر الثاني',2393.88623, -1977.91467, 13.54688,} , {'المتجر الثالث',1364.33691, -1285.49390, 13.54688,} , {'المتجر الرابع',801.23914 ,1686.75000, 5.28125,} , {'المتجر الخامس',2173.22534, 965.41931, 10.82031,}, {'', } , {'= ][الآماكن الحصرية بالسيرفر =][', } , {'', } , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'بنك وناسة ( سحب وايداع وتحويل )',593.50756835938,-1242.6812744141,18.018035888672,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مكتب شراء البيوت',3229,-1112,19,} , {'اماكن صنع البيوت',3459,-1072,19,} , {'البداية',-4249.74316 ,-3033.38623 ,41.31471,} , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {' سرقة البنك',344.10763549805,2503.8784179688, 16.484375,} } -- {You are at (154.66577, 1094.27124, 14.67220) Places = guiCreateGridList(0.34, 0.22, 0.28, 0.43, true) guiGridListAddColumn(Places, "المكان", 0.9) guiSetVisible(Places, false) for i,v in ipairs(PlacesTable) do local rw = guiGridListAddRow(Places) guiGridListSetItemText(Places,rw,1,""..v[1],false,true) guiGridListSetItemData(Places,rw,1,{v[2],v[3],v[4]}) guiGridListSetItemColor(Places,v,1,192,139,56); end function dxDrawTransport() dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.7487, screenW * 0.6289, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.7487, screenW * 0.6289, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.2122, screenW * 0.2953, screenH * 0.5365, tocolor(0, 255, 0, 200), false) dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.2122, screenW * 0.6289, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.2122, screenW * 0.6289, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.1771, screenW * 0.2953, screenH * 0.0352, tocolor(255, 150, 0, 200), false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) - 1, (screenW * 0.6289) - 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) - 1, (screenW * 0.6289) + 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) + 1, (screenW * 0.6289) - 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) + 1, (screenW * 0.6289) + 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", screenW * 0.3328, screenH * 0.1706, screenW * 0.6289, screenH * 0.2070, tocolor(255, 255, 255, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.3398) - 1, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3398) - 1, screenH * 0.7214, screenW * 0.4602, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, screenH * 0.7214, screenW * 0.4602, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.5008) - 1, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5008) - 1, screenH * 0.7214, screenW * 0.6211, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, screenH * 0.7214, screenW * 0.6211, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) end function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false 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 Effects() if isEventHandlerAdded("onClientRender", root, dxDrawTransport) then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) end end end bindKey("F6", "down", function () if not isEventHandlerAdded("onClientRender", root, dxDrawTransport) and not isCursorShowing() then addEventHandler("onClientRender", root, dxDrawTransport) addEventHandler("onClientRender", root, Effects) guiSetVisible(Places, true) showCursor(true) elseif isEventHandlerAdded("onClientRender", root, dxDrawTransport) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) end end ) addEventHandler("onClientClick", root, function (_, State) if isEventHandlerAdded("onClientRender", root, dxDrawTransport) and State == "up" then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then local Text = guiGridListGetItemText(Places, guiGridListGetSelectedItem(Places), 1) if Text ~= "" then local DT = guiGridListGetItemData(Places, guiGridListGetSelectedItem(Places), 1) if type(DT) == "table" then if isPedInVehicle(localPlayer) then setElementPosition(getPedOccupiedVehicle(localPlayer), DT[1], DT[2], DT[3]) else setElementPosition(localPlayer, DT[1], DT[2], DT[3]) end end else outputChatBox("اختار مكان اولاً", 255, 0, 0, true) end end end end ) عندك خطاء في سطر 75 خليه هكي guiGridListSetItemColor(Places,rw,1,192,139,56)
-
سبحان الله,
-
guiGridListClear getElementsByType guiGridListAddRow guiGridListSetItemText guiGridListGetSelectedItem guiGridListGetItemText getPlayerFromName "onClientGUIClick" triggerServerEvent addEvent addEventHandler getPlayerName executeCommandHandler + ضروي يكون مركب مود check binds
-
test = createTeam("Test",0,255,0,255) marker1 = createMarker(-675.72711,885.84503,10.49343,"cylinder",1.5,255,255,0,255) addEventHandler("onMarkerHit",marker1, function (player) if getPlayerTeam(player) and getTeamName( getPlayerTeam( player ) ) == "Test" then setPlayerTeam(player,nil) outputChatBox("---",player,0,255,0) else outputChatBox("----",player,0,255,0) setPlayerTeam(player,test) end end )
-
"onMarkerHit" setPlayerTeam "onMarkerLeave"
-
استمر و بالتوفيق لك في المودات الجايه
-
مود رائع استمر
-
مثلا نبيه للتاقات لو ندير تاق بيطلع الكلام مرتين قصدك مود تاج متاع التكتيك ؟
-
كودك غلط...
-
msg = "رجاء غير اسمك يحب ان يكون اسمك اكبر من 4 احرف " function join ( ) local joinedPlayerName = getPlayerName (source) if ( string.len(joinedPlayerName) <= 4 ) then kickPlayer(source,msg) end end addEventHandler ( "onPlayerJoin",root,join) او جرب هدا msg = "رجاء غير اسمك يحب ان يكون اسمك اكبر من 4 احرف " addEventHandler("onPlayerConnect", root, function(Name) if string.len(Name) <=4 then cancelEvent(true, msg) end end)
-
مافهمت وش تقصد فيها بالضبط هدا امر تكتب في اف8 quit يطلعك من لعبه executeCommandHandler("quit")
-
ارجو المساعده::مطلوب فنكشن لما تضغط علا زر يخلي دم السياره
Ahmed Ly replied to iQsaMi~Mg.HaMoTa_oK!'s topic in البرمجة
كلنت addEventHandler ( "onClientGUIClick",root, function ( ) if source == button then triggerServerEvent("Event",localPlayer,"يجب ان تكون في السياره","ليس لديك سياره") end end ) سيرفر addEvent("Event",true) addEventHandler("Event",root, function (text1,text2) if not isPedInVehicle(source) then outputChatBox(text1,source,0,255,0) return end local Vehicle = getPedOccupiedVehicle(source) if Vehicle then setVehicleDamageProof( Vehicle, true) else outputChatBox(text2,source,0,255,0) end end )