Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. ok, Where's the police gate? in LS? SF? LV?
  2. Depends what the save resource have in it, if it's dealing with the same thing what the team function has then we could combine them both.
  3. Does your server have a login system? Try This: function open(hitPlayer, matchingDimension) local acc = getAccountName(getPlayerAccount(hitPlayer)) if hitPlayer then if isObjectInACLGroup("user." .. acc, aclGetGroup("Admin")) then moveObject(lift, 2500, -1851, -3112.1000976563, 38.900001525879) end end end addEventHandler("onColShapeHit", col, open) function close(player) local acc = getAccountName(getPlayerAccount(hitPlayer)) if getElementType(player) == "player" then if isObjectInACLGroup("user." .. acc, aclGetGroup("Admin")) then moveObject (lift, 2500, -1851, -3112.1000976563, 51.700000762939) end end end addEventHandler("onColShapeLeave", col, close) addEventHandler("onPlayerLogin",getRootElement(), function() bindKey(source, ",", "down", open) bindKey(source, "/", "down", close) end)
  4. I would recommend using the rectangle col shape: https://wiki.multitheftauto.com/wiki/CreateColRectangle
  5. Where's the colshape? You cant make a colshapehit event if there's no colshape.
  6. try this: function open(hitPlayer, matchingDimension) local acc = getAccountName(getPlayerAccount(hitPlayer)) if hitPlayer then if isObjectInACLGroup("user." .. acc, aclGetGroup("Admin")) then moveObject(lift, 2500, -1851, -3112.1000976563, 38.900001525879) end end end addEventHandler("onColShapeHit", col, open) function close(player) local acc = getAccountName(getPlayerAccount(hitPlayer)) if getElementType(player) == "player" then if isObjectInACLGroup("user." .. acc, aclGetGroup("Admin")) then moveObject (lift, 2500, -1851, -3112.1000976563, 51.700000762939) end end end addEventHandler("onColShapeLeave", col, close) addEventHandler("onPlayerJoin",getRootElement(), function() bindKey(source, ",", "down", open) bindKey(source, "/", "down", close) end)
  7. You could try that what Towncivilian posted or uninstall 1.0.5 then try downloading Mta 1.1
  8. you could have edited the post and just separate them by putting in the log names...
  9. There's suppose to be 1 more, type in "openports" in the console
  10. Depends what's your upload speed and see if your ports are open
  11. It happens to me to, but it's already reported to the bug tracker, I'm not sure if there's anything to stop this...
  12. Are you talking about when you join or login? This would only work if you logged in, because it save the player team in the databaase, but if the player join and just goes on any team, then there's no way that it could be saved that the person was every on that team.
  13. Actually, try this: Server-side addEvent("StartKnop", true) addEventHandler("StartKnop", root, function() evmarkerred = createMarker ( 1547.88953, -1683, 12.5, 'cylinder', 2, 255, 0, 0, 255 ) evmarkerblue = createMarker ( 1547.88953, -1686, 12.5, 'cylinder', 2, 0, 0, 255, 255 ) addEventHandler("onMarkerHit", evmarkerred, function( hitElement ) if (getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement )) then setElementPosition ( hitElement,2838.6000976563, -2527.6999511719, 19 ) giveWeapon ( hitElement, 41, 100000 ) end end) addEventHandler("onMarkerHit", evmarkerblue, function( hitElement ) if (getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement )) then setElementPosition ( hitElement,2837.6999511719, -2333, 12 ) giveWeapon ( hitElement, 41, 100000 ) end end) end)
  14. I have a question, What's in the txd file? Is the image suppose to be in there?
  15. I wasn't shore if he had another trigger event handler but, ok, thanks
  16. I know this script is going to be hard but the best way is to get the screen size and make if...elseif statements, but between all those, you have to change the size
  17. So, we pay $5 monthly or each day? because the price looks to reasonable. is this a legit hosting service? and what's the US computer processor?
  18. you should make it a private file then, when creating a file, put @ in front of it and when you open a private file, put @ in front of it. i got this from here: https://wiki.multitheftauto.com/wiki/Filepath
  19. ok, First you have to make a client-side script: addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() local filename = "txdfile.txd" local objectid = OBJECTID txd = engineLoadTXD ( filename ) engineImportTXD ( txd, objectid ) end) then make a .txd file and import the image in there I got this from here: https://forum.multitheftauto.com/viewtopic.php?f=91&t=36920
  20. try this: Client-Side localplayer = getLocalPlayer() local EvMarker = createMarker ( 1547.88953, -1681.53955, 12.5, 'arrow', 2, 255, 0, 0, 255 ) function createEvGui() EvGui = guiCreateWindow(333,326,185,220,"SARG Event panel 0.1",false) EvTabPanel= guiCreateTabPanel(10,20,166,191,false,EveGui) EvTab = guiCreateTab("Rules",EvTabPan) EvMemo = guiCreateMemo(6,4,155,182,"The rules of the event: There are 2 teams, armed with spray, the goal is to eliminate the enemy team with the spray, admins can stop the event by typing: /stop ()Events",false,EvTab) guiMemoSetReadOnly(EvMemo,true) EvTab2 = guiCreateTab("START!",EvTabPanel) Start = guiCreateButton(23,33,129,64,"START EVENT",false,EvTab2) guiSetVisible(EvGui,false) end addEventHandler("onClientMarkerHit", getRootElement(), function(hitElement) if (hitElement == localPlayer) then if (dutyMarker) then createEvGui() if (EvGui ~= nil) then guiSetVisible(EvGui, true) showCursor(true) guiSetInputEnabled(true) else outputChatBox ("The event is not ready yet.") end end end end) addEventHandler("onClientGuiClick", root, function(button,state) if (source == Start) then triggerServerEvent("StartKnop",getLocalPlayer()) end end) Server-side: addEvent("StartKnop", true) addEventHandler("StartKnop", root, function() evmarkerred = createMarker ( 1547.88953, -1683, 12.5, 'cylinder', 2, 255, 0, 0, 255 ) evmarkerblue = createMarker ( 1547.88953, -1686, 12.5, 'cylinder', 2, 0, 0, 255, 255 ) end) addEventHandler("onMarkerHit", evmarkerred, function( hitElement ) if (getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement )) then setElementPosition ( hitElement,2838.6000976563, -2527.6999511719, 19 ) giveWeapon ( hitElement, 41, 100000 ) end end) addEventHandler("onMarkerHit", evmarkerblue, function( hitElement ) if (getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement )) then setElementPosition ( hitElement,2837.6999511719, -2333, 12 ) giveWeapon ( hitElement, 41, 100000 ) end end)
  21. So, when the gui pops up, and the player presses the button "Start", you want to close the gui and create 2 markers?
  22. ok, Do you mean on the streets or on the actual map, like a blip?
×
×
  • Create New...