Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    Skin

    local marker = createMarker(123,456,789,"cylinder",1.5,255,255,255,255) -- 1.5 is the size you can change it
  2. huh? i tested the code and it work.
  3. ذا شكلو ماب ريس قديم أو شي زي كذا فيه ماب ريس قديم من 2008 نفس طريقة الماب ذا https://community.multitheftauto.com/ind ... ils&id=160 جرب الميتا type="map" gamemodes="race" name="DrA" author="none" description="none" version="1.0"/> "DrA eXo Pro Race2.BETA3.map"/> أتوقع ما يضبط بس جرب
  4. https://wiki.multitheftauto.com/wiki/CreateMarker https://wiki.multitheftauto.com/wiki/AttachElements https://wiki.multitheftauto.com/wiki/GuiCreateButton https://wiki.multitheftauto.com/wiki/OnClientGUIClick https://wiki.multitheftauto.com/wiki/SetElementVisibleTo
  5. TAPL

    Occupation

    Not sure if this what you want. function pQuit() local account = getPlayerAccount(source) if (account) and not isGuestAccount(account) then setAccountData(account,"job",getElementData(source, "Occupation")) end end addEventHandler("onPlayerQuit", root, pQuit) function onPlayerLogin(_,acc) setElementData(source, "Occupation",getAccountData(acc, "job")) end addEventHandler("onPlayerLogin", root, onPlayerLogin)
  6. local marker = createMarker(1262.7073974609, -1643.3990478516, 13, 'cylinder', 2, 255, 255, 255, 255) GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} local x,y = guiGetScreenSize() windowjob = guiCreateWindow(x/2-150,y/2-199,301,397,"SWAT job",false) guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(22,352,108,35,"Take job",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,windowjob) GUIEditor_Button[2] = guiCreateButton(179,352,110,36,"Cancel",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(19,33,273,215,"To take SWAT team job, press Take job.\n\nIf you don't want to, press Cancel.",false,windowjob) function swatjob(hitElement) if (hitElement == localPlayer) then if (getElementData(hitElement, "gang") == "SWAT Team") then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end end addEventHandler("onClientMarkerHit", marker, swatjob) function swatjobleave(leaveElement) if getElementType(leaveElement) == "player" then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, swatjobleave) function joinTeam() triggerServerEvent("setswat",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[1] , joinTeam, false) function removeswatWindow() guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removeswatWindow, false)
  7. impossible, show your full code, include the gui
  8. try local marker = createMarker(1262.7073974609, -1643.3990478516, 13, 'cylinder', 2, 255, 255, 255, 255) function swatjob(hitElement) if (hitElement == localPlayer) then if (getElementData(hitElement, "gang") == "SWAT Team") then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end end addEventHandler("onClientMarkerHit", marker, swatjob)
  9. fixed and don't worked? ~_~ are you sure from the element data key? i mean this "Gang Name" anyway where is your marker code? did you check /debugscript 3? no error?
  10. you forgot one 'end' function swatjob(hitElement) if (hitElement == localPlayer) then if ( getElementData ( hitElement, "Gang Name" ) == "SWAT Team" ) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end end addEventHandler("onClientMarkerHit", marker, swatjob)
  11. TAPL

    Occupation

    Your code is mess Explain what you want to do, and please show your full code.
  12. meta.xml type="map"> "NameHere.map" dimension="0">
  13. good story pro. MOJRM-511 were banned by Ransom.
  14. dude put it in lua tag.
  15. i talked to the hosting and he gone to fix ( reinstall bug + backups ) and Refresh all servers ! 2 days ago i still can download others server backup so not fixed yet.
  16. https://community.multitheftauto.com
  17. he is not running ! and i will delete it ! there are other resource for http ajax, elementbrowser, performancebrowser, resourcebrowser, resourcemanager, webmap, webstats anyway they still can get backup from your server and login admin accounts disable http won't fix the problem.
  18. that because you're using bad host, anyone can get backup from your server (happen with me already) you should stop these script uses HTTP, like webadmin.
  19. 1000 and i think you can lunch more than 2 servers 1000 slots in a low-end 512MB VPS? I don't think so. The burstable RAM is 1.5GB so he won't have problem with RAM he might get problem with the bandwidth (750 GB), because he running maybe 20 - 25 custom cars? about the slots, he can make it 4096 it's won't be problem, since he already will never get this number of players.
  20. Description: for delete. https://community.multitheftauto.com/ind ... ls&id=4822 Description: DELETE. Note: it's already reported before by Lonely4, but it still not removed you maybe forgot it.. https://community.multitheftauto.com/ind ... ls&id=2425 DONE
  21. خخخ أقول لك مأثر فيك الصيام و حتى ذا function hit(player) if Marker then setElementPosition(player, 388.8180847168, 174.71000671387, 1008.3828125) setElementInterior(player, 3) elseif Marker2 then setElementPosition(player, 500, 100, 100) setElementInterior(player, 1) elseif Marker3 then setElementPosition(player, 123, 321, 4) setElementInterior(player, 2) end end لازم يكون كذا function hit(player) if source == Marker then setElementPosition(player, 388.8180847168, 174.71000671387, 1008.3828125) setElementInterior(player, 3) elseif source == Marker2 then setElementPosition(player, 500, 100, 100) setElementInterior(player, 1) elseif source == Marker3 then setElementPosition(player, 123, 321, 4) setElementInterior(player, 2) end end
  22. [2012-07-27 13:41:04] WARNING: xxx\client.lua:11: Bad argument @ 'addEventHandler' [Expected element at argument 2, got function]
  23. وهو عنصر مطلوب في الأفنت attachedTo كذا ما راح يشتغل لانك حذفت راجع الويكي https://wiki.multitheftauto.com/wiki/AddEventHandler شكله الصيام مأثر عليك
  24. local Marker = createMarker(2170.9543457031, 1691.0249023438, 10.812545776367, "cylinder", 3, 255, 0, 0, 255) function hit(player) setElementPosition(player, 388.8180847168, 174.71000671387, 1008.3828125) setElementInterior(player, 3) end addEventHandler("onClientMarkerHit",Marker,hit)
  25. بالأساس مسوينه كلينت ليه؟ -- Server Side -- local mrkCol = createPickup(-1987.078125, 2559.7041015625, 55.283496856689, 3, 1550, 30000) function hiting(player) destroyElement(mrkCol) givePlayerMoney(player,3000) end addEventHandler("onPickupHit", mrkCol, hiting)
×
×
  • Create New...