Jump to content

Tails

Members
  • Posts

    740
  • Joined

  • Days Won

    16

Everything posted by Tails

  1. Thanks, that was rather easy, however I cannot see markers inside an interior. How do I do that? Edit: I tried setting the marker using the setElementInterior command but that didn't really work.
  2. Ahh! That was really stupid from me, I put a - in front of the x coordinate. I thought it just wouldn't appear! Thanks anyway guys! Edit: Any way to make the arrow float up and down like the regular gta door arrows? Or a little tut on how to make it teleport you to an interior and back. Thanks in advance
  3. Did you see an arrow by the door? Because I can't see anything.
  4. Thanks guys. Solidsnake14, in what gamemode did you test the script? I edited my first post and put in the lua script that I use as my gamemode. I tested it in that, the blips are working but the markers are not.
  5. So this is what I have so far, a script for blips and markers for my gamemode. The blips are working fine, but I can't seem to get the markers working. Any ideas on how to fix this? Perhaps it is an issue with the gamemode I'm running, because they're no elements assigned? rootElement = getRootElement() local myMarker = createMarker(-1374.29, 1019.93, 10.8, 'arrow', 1.75, 255, 136, 255, 100) -- markers function MarkerHit( thePlayer, matchingDimension ) local elementType = getElementType( thePlayer ) outputChatBox("You hit the marker", getRootElement(), 255,0,0 ) givePlayerMoney(thePlayer, 5000) end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) -- blips function blips() createBlip(1713.02, 917.98, 10.80, 27) -- mechanic createBlip(1381.99, 1019.81, 10.82, 51) -- store end addEventHandler("onResourceStart", rootElement, blips) Server lua: local spawnX, spawnY, spawnZ = 1713.02, 917.98, 10.80 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) setPedSkin ( source, 50 ) outputChatBox("Welcome to My Server", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) -- retrieve a table with all flag elements local flagElements = getElementsByType ( "tdm" ) -- loop through them for key, value in pairs(flagElements) do -- get our info local posX = getElementData ( value, "posX" ) local posY = getElementData ( value, "posY" ) local posZ = getElementData ( value, "posZ" ) end
  6. Tails

    Help plzzz

    Thank you Jaysds1, I tested this on 800x600 and 1024x768, the text/image moved slightly to the left when I went to 1024x768. Not sure if there is anything I can do about this. Is there any way to scale the text / image size relative to the resolution or default hud (health bar, chatbox, map etc. ) Say I have an image that says Welcome, and I want it above the healthbar, on all resolutions. How do I get this? Thanks in advance. Sorry Mamo, for ''hi-jacking'' your thread, but i thought this was similar to your problem. Hope it will help you as well.
  7. Fixed it. Apparently there was a bad argument within another script in the resource. Noticed that after doing debugscript 2.
  8. Tails

    Help plzzz

    I know this happens with my script as well, regardless of using the guiGetScreenSize() command. local screenWidth,screenHeight = guiGetScreenSize() function renderDisplay ( ) dxDrawImage ( screenWidth/2 - 400, 0, 225, 17, 'ddastext.png') end function HandleTheRendering ( ) addEventHandler("onClientRender", getRootElement(), renderDisplay) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
  9. Ok, I created a little script from https://wiki.multitheftauto.com/wiki/IsE ... thinMarker I can see the marker and when i type /duty it says "You are not at the right place!". Ok, thats good. But when I am inside the marker and type /duty I still get the message: "You are not at the right place!". What's going on? Help is much appreciated! XML: <script src="script3.lua" type="server" /> Script: dutymarker = createMarker(126.56, 254.98, 78.9, 'cylinder', 2.0, 255, 0, 0, 150) function duty(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, dutymarker) then giveWeapon(thePlayer, 22, 100, 1) else outputChatBox("You are not at the right place!", thePlayer, 255, 0, 0) end end addCommandHandler("duty", duty)
  10. I found the precision thing but it's not exactly what I mean. I just need an actual grid. One that I can adjust and scale up and down. Otherwise just a simple fixed grid.
  11. What I do is I put skyscrapers in my map and rotate them 90 degrees and put them all around the entire area that I want ''fenced''. Then I use a transparant texture for the skyscrapers to make them invisible.
  12. Hi I am Tails and I've been mapping for my team server for a pretty long time, and sometimes on an online editor with a buddy. We mainly make DD (Destruction Derby) maps. So it is important that we the maps we create are symmetrical and have well alligned platforms. However all this is can be extremely time-consuming so I was wondering if anyone knows an addon that allows you to copy / duplicate multiple objects at the same time. For e.x. I made one half of the map, the other half has to be the exact same but mirrored or rotated 180 degrees. I've also been trying to find a grid (preferably scalable) for the MTA map editor. I'd highly appreciate it if someone could either make this or find one of the tools. Thanks in advance.
×
×
  • Create New...