Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. هذا الحدث راح يصير مره وحده بكل فريم حنا بالعاده نلعب ب 60 فريم يعني الحدث هذا راح يصير 60 مره بالثانية او على حسب عدد الفريمات عندك لازم تشغله مع كل فريم علشان تشوف الكلام في الشاشة dxDrawText هذا الحدث تحتاجه لان الفنكشن
  2. setTimer(function() removeEventHandler("onClientRender", root, drawText) end, 10000, 1)
  3. TAPL

    Question

    You're welcome.
  4. TAPL

    PNS

    You're welcome.
  5. TAPL

    Question

    radararea2 = createRadarArea(110.91990, 1800.89435, 200, 145, 255, 255, 255, 225) function Area_51_Base_Spawn() local playerTeam = getPlayerTeam(source) if (playerTeam) then local r, g, b = getTeamColor(playerTeam) local aR, aG, aB = getRadarAreaColor(radararea2) if (r == aR) and (g == aG) and (b == aB) then setElementPosition(source, 298.98865, 1815.90613, 3.71094) end end end addEventHandler("onPlayerSpawn", getRootElement(), Area_51_Base_Spawn)
  6. TAPL

    Question

    Read the wiki please, same mistake you do again and again. https://wiki.multitheftauto.com/wiki/AddEventHandler https://wiki.multitheftauto.com/wiki/OnPlayerSpawn
  7. يب أعرف انا مش حاط فوقيها صورة ستيم +
  8. أنا ما قلت كل الألعاب انا قلت باتفيلد 3
  9. TAPL

    [help]Gate

    He ask you about the gang script you are using, not the gang name.
  10. ON1XS is actually using php, proof: callRemote http:// IP % /AntiFake/mta/mta_PlayerList.php/:80 callRemote http:// IP * /AntiFake/mta/server_SerialSearch.php/:80 callRemote http:// IP ( /AntiFake/mta/server_NickSearch.php/:80
  11. اقول لك باتفيلد 3 مالها علاقة بستيم تقول لي ستيم؟ لووووول
  12. https://wiki.multitheftauto.com/wiki/Game_Processing_Order
  13. اعتقد ذا الي تبيه http://zazmahall.de/ZAZGTASANATORIUM/zazmoddat00100/PedEnter.htm
  14. TAPL

    Bug

    Why you have two end at line 30 and 31?
  15. ينقل الى قسم البرمجة
  16. TAPL

    Question

    https://wiki.multitheftauto.com/wiki/OnPlayerPickupHit The source of this event is the player that hit the pickup.
  17. TAPL

    PNS

    --pasMarkersT [Table removed to keep things easy] function Markers() for a,b in pairs(pasMarkersT) do PAS = createMarker(b["x"], b["y"], b["z"]-1,"cylinder",5) createBlip(b["x"], b["y"], b["z"]-1,63) addEventHandler("onMarkerHit",PAS,Logic) end end setTimer(Markers,50,1) function Logic(hitElement) if getElementType(hitElement) == "vehicle" then local player = getVehicleController(hitElement) if player and getPlayerMoney(player) >= 100 then if getElementHealth(hitElement) < 1000 then takePlayerMoney(player, 100) fixVehicle(hitElement) outputChatBox("Thank you for using pay and spray have a nice day.", player, 0, 255, 0) else outputChatBox("Get Lost!", player, 255, 0, 0) end end end end
  18. ايش هي مواصفات جهازك كامل
  19. Good to hear that. But how about ask help for yourself? Some of your posts show to me that you need help.
  20. TAPL

    Question

    Why you put this "PlayerTeam"? Also remove source from here: function Check ( source )
  21. ممكن اعرف الاخطاء الا في كودي ؟ عشان اعدلهم local marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0, 255) function e7tlal ( player ) -- ما تحققت ان الي لمس الماركر لاعب -- يعني لو لمسه سيارة راح يجي اخطاء بالدي بق local playerteam = getPlayerTeam ( player ) local tT = getElementData ( marker, "gettT") if (tT == playerteam) then -- هنا انت تتحقق ان تيم اللاعب الي دخل الماركر هو نفسه الي محتل المنطقة outputChatBox("هذه المنطقة تتبع فريق"..tT, player, 0, 255, 0, false) -- بعدين تقول له ان ذي المنطقة تتبع التيم ذا المفروض تقول الكلام ذا إذا ما كان نفس التيم -- وليس اسم تيم tT عنصر تيم else if not getPlayerTeam(player) then return end -- تيم اللاعب معرف في سطر 4 ليه تكرر الكود local team = getPlayerTeam ( player ) -- هنا نفس الشي مكرر الكود if (getTeamName( team ) == "No Team") then -- على كذا ما راح يقدر اي تيم ثاني يحتل المنطقة غير النو تيم و هو الأحتلال حق تيمات!!!! local playerteam = getPlayerTeam ( player ) -- هنا نفس الشي مكرر الكود if ( playerteam ) then if ( isTimer ( btt ) ) then return end local tT = getElementData ( marker, "gettT" ) if tT then outputChatBox("لقد جئت لمنطقة الاحتلال التابعة لـ"..tT..". انتظر دقيقتين لربح 4 الاف", player, 0, 255, 0, false) -- عنصر تيم و ليس اسم تيم tT هنا else outputChatBox("هذه المنطقة ليست ملك لأحد ,, يجب ان تنتظر دقيقتين والسيطرة على المنطقة لربح 4 الاف ", player, 0, 255, 0, false) end btt = setTimer ( function ( ) local beachTurfCplayers = getElementColShape ( marker ) local players = getElementsWithinColShape ( marker, "player" ) for _, player in ipairs ( players ) do outputChatBox("تهانينا ,, لقد ربحت 4 الاف", player, 0, 255, 0, false) -- افترض كان فيه لاعب ثاني من تيم ثاني واقف داخل الماركر؟ givePlayerMoney ( player, 4000 ) -- نفس الكلام setElementData ( marker, "gettT", playerteam ) -- ذا الكود راح يتكرر لانه داخل لووب -- playerteam مو معرف داخل فنكشن التايمر end end ,60000, 1 ) end end end end addEventHandler ( "onMarkerHit", marker, e7tlal ) شوف التعليقات داخل الكود صراحه ضحكتني بالنو تيم حاط الي يحتل بس نو تيم طيب هو احتلال تيمات كيف بيحتلون التيمات
  22. TAPL

    Question

    Use source as this event doesn't have player parameter. And getTeamName instead of getTeamFromName.
  23. TAPL

    Question

    wtf, you must replace x, y, z, rx, ry, rz with the positions. And as i said:
  24. TAPL

    Question

    Where is line 17?
  25. TAPL

    Question

    The second argument of moveObject is the time to the object to arrive.
×
×
  • Create New...