-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
Read client side syntax. https://wiki.multitheftauto.com/wiki/OutputChatBox
-
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
-
https://wiki.multitheftauto.com/wiki/SetVehicleLightState
-
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
-
غلط الصح if not تعلم أيش تعني العلامات == ~= < > <= >= وبعدين تعال http://lua.gts-stolberg.de/en/VergleichsOP.php
-
MyAccountName = "اسم حسابك هنا" MySerial = "سيريالك هنا" addEventHandler("onPlayerLogin", root, function(_,acc) if getAccountName(acc) == MyAccountName and getPlayerSerial(source) ~= MySerial then banPlayer(source, false, false, true, root, "سبب الباند هنا") end end) و تأكد من أضافة المود بقروب أدمن
-
Simple, change the event onMarkerHit to onClientMarkerHit.
-
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)
-
https://wiki.multitheftauto.com/wiki/SetElementDimension
-
-- Client Side -- guiSetText(labelIP2, getElementData(localPlayer, "IP")) -- Server Side -- addEventHandler("onPlayerJoin", root, function() setElementData(source, "IP", getPlayerIP(source)) end)
-
أضن تقصد بتحط ماركر بالسيارة https://wiki.multitheftauto.com/wiki/AttachElements
-
ما فهمت ايش دخل الشنطة في اللمبات
-
تبي تعرف أحداثيات مكان معين؟ أفتح الأدمنية و خذ الاحداثيات أو أستخدم الكود ذا getElementPosition
-
مشكلة في سيرفري ديلوكس |عناد او اي واحد خبير بالاستضافة يدخل
TAPL replied to Quited's topic in الاستضافات
-
https://wiki.multitheftauto.com/wiki/AddVehicleUpgrade
-
أحداثيات الزنن؟ احداثيات التيربو؟ البراقات = ؟؟ ذولا لهم أحداثيات؟
-
أعدادات الأف بي أس الأصلية للسيرفر 36 mtaserver.conf تقدر تغير الأف بي اس عن طريق ملف أو بكود https://wiki.multitheftauto.com/wiki/SetFPSLimit
-
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.
-
https://wiki.multitheftauto.com/wiki/SetPlayerWantedLevel https://wiki.multitheftauto.com/wiki/GetPlayerWantedLevel
-
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)
-
مافهمت ذي النقطة دخلو الماركر ثلاثة و الرابع راح يجيه الحدث و أنت تبيه كلهم ~_~ كيف تجي ياليت توضح ايش الي تبيه تسويه بالضبط
-
if getElementType ( nearbyZombies ) == "ped" then
-
Use getElementType instead of isElement.
