Jump to content

aL.Kfo

Members
  • Posts

    756
  • Joined

  • Last visited

Everything posted by aL.Kfo

  1. اهاا كويس جاري التجربه
  2. باكككك لا سويت هيكك markers = { {2472.0881347656,-1688.6563720703,13.5078125}, {2228.4409179688,-1167.3218994141,25.747329711914}, {1719.2711181641,-1607.2225341797,13.546875}, {1719.2711181641,-1607.2225341797,13.546875}, {1719.2711181641,-1607.2225341797,13.546875}, {1719.2711181641,-1607.2225341797,13.546875}, {1719.2711181641,-1607.2225341797,13.546875}, {1719.2711181641,-1607.2225341797,13.546875}, } addEventHandler('onResourceStart',resourceRoot,function() for k,v in ipairs(markers) do createMarker(v[1],v[2],v[3],'cylinder',3,255,255,175,170) end end ) local vehicles = {} addEvent('CreVehicePv',true) addEventHandler('CreVehicePv', root , function(id) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(id, x + 2, y, z) warpPedIntoVehicle(source, vehicles[source]) end ) addEventHandler('onPlayerQuit', root,function() if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end ) addEventHandler('onMarkerHit',resourceRoot,function(hitPlayer) if getElementType(hitPlayer) == 'player' then triggerClientEvent ('showGUIpv',root) end end ) لا اضفت اكثر من 3 احداث الكود يخرب لزم بس 3 انا ابي كل م طقت براسي حطيت سطر احداث زياده بس ذا م يقبل الا 3 وش الحل
  3. ضبط و زي العسل ي عسل الكيبورد يعجز عن التعبير عن مجخودك هه تممت الافاده برب اشوف شش الفرق بين الاي عدلت انت و الاي عدلت عشان نفهم بعدين
  4. سويت هيككك صار الماركرات تطلع بس لا خشيت م تطلع لوحه السياارت markers = { {2508.953125,-1672.2054443359,13.381790161133}, {2497.9853515625,-1672.5334472656,13.34220790863}, {2495.8220214844,-1682.44921875,13.347380638123} } addEventHandler('onResourceStart',resourceRoot,function() for k,v in ipairs(markers) do marker = createMarker(v[1],v[2],v[3],'cylinder',3,255,255,175,170) end end ) local vehicles = {} function spawnVehp(id) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(id, x + 2, y, z) warpPedIntoVehicle(source, vehicles[source]) end addEvent("CreVehicePv",true) addEventHandler("CreVehicePv", root, spawnVehp) addEventHandler("onPlayerQuit", root,function() if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end ) function showGUIpv(hitPlayer) if getElementType(hitPlayer) == "player" then triggerClientEvent ("showGUIpv",root) end end addEventHandler("onMarkerHit",markerpv,showGUIpv) وقلت خل اجرب قبل اطرح المشكله سويت هيكك حطيت في المستند كودك markers = { {x,y,z}, {x,y,z}, {x,y,z} } addEventHandler('onResourceStart',resourceRoot,function() for k,v in ipairs(markers) do marker = createMarker(v[1],v[2],v[3],'cylinder',3,255,255,175,170) end end ) نفس الشي تطلع ماركرات بدون لوحه
  5. خلاصصص تمت الافاده لا هنت ي بعدي ع التفاعل بس والله غريبه منتدى MTA الرسمي و مافيه نشاط
  6. م فهمتك مره بس قصدكك اسوي هيكك local markerpv = createMarker1( 1721.6893310547,-1607.6824951172,13.546875, "cylinder", 2, 0, 0, 255, 255 ) local markerpv = createMarker2( 1721.6893310547,-1607.6824951172,13.546875, "cylinder", 2, 0, 0, 255, 255 ) local markerpv = createMarker3( 1721.6893310547,-1607.6824951172,13.546875, "cylinder", 2, 0, 0, 255, 255 ) local markerpv = createMarker4( 1721.6893310547,-1607.6824951172,13.546875, "cylinder", 2, 0, 0, 255, 255 ) طيب لو احذف الاي فوق و احط بداله ذي و اعدل الاحداث و الخ يضبط GUIEditor_Marker[1] = createMarker( 1721.4497070313,-1606.8637695313,13.546875, 'cylinder', 1.5, 4, 247, 250, 255 ) GUIEditor_Marker[2] = createMarker( 3181, 1070.4000244141, 32.799999237061, 'cylinder', 1.5, 4, 247, 250, 255 ) GUIEditor_Marker[3] = createMarker( 3175.1999511719, 1070.4000244141, 32.799999237061, 'cylinder', 1.5, 4, 247, 250, 255 ) GUIEditor_Marker[4] = createMarker( 3169.1999511719, 1070.5999755859, 32.799999237061, 'cylinder', 1.5, 4, 247, 250, 255 )
  7. طيب حلو حلو بس فيه طريقه اضيف 5 ماركرات سيارات بدون م يكون فيه تواصل مع الماركرات الاي قبل لين لو حطيت 5 ماركرات ب السيرفر و رحت ل اي ماركر و نزلت سياره تنزل لي 5 لو حطيت ماركر واحد تنزل لي سياره وحده صراحه فكرت احط كل كود في مجلد مضغوط لحاله بس كثيرر
  8. لا هنت ي بعد حيي ضبط بس استفسار بسيط هل اقدر اغير اتجاه السياره لا نزلها لاعب من الماركر يعني اول ما تنزل اخلي الوجهيه من الحهه الاي ابي و اقدر اضيف مثلا 5 ماركرات احط فوق 5 احداث بس المشكله لا رحت ل ماركر و نزلت سياره تنزل لي 5 ع حسب عدد الماركرات
  9. مرحبا شباب عندي كود ماركر بس مشكلته انةةة لقروب مخصص لزم تكتب اسم القروب عشان يفتح لهم لسته السيارات ابيه يكون للكل الاكواد markerpv = createMarker( 1566.9652099609, -1610.640625, 12.3828125, "cylinder", 2, 0, 0, 255, 255 ) local vehicles = {} function spawnVehp(id) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(id, x + 2, y, z) warpPedIntoVehicle(source, vehicles[source]) end addEvent("CreVehicePv",true) addEventHandler("CreVehicePv", root, spawnVehp) addEventHandler("onPlayerQuit", root, function() if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end) function showGUIpv(hitPlayer) if hitPlayer and getElementType(hitPlayer) == "player" then if ( getPlayerTeam ( hitPlayer ) == getTeamFromName ( "11111" ) ) then triggerClientEvent (hitPlayer,"showGUIpv",getRootElement(),hitPlayer) else warnText("vehicles for 11111 only!",hitPlayer) end end end addEventHandler("onMarkerHit",markerpv,showGUIpv) اسم القروب 11111
  10. م ضبط ي ليت تشوف لنا حل للمعلوميه انا شايل السلاح للاي اول م يسجل لين لو طلع و دخل الاسلحه ترجع له من جديد
  11. جرب مو لزم يتاكد لك لا م اشتغل اطرح الرد ب المشكله و يفيدك
  12. الواحد صار يحلف مثل سلام عليكم الكود واضح انه ل مانستر حتى مكتوب في الكود Manstermarker لو ودك تكذب اكذب بس لا تحلف
  13. ذا بست لا هنت بس دخلت و سويت الكود و ركبته هههه هو ضبط بس صار لا شغلت صار مود عكس الاي ابي يطلع نجوم الاعبين كل لاعب و كم نجمه عليه مثل هيكك [~>اسم الاعب<~] has a wanted level of 6 stars! [ROSS]|[LR] has a wanted level of 6 stars! Medo has a wanted level of 1 stars! gdsf has a wanted level of 1 stars!
  14. حسآفه على ردي الي فوق ايم سوري م انتبهت جاري التطبيق و بششوف
  15. لا هنت ياليت فنكشات الادمنيه + فنكشات الاي عليه نجوم ما يقدر يخش بوليس
  16. صحيح زحف شكلي مضيع لين فيه 4 ملفات مطعم و كلها نفس الاسم بس فرق 1 3 5 بشوف الشغال و راح يضبط سوال الحين سويت اسل و حطيت في اي بي مساعد محترف ابي تكون لكل عضويه خضائص انا احددها تسسيف
  17. يعطيكم العافيه يشباب طيب تعرفون وش حل مشكله المطعم كاتبها فووق
  18. مرحبا فيه واحد قروشه كل شوي يحول السيرفر ريسس وش الحل واحد قال لي سكر مود من اف 8 عطاني اسمه قفلته بس مدري هل اكيد تقفلت او لا و ابي اعرف الحين مثلا اضفت اسم مود لقروب ادمن ابي احذف الاسم كيف مره حددت على الاسم و ضغطت دليت قروب انحذف قروب ادمن كامل وكذاالك مود المطاعم الاي اسمه mabako-services لا شغلته على السيرفر المجاني زي العسل بس لا ركبته ع الاستضافه يركب بس ما يشتغل وكذالك محمل من الكومند مود السياره ترجع مكانها بعد الانفجار المهم في السيرفر المجاني ترجع ولا ركبته في الاستضافه تحتفي ما ترجع وياليت كود الاي عليه نجوم ما يقدر يخش شرطي يطلع له بالشات لا يمكنك الانضمام لشرطه او الفنكشات مع توضيح بس و اي مشكله راح اضيفها ع الموضوع ذا ياليت الرد ع الموضوع ذا ب الذات مستر سعد viewtopic.php?f=160&t=65675
  19. كلم الاجانب يقفلون المنتدى اجل امزح امزح المود اطلب شرح كيف تسوي ار بي جي طلقه وحده خلاص ذا لانشر بس بدال م يكون رشاش يكون ار بي جي
  20. كلنت local x, y = guiGetScreenSize() rRoot = getResourceRootElement(getThisResource()) Music = "Other/Intro.mp3" Anims = {"DAN_UP_A", "dnce_M_b", "DAN_Left_A", "DAN_Down_A", "DAN_Loop_A", "dance_loop"} num = 0 local TeamNameee = "" local Team = "" local findskin = nil local Text = "" local mn = nil Color = {255, 255, 255} local NewTeam = 0 local ID, skin = nil, nil, nil TeamName = {"Grove", "Aztecas", "Police", "Ballas", "No Team", "Medic"} local WaeponID = {5, 22, 3, 1, 32, 41, 43} allPlayer = 0 local Weapon = 0 local NameWeap = "Fist" GameType = {} ColorGame = {0, 255, 255} GameNameType = "" Info = {} SkinSelectMusic = nil local foundTeam = 0 local findskin = 0 typeGame = "gang" local foundInTeam = "" local foundInall = "" Ped = {} skin = { Grove = {105, 106, 107}, Aztecas = {115, 116, 117}, Police = {283, 284, 285}, Ballas = {102, 103, 104}, ["No Team"] = {28, 34, 123, 230, 7, 15, 16, 21, 19, 22, 23, 24, 26, 28, 29, 30, 32, 33, 34, 37, 45, 46, 59, 72, 137, 189, 200, 217, 212, 240, 241, 247, 248, 261}, Medic = {274, 275, 276}, } AllTeamName = { Grove = {2494.96948, -1684.03101, 14.3313, 2494.98486, -1685.02856, 14.26363, 2495.38843, -1688.54297, 13.87171}, Aztecas = {1764.75586, -1928.03674, 15.2383, 1763.80432, -1928.0498, 14.93086, 1761.0708, -1928.08801, 13.57734}, Police = {1568.73779, -1695.54541, 7.0456, 1568.71582, -1694.55835, 6.8869, 1568.64075, -1691.68494, 5.89063}, Ballas = {2217.03027, -1167.91956, 27.0701, 2217.0166, -1168.89661, 26.85767, 2216.97534, -1171.77625, 25.72656}, ["No Team"] = {901.33551, -1208.65796, 18.4756, 901.27332, -1207.69299, 18.22063, 901.05676, -1204.8208, 16.98322}, Medic = {2022.72839, -1426.36877, 18.3914, 2023.34521, -1425.61548, 18.16297, 2025.20178, -1423.47644, 16.99219}, } Rot = {357.4391784668, 271.10339355469, 179.70733642578, 0, 179.01052856445, 132.08488464355} CamGameType = { {2454.49487, -1654.69812, 26.19402, 2541.42432, -1686.7251, -11.45641} } function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, alignX, alignY) bx, by, color, scale, font = bx or ax, by or ay, color or tocolor(255,255,255,255), scale or 1, font or "default" if alignX then if alignX == "center" then ax = ax + (bx - ax - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font))/2 elseif alignX == "right" then ax = bx - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) end end if alignY then if alignY == "center" then ay = ay + (by - ay - dxGetFontHeight(scale, font))/2 elseif alignY == "bottom" then ay = by - dxGetFontHeight(scale, font) end end local alpha = string.format("%08X", color):sub(1,2) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(getColorFromString("#"..col..alpha)) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font,"left", "top", false, false, true, false, false) ax = ax + w color = tocolor(getColorFromString("#"..col..alpha)) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) dxDrawText(cap, ax, ay, ax + dxGetTextWidth(cap, scale, font), by, color, scale, font,"left", "top", false, false, true, false, false) end end local function getTeam(team) return getTeamFromName(team) end local function count(team) return countPlayersInTeam(getTeamFromName(team)) end function onStop() resetSkyGradient() showChat(true) showPlayerHudComponent("all", true) end addEventHandler("onClientResourceStop", resourceRoot, onStop) function foundPos(nummm) local foundPo = AllTeamName[TeamName[NewTeam]][tonumber(nummm)] return foundPo end function showforallteam() fadeCamera( true ) showChat(false) SpawnGameType() --[[ foundInTeam = "There are Players" foundInall = "all Players" GameType = {"Gang Wars"} Info = {"Wlecom To Gang Wars","To Spawn press [Enter]"} GameNameType = "Gang Wars" mn = nil bindKey("enter","down",SpawnGameType) l1, l2, l3, l4, l5, l6 = unpack(CamGameType[1]) info1 = Info[1] info2 = Info[2] ShowGameType() addEventHandler("onClientRender",getRootElement(),DrawGameType) --]] end addEventHandler("onClientPlayerWasted", getLocalPlayer(), function(killer, weapon, bodypart) if getElementData(localPlayer, "WasChangeTeam") == true then showforallteam() else return false end end) function ShowGameType() ColorGame = {255,255,0} l1, l2, l3, l4, l5, l6 = unpack(CamGameType[1]) setCameraMatrix(l1, l2, l3, l4, l5, l6) SelectGame = 1 GameNameType = GameType[1] count2 = count("Grove") count3 = count("Aztecas") count4 = count("Police") count5 = count("Ballas") count6 = count("No Team") mn = count2 + count3 + count4 + count5 + count6 typeGame = "gang" end function SpawnGameType() setTimer(MakeGangWars, 500, 1) TeamNameee = "Team Name" end function MakeGangWars() Color = {0, 255, 0} Team = " " .. TeamName[1] .. " " allPlayer = count(TeamName[1]) Weapon = WaeponID[1] NameWeap = getWeaponNameFromID(Weapon) NameWeap = getWeaponNameFromID(Weapon) NewTeam = 1 local x, y, z, lx, ly, lz = foundPos(1), foundPos(2), foundPos(3), foundPos(4), foundPos(5), foundPos(6) setCameraMatrix(x, y, z, lx, ly, lz) ---removeEventHandler("onClientRender", getRootElement(), DrawGameType) bindKey("arrow_r", "down", Next) bindKey("arrow_l", "down", Next) bindKey("enter", "down", SpawnPlayer) addEventHandler("onClientRender", getRootElement(), DrawTeam) SkinSelectMusic = playSound(Music, true) local pedx, pedy, pedz = foundPos(7), foundPos(8), foundPos(9) findskin = math.random(1, 3) ID = 105 Ped[1] = createPed(ID, pedx, pedy, pedz, Rot[1]) if not isElement(Ped[1]) then Ped[1] = createPed(ID, pedx, pedy, pedz, Rot[NewTeam]) end setElementFrozen(Ped[1], true) setPedAnimation(Ped[1], "DANCING", Anims[math.random(1, 6)]) foundTeam = 1 findskin = 1 end function Next(key) if key == "arrow_l" then num = num - 1 else num = num + 1 end if key == "arrow_l" then findskin = findskin - 1 else findskin = findskin + 1 end if findskin < 1 then findskin = 3 end if TeamName[number] and TeamName[number] == "No Team" then if findskin > #skin["No Team"] then findskin = 1 end else if findskin > 3 then findskin = 1 end end if num < 1 then num = 12+#skin["No Team"]+#skin['Medic'] foundTeam = 6 end if num == 1 or num == 3 then foundTeam = 1 end if num == 4 or num == 6 then foundTeam = 2 end if num == 7 or num == 9 then foundTeam = 3 end if num == 10 or num == 12 then foundTeam = 4 end if num == 13 or num == 12+#skin["No Team"] then foundTeam = 5 end if num == 12+#skin["No Team"]+1 or num == 12+#skin["No Team"] + #skin['Medic'] then foundTeam = 6 end if num > 12+#skin["No Team"] + #skin['Medic'] then foundTeam = 1 num = 1 end number = foundTeam ID = skin[TeamName[number]][findskin] Team = " " .. TeamName[number] .. " " NewTeam = foundTeam TextColor(number) setElementModel(Ped[1], ID) setPedAnimation(Ped[1], "DANCING", Anims[math.random(1, 5)]) if Ped[1] then destroyElement(Ped[1]) Ped[1] = nil end local x, y, z, lx, ly, lz = foundPos(1), foundPos(2), foundPos(3), foundPos(4), foundPos(5), foundPos(6) wasFoundCamAndPed = foundTeam local pedx, pedy, pedz = foundPos(7), foundPos(8), foundPos(9) Ped[1] =
  21. يب انا الحين ابي حل لمشكله المود مو لمشكله الكود بس ذا بست قال نزله
  22. المشكله مو بالكود الكود يحفظ و كل شي بس لا ركبت مود سعد حق التيمات ما يحفظ مود سعد يخرب عليه انا ابيه يحفظ و مود سعد موجود يحفظ درع- سلاح-نجوم بس مود سعد يجبره ما بحفظ شي
  23. لو يمديك ضبطه لنا نذكرك ب الخير ان شاءالله
  24. لا انا متاكد منها حتى لا قفلت مود سعد
×
×
  • Create New...