Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    Needed help

    Read client side syntax. https://wiki.multitheftauto.com/wiki/OutputChatBox
  2. TAPL

    Needed help

    function getPlayerCountInMarker(theMarker) i = 0 for _, player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player, theMarker) then i = i + 1 end end return i end TrollsTeam = getTeamFromName("Trolls") function markerFinnishingIMPORTANT() if getPlayerTeam(localPlayer) == TrollsTeam then local markerFinnishing = createMarker(226, -1812, 5, "cylinder", 10, 125, 125, 0, 100) createBlipAttachedTo(markerFinnishing, 23, 3, 255, 255, 255, 255, 0, 9999 ) addEventHandler('onClientMarkerHit', markerFinnishing, function(player) if getPlayerTeam(player) == TrollsTeam and player == localPlayer then local playersInMarker = getPlayerCountInMarker(markerFinnishing) local playersInTeam = countPlayersInTeam(TrollsTeam) if (playersInMarker == playersInTeam) then outputChatBox('#FF0000INFO: #FFFFFFWait 5 minutes before you will be taken', 255, 255, 255, true) else outputChatBox('#FF0000INFO: #FFFFFFYou need to wait for the team mates.', 255, 255, 255, true) end end end) end end
  3. https://wiki.multitheftauto.com/wiki/SetVehicleLightState
  4. TAPL

    Needed help

    function getPlayerCountInMarker(theMarker) i = 0 for _, player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player, theMarker) then i = i + 1 end end return i end TrollsTeam = getTeamFromName("Trolls") function markerFinnishingIMPORTANT() if getPlayerTeam(localPlayer) == TrollsTeam then local markerFinnishing = createMarker(226, -1812, 5, "cylinder", 10, 125, 125, 0, 100) createBlipAttachedTo(markerFinnishing, 23, 3, 255, 255, 255, 255, 0, 9999 ) addEventHandler('onClientMarkerHit', markerFinnishing, function(player) if getPlayerTeam(player) == TrollsTeam and player == localPlayer then local playersInMarker = getPlayersInMarker(markerFinnishing) local playersInTeam = countPlayersInTeam(TrollsTeam) if (#playersInMarker == playersInTeam) then outputChatBox('#FF0000INFO: #FFFFFFWait 5 minutes before you will be taken', 255, 255, 255, true) else outputChatBox('#FF0000INFO: #FFFFFFYou need to wait for the team mates.', 255, 255, 255, true) end end end) end end
  5. غلط الصح if not تعلم أيش تعني العلامات == ~= < > <= >= وبعدين تعال http://lua.gts-stolberg.de/en/VergleichsOP.php
  6. MyAccountName = "اسم حسابك هنا" MySerial = "سيريالك هنا" addEventHandler("onPlayerLogin", root, function(_,acc) if getAccountName(acc) == MyAccountName and getPlayerSerial(source) ~= MySerial then banPlayer(source, false, false, true, root, "سبب الباند هنا") end end) و تأكد من أضافة المود بقروب أدمن
  7. TAPL

    Needed help

    Simple, change the event onMarkerHit to onClientMarkerHit.
  8. TAPL

    Needed help

    function getPlayerContInMarker(theMarker) i = 0 for _, player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player, theMarker) then i = i + 1 end end return i end addEventHandler("onMarkerHit", theMarker, function() local playersInMarker = getPlayerContInMarker(theMarker) local playersInTeam = countPlayersInTeam(getTeamFromName("> Team Name <")) if (playersInMarker == playersInTeam) then -- do whatever you want end end)
  9. https://wiki.multitheftauto.com/wiki/CreateExplosion
  10. https://wiki.multitheftauto.com/wiki/SetElementDimension
  11. -- Client Side -- guiSetText(labelIP2, getElementData(localPlayer, "IP")) -- Server Side -- addEventHandler("onPlayerJoin", root, function() setElementData(source, "IP", getPlayerIP(source)) end)
  12. أضن تقصد بتحط ماركر بالسيارة https://wiki.multitheftauto.com/wiki/AttachElements
  13. ما فهمت ايش دخل الشنطة في اللمبات
  14. تبي تعرف أحداثيات مكان معين؟ أفتح الأدمنية و خذ الاحداثيات أو أستخدم الكود ذا getElementPosition
  15. أنت أيش تبي تسوي بالضبط؟
  16. https://wiki.multitheftauto.com/wiki/AddVehicleUpgrade
  17. أحداثيات الزنن؟ احداثيات التيربو؟ البراقات = ؟؟ ذولا لهم أحداثيات؟
  18. أعدادات الأف بي أس الأصلية للسيرفر 36 mtaserver.conf تقدر تغير الأف بي اس عن طريق ملف أو بكود https://wiki.multitheftauto.com/wiki/SetFPSLimit
  19. TAPL

    plzhelp

    This is just an example of usage for these function, you can do whatever you want with them. if you want it for when kill player or when player get damage you have to use these event onPlayerWasted and onPlayerDamage.
  20. TAPL

    plzhelp

    https://wiki.multitheftauto.com/wiki/SetPlayerWantedLevel https://wiki.multitheftauto.com/wiki/GetPlayerWantedLevel
  21. TAPL

    .....

    function getPlayersInMarker(theMarker) i = {} for _, player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player, theMarker) then table.insert(i, player) end end return i end addEventHandler("onMarkerHit", marker, function() local playersInMarker = getPlayersInMarker(marker) if (#playersInMarker => 4)then for _, player in ipairs(playersInMarker) do --حدث end end end)
  22. TAPL

    .....

    مافهمت ذي النقطة دخلو الماركر ثلاثة و الرابع راح يجيه الحدث و أنت تبيه كلهم ~_~ كيف تجي ياليت توضح ايش الي تبيه تسويه بالضبط
  23. TAPL

    setElementHealth

    if getElementType ( nearbyZombies ) == "ped" then
  24. TAPL

    setElementHealth

    Use getElementType instead of isElement.
×
×
  • Create New...