Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. عشان تحط فيه اللاعبين الي كتبو متاهه لما تبدأ المتاهه تنقل كل اللاعبين الي بالتيبل لما تنتهي المتاهه تنقل كل اللاعبين الي بالتيبل إلى خارج المتاهه
  2. تخفف مساحة الكود؟؟ اخذت كودي و سويته هريسه ما ينقرأ + خطأ بعد
  3. You're welcome.
  4. local screenW, screenH = guiGetScreenSize() showLogo = guiCreateStaticImage(0, 0, screenW, screenH, "images/logoscreen.png", false)
  5. Yes there is class type for each GUI type. https://wiki.multitheftauto.com/wiki/GUI_widgets You need to create a table and insert the class of all GUI types and loop the table and use getElementsByType (loop inside loop).
  6. outputChatBox setTimer createMarker Event: 'onPlayerChat' table table.insert Event: 'onMarkerHit' givePlayerMoney setElementPosition
  7. marker = createMarker(...) addEventHandler("onClientPlayerDamage", localPlayer, function(attacker) if attacker and attacker ~= source then if isElementWithinMarker(source, marker) then if getElementModel(attacker) == getElementModel(source) then cancelEvent() end end end end)
  8. إذا تقصد إذا كان فيه اثنين نفس الشخصية و ثالث شخصيتة غير الثلاثة يقدرون يقتلون بعض Event: 'onClientPlayerDamage' createMarker getElementColShape getElementsWithinColShape getElementModel cancelEvent أما إذا تقصد إذا فيه اثنين نفس الشخصية ما يقدرون يقتلون بعض بس يقتلون الي شخصيتة غير Event: 'onClientPlayerDamage' createMarker isElementWithinMarker getElementModel cancelEvent
  9. I can't see anything wrong other than these lines: if you set bool 'false' it will change it for you to nil and you will have problem with functions that need bool, you don't need these lines because it will be nil by default. if not c then c = nil end if not d then d = nil end if not e then e = nil end if not f then f = nil end if not g then g = nil end if not h then h = nil end Edit: This function should do what you want. getTimers
  10. tTimer = {} function grovestSlider(player) source = source or player triggerClientEvent(source, "mess1", source) setCameraMatrix(source, 2463.8823242188, -1659.6778564453, 24.041973114014, 2547.9951171875, -1688.5211181641, -21.708633422852) fadeCamera(source, true, 1.5) tTimer[source] = setTimer(hosptSlider, 9500, 1, source) setTimer(fadeCamera, 8000, 1, source, false, 1.5) setTimer(fadeCamera, 9500, 1, source, true, 1.5) end addEventHandler("onPlayerJoin", root, grovestSlider) function onLoginEvent() if isTimer(tTimer[source]) then killTimer(tTimer[source]) end tTimer[source] = nil setCameraTarget(source) fadeCamera(source, false, 1.0) setTimer(fadeCamera, 1500, 1, source, true, 1.0) end addEventHandler("onPlayerLogin", root, onLoginEvent) function hosptSlider(player) triggerClientEvent(player, "mess2", player) setCameraMatrix(player, 2014.4888916016, -1435.1318359375, 30.302476882935, 2066.4152832031, -1361.5522460938, -13.168096542358) tTimer[player] = nil tTimer[player] = setTimer(gleenpkSlider, 9500, 1, player) setTimer(fadeCamera, 8000, 1, player, false, 1.5) setTimer(fadeCamera, 9500, 1, player, true, 1.5) end function gleenpkSlider(player) triggerClientEvent(player, "mess3", player) setCameraMatrix(player, 2021.8934326172, -1172.9503173828, 59.716133117676, 1961.3312988281, -1213.3442382813, -8.8444747924805) tTimer[player] = nil tTimer[player] = setTimer(airportSlider, 9500, 1, player) setTimer(fadeCamera, 8000, 1, player, false, 1.5) setTimer(fadeCamera, 9500, 1, player, true, 1.5) end function airportSlider(player) triggerClientEvent(player, "mess4", player) setCameraMatrix(player, 1818.1273193359, -2406.4016113281, 105.4114074707, 1812.4464111328, -2485.5925292969, 44.612342834473) tTimer[player] = nil tTimer[player] = setTimer(lspdSlider, 9500, 1, player) setTimer(fadeCamera, 8000, 1, player, false, 1.5) setTimer(fadeCamera, 9500, 1, player, true, 1.5) end function lspdSlider(player) triggerClientEvent(player, "mess5", player) setCameraMatrix(player, 1493.1473388672, -1675.30078125, 42.586067199707, 1590.6865234375, -1672.4597167969, 20.722238540649) tTimer[player] = nil tTimer[player] = setTimer(grovestSlider, 9500, 1, player) setTimer(fadeCamera, 8000, 1, player, false, 1.5) setTimer(fadeCamera, 9500, 1, player, true, 1.5) end
  11. Make your own ban system.
  12. -- Server Side -- function commitSuicide(player) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then killPed(root) end end addCommandHandler("kill", commitSuicide)
  13. TAPL

    Script-Base

    You're welcome.
  14. TAPL

    draw FPS

    Search is a nice feature. https://forum.multitheftauto.com/viewtopic.php?f=91&t=62872&p=598558&hilit=fps#p598558
  15. getElementsByType guiGetVisible
  16. https://wiki.multitheftauto.com/wiki/SmoothMoveCamera
  17. TAPL

    VIP System

    It should show, unless your account name wasn't Anon. And by the way, remove line 30 client side so you don't have the cursor for everyone when the resource start.
  18. TAPL

    Script-Base

    addCommandHandler("buy", function(player) local gangName = exports.gang_system:getPlayerGang(player) if gangName then local money = getPlayerMoney(player) if (money >= 1000000) then takePlayerMoney(player, 1000000) local color = exports.gang_system:getGangColor(gangName) setRadarAreaColor(radararea, color[1], color[2], color[2], 255) outputChatBox("#FFF000[bASE] #00FFFFYour gang buyed a base #00FF00 Area #FFF000 51", player, 0, 0, 0, true) end end end)
  19. ped شخصية؟ اعتقد انه يقصد و ثابتة اعتقد يقصد ما تتحرك من مكانها ped = createPed(skin, x, y, z) setElementFrozen(ped, true) addEventHandler("onClientPedDamage", ped, function() cancelEvent() end)
  20. createMarker -- صنع ماركر getElementType -- التحقق من ان الي دخل الماركر سيارة getVehicleController -- تجيب اللاعب الي يسوق السيارة getElementData -- تتأكد من قروب اللاعب getElementModel -- تتأكد ان السيارة سلطان addVehicleUpgrade -- ركب نيترو او جنوط او اي شي setVehiclePaintjob -- تركب وشم Event: "onMarkerHit"
  21. TAPL

    VIP System

    GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(126, 0, 1115, 307, "Backup Server V.I.P System", false) guiSetVisible(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(25, 40, 293, 109, "Spawn Seasparrow", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(410, 40, 293, 109, "Spawn Patriot", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(25, 40, 293, 109, "Give Rockets", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(25, 185, 293, 109, "Use V.I.P Skin", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(410, 185, 293, 109, "Teleport to Luxury Area", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(796, 40, 293, 109, "Fill Health", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(796, 185, 293, 109, "Fill Armour", false, GUIEditor.window[1]) showCursor (true) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Seasparrow",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("Patriot",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("Rockets",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("Skin", getLocalPlayer()) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent("Teleport",getLocalPlayer()) elseif ( source == GUIEditor.button[7] ) then triggerServerEvent("Health",getLocalPlayer()) elseif ( source == GUIEditor.button[8] ) then triggerServerEvent("Armor",getLocalPlayer()) end end ) function show() if (getElementData(localPlayer, "VIP") == true) then if guiGetVisible(GUIEditor.window[1]) == true then guiSetVisible(GUIEditor.window[1], false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor.window[1], true) showCursor(true) guiSetInputEnabled(true) end end end addCommandHandler("vipGUI", show) bindKey("F7", "down", show)
  22. TAPL

    Script-Base

    Need to be repeated?
  23. TAPL

    Car locking

    Was that on the local server?
  24. TAPL

    Script-Base

    This depend on the gang system you have.
  25. TAPL

    getElementData

    You're welcome.
×
×
  • Create New...