Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. createBlip ( 1402.9000244141 , 730.79998779297 , 10 , 63 ) nickM = createMarker( 1402, 730, 10, "cylinder", 2, 0, 255, 0, 160 ) addEventHandler ( "onMarkerHit", nickM, function ( hitPlayer ) if ( isPedInVehicle ( hitPlayer ) == false ) then theData = getElementData ( hitPlayer , "theCar" ) if ( theData ) then destroyElement ( theData ) end x, y, z = getElementPosition ( hitPlayer ) nickC = createVehicle ( 411, x, y, z ) warpPedIntoVehicle ( hitPlayer, nickC ) setElementData ( hitPlayer, "theCar", nickC ) end end )
  2. أقر Required Arguments
  3. addEventHandler ( "onResourceStart", resourceRoot, function () for _, theVehicles in ipairs ( getElementsByType ( "vehicle" ) ) do local x, y, z = getElementPosition ( theVehicles ) marker = { { x, y, z } } for _, theMarkers in ipairs ( marker ) do theMarker = createMarker ( theMarkers[1], theMarkers[2], theMarkers[3], "cylinder", 6, 0, 0, 0, 0 ) addEventHandler ( "onMarkerHit", theMarker, onHit ) end attachElements ( theMarker, theVehicles, 0, 0, -1 ) end end ) function onHit( thePlayer ) outputChatBox ( "Hello !", thePlayer, 255, 0, 0, true ) end
  4. addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, theVehicles in ipairs ( getElementsByType ( "vehicle" ) ) do Marker = createMarker ( x, y, z, "cylinder", 4, 0, 0, 0, 0 ) attachElements ( Marker, theVehicles, 0, 0, -1 ) end end )
  5. خخخخ وإذا طويلة وين المشكلة ؟ اهم شيء الكود يفهمه اللي طالبه #
  6. اولاً الأكواد الجاهزة تخليكـ تعتمد على غيركـ و ماتتعلم ثانياً ادخل الصفحة ذي وافهم اللي فيها وحاول تطبق https://wiki.multitheftauto.com/wiki/Scr ... ed_to_know واعتقد الشباب ماقصروا في تعريب الويكي . . /
  7. × انت فاهم البرمجة خطأ
  8. فيه خيار اسمه load Gui او load Code يحمل اللوحات
  9. --- Server Side for _, thePlayer in ipairs ( getElementsByType("player") ) do bindKey( thePlayer, "1", "down", BuyNitro ) end function BuyNitro ( thePlayer ) local playerMoney = getPlayerMoney ( thePlayer ) local playerName = getPlayerName ( thePlayer ) local playerVehicle = getPedOccupiedVehicle ( thePlayer ) if playerMoney >= 3000 then if isPedInVehicle ( thePlayer ) then takePlayerMoney ( thePlayer, 3000 ) addVehicleUpgrade ( playerVehicle , 1010 ) outputChatBox("#ffffff[ #0000ff".. playerName .." #ffffff] #007fffhas bought [ #ffff00Nitro #007fff]", root, 255, 255, 0, true) else outputChatBox("#007fffYou Must Be In Vehicle", thePlayer, 255, 0, 0, true) end else outputChatBox("#007fffYou Dont Have [#999999 3,000 #007fff]", thePlayer, 255, 0, 0, true) end end
  10. ps: اشوفكـ صاير مدرس ماشاء الله
  11. مصعب الكود الله يهديكـ على واحد مبتدأ . . addCommandHandler ( "601", function ( playerSource ) local x, y, z = getElementPosition ( playerSource ) -- x,y,z إحضار إحداثيات اللاعب حطيناها في اختصار local Car = createVehicle ( 601 , x, y, z ) -- Car هنا صنع السيارة في موقع اللاعب حطيناها في اختصار -- 601 هذا اي دي السيارة warpPedIntoVehicle ( playerSource, Car ) -- وآخر شيء وضع اللاعب داخل السيارة -- playerSource = اللاعب -- Car = اختصار صنع السيارة end -- إغلاق المهمة )
  12. سو موضوع جديد اكتب عنوانه " ABO-SR777777A طلبات " و حط اللي تبي فيه اما كذا الوضع مآينفع
  13. -- Server Side createTeam ( "police", 0, 150, 255 ) function Team ( thePlayer ) setPlayerTeam ( thePlayer, getTeamFromName ( "police" ) ) setElementPosition ( thePlayer, 1594.2534179688, -2104.5949707031, 17.81170463562 ) setElementModel ( thePlayer, 25 ) giveWeapon ( thePlayer, 30, 250 ) giveWeapon ( thePlayer, 25, 100 ) giveWeapon ( thePlayer, 27, 100 ) end addCommandHandler ( "spawn", Team )
  14. https://community.multitheftauto.com/ind ... includes=1
  15. الكود واضح . . skin السطر 6 الأرقومنت الأخير بدل الكلمة إلى رقم الشخصية . .
  16. giveWeapon ( thePlayer, theWeapon, theAmmo )
  17. addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do bindKey ( thePlayer, "tab", "down", Move ) end end ) object = createObject ( 2930, 1520.3000488281, -1629.5999755859, 15.199999809265 ) marker = createMarker ( 1520.0999755859, -1630.5999755859, 13.5, 'cylinder', 2, 0, 0, 0, 0 ) function Move ( thePlayer ) if isElementWithinMarker ( thePlayer, marker ) then if ( getPlayerTeam ( thePlayer ) == getTeamFromName ( "Rebel" ) ) then if i then moveObject ( object, 1500, 1520.3000488281, -1631.0999755859, 15.199999809265 ) else moveObject ( object, 1500, 1520.3000488281, -1629.5999755859, 15.199999809265 ) end end i = not i end end
  18. التعلم مو عطني كود واحد وانا انسخ واطبق على الكل @@" اللي تحتاجه -- Client Side Event "onClientGUIClick" triggerServerEvent -- Example addEventHandler("onClientGUIClick", root, function ( ) if ( source == BUTTON ) then triggerServerEvent( "onClickBUTTON", localPlayer ) end end ) -- Server Side addEvent getPlayerMoney takePlayerMoney giveWeapon -- Example addEvent ( "onClickBUTTON", true ) addEventHandler ( "onClickBUTTON", root, function ( ) if ( getPlayerMoney ( source ) >= 1500 ) then takePlayerMoney ( source , 1500 ) giveWeapon ( source , 46 ) end end ) جرب حظكـ و بعدين نصحح اخطاءك
  19. المفروض تعصب مهوب تستحي
  20. حلو والله تطرح الموضوع و تنبه الناس وانت اصلاً ماتدري وش لون تسويه
  21. -- Server Side isObjectInACLGroup + triggerClientEvent -- Client Side guiSetVisible + addEvent
  22. ممكن يكون عليكـ هجمات دوس #
  23. addCommandHandler string.find outputChatBox
  24. هذا يفعل مآ يلغي <enablesd></enablesd>
×
×
  • Create New...