Jump to content

./BlackBird#

Members
  • Posts

    1,355
  • Joined

  • Last visited

Everything posted by ./BlackBird#

  1. ي عناد الكود هذا شغال بس انت ما فهمتني ابي يصمم 2 ماركر الماركر الاول ينقلك للثاني و بس
  2. اشتري سيرفر من اي استضافة و اتوقع يجي معها مود ريس
  3. انت ما فهمتني انا المود كله شغال الا زر 1 هذا الكود addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[3]) then local marker = createMarker(x1, y1, z1, "checkpoint", 2, 255, 255, 0, 0) createBlipAttachedTo(marker, 15) function changeLocation(person) setElementPosition(person, x2, y2, z2) end end end addEventHandler("onMarkerHit", marker, changeLocation) addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
  4. ,وضح لي وش تبي من الكود انا مسوي 3 ازرار و 6 edit سويت 6 عشان ياخذ احداثيات مكانين زر ياخذ المكان الاول و الزر الثاني ياخذ احداثيات الثاني و الزر الثالث يسوي هذا addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[3]) then local marker = createMarker(x1, y1, z1, "checkpoint", 2, 255, 255, 0, 0) createBlipAttachedTo(marker, 15) function changeLocation(person) setElementPosition(person, x2, y2, z2) end end end addEventHandler("onMarkerHit", marker, changeLocation) addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) بس فيه خطأ ما اعرف وش هو
  5. ابي تصحيح هذا الكود addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[3]) then local marker = createMarker(x1, y1, z1, "checkpoint", 2, 255, 255, 0, 0) createBlipAttachedTo(marker, 15) function changeLocation(person) setElementPosition(person, x2, y2, z2) end end end addEventHandler("onMarkerHit", marker, changeLocation) addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) الماركر الاول احداثاته في x1 y1 z1 و المكان الثاني x2 y2 z2
  6. جرب ذا سيرفر -- addEvent("NRG",true) addEventHandler("NRG", root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1500) then takePlayerMoney(source,1500) if ( sourcePlayer ) then local vehicleID = getVehicleModelFromName ( vehicleName ) if vehicleID then local RacerPed = createPed ( 252, 0, 0, 3 ) local RaceVehicle = createVehicle ( 411, 4, 0, 3 ) warpPedIntoVehicle ( RacerPed, RaceVehicle ) end local newVehicle = createVehicle ( vehicleID, x, y, z, 0, 0, rotZ ) if newVehicle then local name = getPlayerName(source) outputConsole ( "#00ff00" .. name .. "* #0099ccSuccessfully bought #00ff00[NRG-500] #000000[ #ff0000-$150 #000000]#00ff00 !", sourcePlayer ) else outputChatBox ( "Filed to create vehicle", getRootElement(), 255, 0, 0, true ) else outputChatBox("you Don't have enough Money", source, 255, 0, 0, true) end end end end )
  7. https://wiki.multitheftauto.com/wiki/Vehicle_IDs
  8. اعيد و اكرر للمرة المليون الامثلة الي من الويكي صحيحة 100%
  9. ي خي استخدم [xml][/xml] مو [code] [/code] + جايب امثلة من الويكي و تقول صلحولي؟
  10. مشكور ان شاء الله اقدر اسوي الكود
  11. ما عرفت كيف اسويه لان ما اعرف وش Element تسوي
  12. بس وش دخل ذا؟ if ( source == GUIEditor_Button[27] ) then
  13. نعيد و نكرر للمرة المليون الاكواد من الويكي صحيحة 100% ولا تجي تجيب الكود و تقول صححوه لي
  14. السلام عليكم ورحمة الله و بركاته انا بغيت كود مثلا -- this function is called whenever someone types 'createmarker' in the console: function consoleCreateMarker ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) -- get the player's position -- create a cylindrical marker next to the player: local theMarker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) if ( theMarker ) then -- check if the marker was created successfully outputConsole ( "Marker created successfully", thePlayer ) else outputConsole ( "Failed to create marker", thePlayer ) end end end addCommandHandler ( "createmarker", consoleCreateMarker ) هذا المثال من الويكي جايبه يسوي ماركر بس المشكلة انه يقدر يسوي ماركر كثير ابي يقدر يسوي 1 اذا سوا قبل و بيسوي ثاني يختفي الاول
  15. كل النوافذ لما تشغل المود يطلع بوجهك اما لو طلعت و دخلت ما بيطلع بوجهك
  16. addEventHandler("onPlayerJoin",root, function () ped = createPed( 120, -322.06091308594 , 952.46911621094 , 12.1328125 ) setElementFrozen( ped, true ) fadeCamera ( source , true ) pX , pY , pZ = getElementPosition ( ped ) setTimer ( setCameraMatrix , 1000 , 1 , source , pX , pY +4 , pZ ) end ) هذا ؟ -__-
×
×
  • Create New...