Jump to content

فاّرس

Members
  • Posts

    4,805
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by فاّرس

  1. peds = { {120, 1566.41735, -1259.45605, 277.8813, 160}, {17, 1555.38732, -1256.55517, 277.88281, 160}, {120, 1562.02270, -1257.09252, 277.88055, 160}, {120, 1567.18994, -1257.94104, 277.88076, 160}, {120, 1567.26599, -1227.53027, 277.87860, 160}, {120, 1573.79064, -1230.17395, 277.87701, 160}, {120, 1580.79064, -1230.18395, 277.87701, 160}, {120, 1500.40454, -1224.24951, 277.87976, 160} } addEvent("Ped",true) addEventHandler("Ped",root, function() if isElement( Ped ) then destroyElement(Ped) Ped = nil end for k,v in ipairs ( peds ) do Ped = createPed(v[1],v[2],v[3],v[4],v[5]) end end ) مجربه 100% يتكرر
  2. الجدول في 8 بيد وانت حاط تحت لين5 مو المفروض يكون لين 8 ؟
  3. سويته كذآ ما ضبط,, addEvent("Ped",true) addEventHandler("Ped",root, function() if isElement( peds ) then destroyElement(peds) peds = nil end peds = { {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...} } end)
  4. يعطيك العافيه, اذا كان اكثر من بيد ؟ مشوار اسويهم كلهم كذآ
  5. addEvent("Ped",true) addEventHandler("Ped",root, function() if isElement( ped ) then destroyElement(ped) ped = nil ped = createPed ( 120, 1566.41735, -1259.45605, 277.8813, 160 ); end end)
  6. showTextForPlayer1 = ؟ وظيفة سعد مسويها بالقيم , بس مو معرفه في هذا الكود ,,
  7. لآ اذا دخل الماركر يطلع بيد واذا خرج ودخل مره ثانيه يتكرر البيد يعني يسوي 2 بيد وانا مابيه يتكرر
  8. كلنت , addEvent("Ped",true) addEventHandler("Ped",root, function(ped) Ped = createPed ( ... ); if isElement( ped ) then destroyElement(Ped) end end) سيرفر , local Marker = createMarker ( ... ); function Hit(player) if ( getElementType(player) == "player" ) then triggerClientEvent(player,"Ped",player) end end addEventHandler("onMarkerHit",Marker,Hit) ما رضي يحذف البيد
  9. الاكواد الي فوق صحيحه ؟ + وين احطه سيرفر ولا كلنت ؟
  10. ما عرفت اتحقق انه البيد موجود ولا لا,, كلنت addEvent("Ped",true) addEventHandler("Ped",root, function(ped) Ped = createPed ( ... ); if not ped then destroyElement(Ped) end) سيرفر , local Marker = createMarker ( ... ); function Hit(player) if ( getElementType(player) == "player" and source == Marker ) then triggerClientEvent(source,"Ped",source) end end addEventHandler("onMarkerHit",Marker,Hit)
  11. يعني استخدم, triggerClientEvent createPed killPed ?
  12. @ Mr.Pres[T]ege انا كنت حاطه كلنت ونسيت آعدل onClientMarkerHit > onMarkerHit @ |Mr|-Talal07-| يعطيك العافيه ما قصرت + الطلب الرسمي ابي بس الي يدخل الماركر يشوف البيد ومابيه يتكرر اذا مر بالماركر اكثر من مرة
  13. ^ الحين الكود الي فوق يوم تنتقل يسوي لك وارب للسيارة لكن لو انتقل واحد ثاني بينزلك ويصير مكانك عشآن كذا ابي اول ما يتنقل يطلع له سيارة لحاله, + الجدول مالي خبره فيه بس سويت كذآ , Peds = { "ID,x,y,z", "ID,x,y,z", } ^ صح ولآ ؟ + يوم يجي ع الماركر يتكرر البيد ابيه يطلع له بس مره وحده,,
  14. السلام عليكم ورحمه الله وبركاته,, ابي اللاعب بس الي يدخل الماركر هو الي يشوف البيد فقط + ابي اذا خرج من الماركر ودخل مرة ثانيه ما يتكرر البيد. + function markerHit(player) for _,c in ipairs(getElementType("vehicle")) do setElementPosition(player,x,y,z) -- Ex... car = createVehicle( ... ) warpPedIntoVehicle(player, c ) end end addEventHandler("onMarkerHit",marker,markerHit) ^ ابي اول ما يتنقل يطلع له سيارة + Ped = createPed ( ... ); Ped2 = createPed ( ... ); ^ بدل ما اكرر كيف اسويه جدول ؟
  15. مع إني رديت في الموضع الثاني الي حطه مكرر, + هو ما قال يبيه بزر يبيه اذا كتب بالاديت, + ما يحتاج ترايقر الا اذا يبي الوقت للكل, اما اذا يبيه للي كتب بس يحطه كلنت,,
  16. آنآ اخاف ينقل كل اللاعبين, لاني ما ادري بينقلهم ولا لا لاني اجربه لحالي,,
  17. واذا كذآ, car = createVehicle(...) local marker2 = createMarker ( ... ); function markerHit(player) if getElementType(player) == "player" then warpPedIntoVehicle(player, car ) end end addEventHandler("onMarkerHit", marker2,markerHit)
  18. local Marker = createMarker (... ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then setCameraMatrix( ... ) setTimer(setCameraTarget, 1000, 1, player) end end addEventHandler("onClientMarkerHit",Marker,MarkerHit); يوجه الكاميرا لكل اللاعبين ليه؟
  19. يعطيك العافيهه,, + car = createVehicle(...) for _,v in ipairs(getElementsByType("player")) do warpPedIntoVehicle(v,car) ^ كذا بيصير لكل اللاعبين كيف اخليه للاعب واحج الي هو بيلمس الماركر؟
×
×
  • Create New...