Jump to content

kamel10

Members
  • Posts

    317
  • Joined

  • Last visited

Everything posted by kamel10

  1. تم الحين يسجل بس ما يكتب انه تم التسجيل
  2. عندي مشكلة بالقيم مود مايمديني اسجل بس تسجيل الدخول الكود DELETED
  3. تابل لو سمحت ابي حل هنا viewtopic.php?f=160&t=77481
  4. عندي مشكلة بمقر ما يقتل شرطي حرامي مايروح للسجن يروح للمقر local marker1 = createMarker( 1263.2087402344, 736.55596923828, 13.671875 , "cylinder", 1.3, 48, 255, 0, 255) local marker1v2 = createMarker( 1269.3950195313, 736.55596923828, 13.671875 , "cylinder", 1.3, 48, 255, 0, 255) local marker2 = createMarker( 1212.3438720703, 718.86822509766, 12.671875 , "cylinder", 3, 48, 255, 0, 255 ) local marker2v1 = createMarker( 1307.9173583984, 763.56182861328, 15.22812461853,"cylinder", 2, 48, 255, 0, 255 ) local marker2v2 = createMarker( 1307.9173583984, 791.89099121094, 15.22812461853,"cylinder", 2, 48, 255, 0, 255 ) local marker3 = createMarker( 1263.3000488281,805.70001220703,15.60000038147, "cylinder",10, 0, 0, 0, 0 ) gate = createObject (980,1263.3000488281,805.70001220703,15.60000038147,0,0,0) local groupName = 'G-T' function GateGroup1(Player) if getElementData(Player, "Group") == groupName then outputChatBox ("Welcome You to base "..groupName.." *",Player,48, 255, 0) moveObject (gate,1000,1263.3000488281,805.70001220703,20.60000038147) else outputChatBox ("* "..groupName.." انت لست في جروب",Player,48, 255, 0) end end addEventHandler( "onMarkerHit", marker3, GateGroup1 ) function GateGroup2(Player) if getElementData(Player, "Group") == groupName then moveObject (gate,1000,1263.3000488281,805.70001220703,15.60000038147) end end addEventHandler( "onMarkerLeave", marker3, GateGroup2 ) function Group( Player ) if getElementData(Player, "Group") == groupName then setPedSkin ( Player , 294 ) setElementHealth( Player, 200 ) setPedArmor ( Player, 100 ) else outputChatBox ("* "..groupName.." انت لست في جروب",Player,48, 255, 0) end end addEventHandler( "onMarkerHit", marker1, Group ) addEventHandler( "onMarkerHit", marker1v2, Group ) function fixCar( vehicleValue ) if getElementData(vehicleValue, "Group") == groupName then if isPedInVehicle (vehicleValue) then outputChatBox ("لقد تم تصليح السيارة",vehicleValue,48, 255, 0) vehicles = getElementsByType ( "vehicle" ) for vehicleKey, vehicleValue in ipairs(vehicles) do fixVehicle ( vehicleValue ) end else outputChatBox ("يجب عليك ان تركب السيارة",vehicleValue,48, 255, 0) end else outputChatBox ("* "..groupName.." انت لست في جروب",vehicleValue,48, 255, 0) end end addEventHandler( "onMarkerHit", marker2, fixCar ) function fixCar( vehicleValue ) if getElementData(vehicleValue, "Group") == groupName then if isPedInVehicle (vehicleValue) then outputChatBox ("لقد تم تصليح الطائرة",vehicleValue,48, 255, 0) vehicles = getElementsByType ( "vehicle" ) for vehicleKey, vehicleValue in ipairs(vehicles) do fixVehicle ( vehicleValue ) end else outputChatBox ("يجب عليك ان تركب الطائرة",vehicleValue,48, 255, 0) end else outputChatBox ("* "..groupName.." انت لست في جروب",vehicleValue,48, 255, 0) end end addEventHandler( "onMarkerHit", marker2v1, fixCar ) addEventHandler( "onMarkerHit", marker2v2, fixCar ) function spawn() if getPlayerTeam and getTeamName ( getPlayerTeam ( source ) ) == 'No Team' then if getElementData(source, "Group") == groupName then outputChatBox ("Welcome You to base "..groupName.." * ",source,48,255,0) setElementPosition( source, 2365.2624511719,-1132.9306640625,1050.875 ) setPedSkin ( source , 294 ) setElementInterior ( source, 8 ) setElementDimension ( source, 43 ) setElementHealth( source, 100 ) setPedArmor ( source, 100 ) end end end addEventHandler( "onPlayerSpawn", getRootElement(), spawn ) G1 = createMarker (1266.1448974609,735.60241699219,15.618443489075, "arrow",1.5, 48, 255, 0,0 ) function G4 (source) if getElementData(source, "Group") == groupName then if not isPedInVehicle(source) then setElementInterior ( source, 8 ) setElementDimension ( source, 43 ) setElementPosition ( source, 2365.2624511719,-1132.9306640625,1050.875) setElementRotation(source,-0,0,3.7172462940216) end else outputChatBox( "#ffff00.:[ This is Home For #ffffff "..groupName.." #ffff00 Group]:.", source, 48, 255, 0, true ) end end addEventHandler ( "onMarkerHit", G1, G4) G2 = createMarker (2365.2666015625,-1135.5804443359,1051.8825683594, "arrow", 1.5, 48, 255, 0,0 ) setElementInterior ( G2, 8 ) setElementDimension ( G2, 43 ) function G3 (source) if getElementData(source, "Group") == groupName then if not isPedInVehicle(source) then setElementInterior ( source, 0 ) setElementDimension ( source, 0 ) setElementPosition ( source,1267.3452148438,739.66674804688,14.618443489075) setElementRotation(source,-0,0,177.30551147461) end end end addEventHandler ( "onMarkerHit", G2, G3)
  5. ابي مود توب 30 قتل
  6. مسوي كل شيئ تمام بس مدري ليش ما يشتغل السيرفر local Display = textCreateDisplay() local CrText = textCreateTextItem("0 Criminal", 0.05, 0.65, "high", 255, 0, 0, 255, 1.2, "center", "center", 255) local VsText = textCreateTextItem("Vs", 0.1, 0.65, "high", 255, 255, 255, 255, 1.2, "center", "center", 255) local PoText = textCreateTextItem("0 Police", 0.15, 0.65, "high", 0, 0, 255, 255, 1.2, "center", "center", 255) textDisplayAddText(Display, CrText) textDisplayAddText(Display, VsText) textDisplayAddText(Display, PoText) CrTable = {} PoTable = {} function updateText() textItemSetText(CrText, #CrTable.." Criminal") textItemSetText(PoText, #PoTable.." Police") end function AddPlayer(player, Table) if not getPlayerTable(player, CrTable) and not getPlayerTable(player, PoTable) then textDisplayAddObserver(Display, player) table.insert(Table, player) setElementData(player, "MissionProtection", true) if Table == CrTable then setPlayerWantedLevel(player, 6) end updateText() end end function RemovePlayer(player, Table) textDisplayRemoveObserver(Display, player) for i, v in ipairs (Table) do if (v == player) then table.remove(Table, i) setElementData(player, "MissionProtection", false) end end updateText() end function getPlayerTable(player, Table) for i, v in ipairs (Table) do if (v == player) then return true end end end addEventHandler("onElementDataChange", root, function(dataName) if dataName == "LegalStatus" and (getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable)) then local LegalStatus = getElementData(source, dataName) if LegalStatus == "Jailed" then if getPlayerTeam(source) ~= getTeamFromName("Police") then RemovePlayer(source, CrTable) elseif getPlayerTeam(source) == getTeamFromName("Police") then RemovePlayer(source, PoTable) end checkForWinner() end end end) setPlayerWantedLevel_ = setPlayerWantedLevel function setPlayerWantedLevel(player, level) local stat = setPlayerWantedLevel_(player, level) if stat then setElementData(player, "WantLvl", level) end return stat end local CrM = createMarker(476.7, -1488.7, 19.2, "arrow", 2, 255, 0, 0, 150) local PoM = createMarker(474.5, -1509, 19.5, "arrow", 2, 0, 0, 255, 150) local CrDoor = createObject(1508, 4342.5, -1649.2, 26.4) local PoDoor = createObject(1508, 4253.1, -1652.4, 26.4) createBlip(475.4, -1501.57, 20.5, 32) addEventHandler("onResourceStart", resourceRoot, function() exports ["guimessages"] : outputServer(root, "* Go to the red house!!", 50, 0, 255) exports ["guimessages"] : outputServer(root, "Sniper Mission will begin after 5 minutes!", 255, 50, 0) exports ["guimessages"] : outputServer(root, "*For Gangster : Enter at Red Marker !", 255, 50, 0) exports ["guimessages"] : outputServer(root, "*For Police : Enter at Blue Marker!", 0, 50, 255) standByMission = setTimer(function() moveObject(CrDoor, 3500, 4342.5, -1649.2, 29.4) moveObject(PoDoor, 3500, 4253.1, -1652.4, 29.4) exports ["guimessages"] : outputServer(root, "Sniper Mission Started!!!", 0, 150, 255) setTimer(checkForWinner, 1000, 1, true) end, 5*60*1000, 1) end) function getTimeLeft(Timer) if startTheMission == Timer then ms = getTimerDetails(Timer) + 300000 else ms = getTimerDetails(Timer) end local m = math.floor(ms/60000) local s = math.floor((ms-m*60000)/1000) if m < 10 then m = ""..m end if s < 10 then s = ""..s end return "("..m.." Min and "..s.." Sec)" end addCommandHandler("snipertime", function(player) if isTimer(standByMission) then exports ["guimessages"] : outputServer(player, "Time left before Sniper Mission Start: "..getTimeLeft(standByMission), 0, 255, 0) elseif isTimer(startTheMission) then exports ["guimessages"] : outputServer(player, "Time left before Sniper Mission Start: "..getTimeLeft(startTheMission), 0, 255, 0) else exports ["guimessages"] : outputServer(player, "Sniper Mission is in progress now!", 0, 255, 0) end end) local PolicePosition = { {7666.8, -914.6, 9.1}, {7665.4, -909.1, 9.1}, {7668.6, -904.8, 9.1}, {7664.7, -897.9, 9.1}, {7668.9, -894.3, 9.1}, {7656.9, -895.9, 9.1}, {7654.1, -904.5, 9.1}, {7652.6, -914.1, 9.1} } local PoliceOutPosition = { {216.6, 76.57, 1005.2}, {216.3, 80.5, 1005.2}, {219.83, 79.8, 1005.2} } local CriminalPosition = { {7998.4, -916.3, 9.1}, {7993.7, -916.1, 9.1}, {7994.1, -910.6, 9.1}, {7994.4, -899.1, 9.1}, {8001.2, -899.2, 9.1}, {8004.9, -906.1, 9.1}, {8010.5, -915.2, 9.1} } local CriminalOutPosition = { {486.5, -1492.6, 20.2}, {487.2, -1474.7, 19.2}, {492.6, -1469.85, 18.55}, {489.4, -1464.85, 18.3}, {487.1, -1503.9, 20.4}, {483.1, -1515.1, 20.3}, {489.4, -1526.2, 19.77}, {485.1, -1534.1, 19.4} } addEventHandler("onMarkerHit", root, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then if isTimer(standByMission) then if source == CrM and getPlayerTeam(player) ~= getTeamFromName("Police") then local x, y, z = unpack(CriminalPosition[math.random(#CriminalPosition)]) setElementPosition(player, x, y, z) AddPlayer(player, CrTable) elseif source == PoM and getPlayerTeam(player) == getTeamFromName("Police") then local x, y, z = unpack(PolicePosition[math.random(#PolicePosition)]) setElementPosition(player, x, y, z) AddPlayer(player, PoTable) end end end end) TopKill = {} function sortTop() sortedTopKill = {} for a, b in pairs(TopKill) do table.insert(sortedTopKill, {getPlayerName(a), b}) end table.sort(sortedTopKill, function(a,b) return a[2] > b[2] end) end addEventHandler("onPlayerWasted", root, function(_, killer) if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then if killer and getElementType(killer) == "player" then exports ["guimessages"] : outputServer(root, getPlayerName(killer).." Killed "..getPlayerName(source).." in Sniper Mission!", 255, 0, 255) TopKill[killer] = (TopKill[killer] or 0) + 1 else exports ["guimessages"] : outputServer(root, getPlayerName(source).." dead in Sniper Mission!", 255, 0, 255) end if getPlayerTeam(source) ~= getTeamFromName("Police") then RemovePlayer(source, CrTable) elseif getPlayerTeam(source) == getTeamFromName("Police") then RemovePlayer(source, PoTable) end end checkForWinner() end) addEventHandler("onPlayerQuit", root, function() if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then if getPlayerTeam(source) ~= getTeamFromName("Police") then RemovePlayer(source, CrTable) elseif getPlayerTeam(source) == getTeamFromName("Police") then RemovePlayer(source, PoTable) end end checkForWinner() end) function checkForWinner(cHk) if cHk then TopKill = {} end if not isTimer(standByMission) and not isTimer(startTheMission) then if #CrTable > 0 and #PoTable == 0 then if not cHk then exports ["guimessages"] : outputServer(root ,"The Criminals won the Sniper Mission!", 255, 100, 0) exports ["guimessages"] : outputServer(root ,"--| Top Kills of Sniper Mission |--", 255, 255, 0) sortTop() if sortedTopKill[1] then exports ["guimessages"] : outputServer(root ,"1. "..sortedTopKill[1][1]..": "..sortedTopKill[1][2], 255, 0, 255) end if sortedTopKill[2] then exports ["guimessages"] : outputServer(root ,"2. "..sortedTopKill[2][1]..": "..sortedTopKill[2][2], 255, 0, 255) end if sortedTopKill[3] then exports ["guimessages"] : outputServer(root ,"3. "..sortedTopKill[3][1]..": "..sortedTopKill[3][2], 255, 0, 255) end else exports ["guimessages"] : outputServer(root ,"The Sniper Mission was Draw!", 255, 0, 0) end for _, p in ipairs (CrTable) do textDisplayRemoveObserver(Display, p) if not cHk then setElementData(player, "Money", (getElementData(player, "Money") + 30000 ) end local x, y, z = unpack(CriminalOutPosition[math.random(#CriminalOutPosition)]) setElementPosition(p, x, y, z) setElementData(p, "MissionProtection", false) end CrTable = {} PoTable = {} updateText() startTheMission = setTimer(function() exports ["guimessages"] : outputServer(root ,"* Go to the red house!!", 50, 0, 255) exports ["guimessages"] : outputServer(root ,"Sniper Mission will begin after 5 minutes!", 255, 50, 0) exports ["guimessages"] : outputServer(root ,"*For Gangster : Enter at Red Marker !", 255, 50, 0) exports ["guimessages"] : outputServer(root ,"*For Police : Enter at Blue Marker!", 0, 50, 255) moveObject(CrDoor, 3500, 4342.5, -1649.2, 26.4) moveObject(PoDoor, 3500, 4253.1, -1652.4, 26.4) standByMission = setTimer(function() moveObject(CrDoor, 3500, 4342.5, -1649.2, 29.4)
  7. تم + مشكووووور ماكس للقفل
  8. الحين ما شتغل المود اصلا
  9. كفوو اشتغل الحين ابي اخر طلب لما ياخذ الاستفهام يظهر اسم اللاعب و وش اخذ بس سويتها مدري ليش ما اشتغلت لو تشوفون فين الخطأ addEventHandler("onPickupHit",root, function ( player ) if ( source ~= bag ) then return end if ( isPedInVehicle( player ) ) then return end destroyElement( bag ) ) destroyElement( bl ) randomMoney = math.random ( 10000, 20000 ) setElementData(player, "Money", (getElementData(player, "Money") or 0) + randomMoney) local random = weapons[math.random(#weapons)] giveWeapon (player, random[1], random[2] ) exports.guimessages:outputServer(player, "You find #FF0000$" .. tostring(randomMoney) .." #C12267And #0000FF ".. getWeaponNameFromID ( random[1] ), 0, 250, 0) exports.guimessages:outputServer(root, "".. getPlayerName .." Has Get From Mystery Bag #FF0000$" .. tostring(randomMoney) .." #C12267And #0000FF ".. getWeaponNameFromID ( random[1] ), 0, 250, 0) MysteryTime = setTimer( createBag, 300000, 1 ) end
  10. تقدر تسويها على المود وترسلي الكود
  11. local mbag = { {1125.1999511719, -2037.1999511719, 69.300003051758}, {1682.3000488281, -2290.1000976563, -1.7999999523163}, {1883.1999511719, -1991.4000244141, 13.199999809265}, {2799.6999511719, -2417.3000488281, 13.300000190735}, {2896.3999023438, -1960.6999511719, 4}, {406.39999389648, -1539.9000244141, 31.700000762939}, {1083.5, -683.5, 113.80000305176}, {613.09997558594, -607.70001220703, 17}, {2476.6000976563, -945.5, 80.300003051758}, {2564, -118, 51.799999237061}, {1726.5999755859, -1880.4000244141, 13.699999809265}, {154.30000305176, -1942.4000244141, 3.4000000953674}, {815.20001220703, -1094.5, 25.39999961853}, {1742.6999511719, -1562.1999511719, 13.800000190735}, {2141.1999511719, -2262.6000976563, 12.89999961853}, {991.29998779297, -1525.1999511719, 13.5}, {-100.90000152588, -1567.8000488281, 2.5999999046326}, {2809.8999023438, -1182, 24.5}, {1819.4000244141, -1142.6999511719, 23.700000762939}, {2520.1999511719, -1487, 23.60000038147}, {2337.3999023438, -1245.4000244141, 22.10000038147}, {320.29998779297, -1328.8000488281, 14.39999961853}, {1154.0999755859, -1879.9000244141, 13.199999809265}, {1792.5, -2302.6999511719, -2.7000000476837}, {829.29998779297, -923.09997558594, 54.900001525879}, {561.29998779297, -1359.0999755859, 14.800000190735}, {1899, -1992.5, 13.300000190735}, {1881.5999755859, -1313.4000244141, 14.39999961853}, {538.90002441406, -1318.9000244141, 17.200000762939}, {784.5, -1734.9000244141, 13.199999809265} } weapons = { { 35, 3 }, { 16, 5 }, { 38, 500 } } function createBag() local random = math.random ( #mbag ) local x, y, z = mbag[random][1], mbag[random][2], mbag[random][3] bag = createPickup( x, y, z, 3, 1550 ) setElementCollisionsEnabled( bag, false ) bl = createBlipAttachedTo(bag,37) exports.guimessages:outputServer(root,"A Mystery Bag has Spawned get it", 0, 255, 0 ) end addEventHandler("onResourceStart", resourceRoot,createBag) addEventHandler("onPickupHit",root, function ( player ) if ( source ~= bag ) then return end if ( isPedInVehicle( player ) ) then return end destroyElement( bag ) destroyElement( bl ) randomMoney = math.random ( 10000, 20000 ) setElementData(player, "Money", (getElementData(player, "Money") or 0) + randomMoney) local random = weapons[math.random(#weapons)] giveWeapon (player, random[1], random[2] ) exports.guimessages:outputServer(player, "You find #FF0000$" .. tostring(randomMoney) .." #C12267And #0000FFWeapon", 0, 250, 0) setTimer( createBag, 90000, 1 ) end )
  12. واخييييرا اشغل شكرااااااا والان عندي طلب اخير يعني ابي اغير كلمة weapon الى السلاح الذي حصل عليه exports.guimessages:outputServer(player, "You find #FF0000$" .. tostring(randomMoney) .." #C12267And #0000FFWeapon", 0, 250, 0)
  13. اوك اسف لاكن ابي مساعدة
  14. اوك بجرب .. ابي اسوي لما اخذ الاستفهام يظهر فوق السلاح الي اخذته انا حاط كدة exports.guimessages:outputServer(player, "You find #FF0000$" .. tostring(randomMoney) .." #C12267And #0000FFWeapon", 0, 250, 0) edit: ابي اسوي بدل كلمة weapon اسم السلاح edit #2: الحين ما يعطيني لا سلاح ولا رصاص
  15. الحين سويت ارقمنت ل الرصاص الحين وش اسوي local idweapon = { 35, 38, 16 } local ammo = { 3, 500, 5 } function createBag() local random = math.random ( #mbag ) local x, y, z = mbag[random][1], mbag[random][2], mbag[random][3] bag = createPickup( x, y, z, 3, 1550 ) setElementCollisionsEnabled( bag, false ) bl = createBlipAttachedTo(bag,37) exports.guimessages:outputServer(root,"A Mystery Bag has Spawned get it", 0, 255, 0 ) end addEventHandler("onResourceStart", resourceRoot,createBag) addEventHandler("onPickupHit",root, function ( player ) if ( source ~= bag ) then return end if ( isPedInVehicle( player ) ) then return end destroyElement( bag ) destroyElement( bl ) randomMoney = math.random ( 10000, 20000 ) setElementData(player, "Money", (getElementData(player, "Money") or 0) + randomMoney) giveWeapon (player, idweapon[math.random(#idweapon)] ) exports.guimessages:outputServer(player, "You find #FF0000$" .. tostring(randomMoney) .." #C12267And #0000FFWeapon", 0, 250, 0) setTimer( createBag, 90000, 1 ) end )
  16. ممكن تسويه على المود عشان معرف استخدم الاكواد كثير
  17. local idweapon = { 35, 38, 16 } function createBag() local random = math.random ( #mbag ) local x, y, z = mbag[random][1], mbag[random][2], mbag[random][3] bag = createPickup( x, y, z, 3, 1550 ) setElementCollisionsEnabled( bag, false ) bl = createBlipAttachedTo(bag,37) exports.guimessages:outputServer(root,"A Mystery Bag has Spawned get it", 0, 255, 0 ) end addEventHandler("onResourceStart", resourceRoot,createBag) addEventHandler("onPickupHit",root, function ( player ) if ( source ~= bag ) then return end if ( isPedInVehicle( player ) ) then return end destroyElement( bag ) destroyElement( bl ) randomMoney = math.random ( 10000, 20000 ) setElementData(player, "Money", (getElementData(player, "Money") or 0) + randomMoney) giveWeapon (player, idweapon[math.random(#idweapon)] ) exports.guimessages:outputServer(player, "You find #FF0000$" .. tostring(randomMoney) .." #C12267And #0000FFWeapon", 0, 250, 0) setTimer( createBag, 90000, 1 ) end ) انا مسوي كدة edit: كيف اعطي رصاص لكل سلاح
  18. ابي هذا المود يقدر يستخدمه بس الكونسول يعني بس الكونسول يطير https://community.multitheftauto.com/ind ... ils&id=220
  19. انا سويت لما تاخذ شيئ تاخذ فلوس و سلاح عشوائي بس ما اعرف كيف احدد كم رصاص لكل سلاح
  20. يب الحين وش اسويله
×
×
  • Create New...