Jump to content

ryden

Retired Staff
  • Posts

    101
  • Joined

  • Last visited

Posts posted by ryden

  1. Ese script no funcionará.

    Lo corrijo:

        function getNearestMarkerToPosition(x, y) 
            local minDistance=math.huge 
            local nearestMarker = nil 
            for index, marker in ipairs(getElementsByType("marker")) do 
                local mx, my = getElementPosition(marker) 
                local distance = getDistanceBetweenPoints2D(x, y, mx, my) 
                if (distance<minDistance) then 
                    minDistance=distance 
                    nearestMarker = marker 
                end 
            end 
            return nearestMarker 
        end 
    

  2. Is anyone able to explain why 1.2's released is considered to be 'drawing closer', when according to the roadmap it is only 11% complete? Even 1.1.2's completion is just 51%, far from complete, assuming the roadmap is accurate.

    Why is this being pushed through so quickly?

    There are plenty of important features intended for 1.2 which are still incomplete (some of which were originally intended for 1.0 and 1.1), and some issues for 1.1.x which are unresolved, according to the roadmap. This seems a bit rushed, and really doesn't appear to contain the same quantity & quality of additions as previous MTA releases did. Why not give it the development time it deserves?

    Thanks for pointing that out. We will reduce the roadmap requirements ASAP.

  3. I would do it the GTA:IV way: Long G press: jacking, Short G press: finding the first available seat.

    Additionally, I would create another control that is a bind to a long G press so it can be activated by the scripts as well, such as enter_passenger_jacking.

  4.   
    color = {0, 0, 0} -- Debería ser negro. 
    Root = getRootElement() 
      
    function onPlayerConnect() 
        outputChatBox("* "..getPlayerName(source).." ha entrado al servidor.", Root, unpack(color)) 
    end 
      
    addEventHandler("onPlayerJoin", Root, onPlayerConnect) 
      
    

    También puedes hacerte una función que actúe como biblioteca de colores:

      
    function color(nombre) 
      if not colores then 
        colores = {} 
        colores["negro"] = { 0, 0, 0 } 
        colores["blanco"] = { 255, 255, 255 } 
        colores["rojo"] = { 255, 0, 0 } 
        colores["error"] = colores["rojo"] 
      end 
      if not colores[nombre] then return 0, 0, 0 end 
      return unpack(colores[nombre]) 
    end 
      
    Root = getRootElement() 
      
    function onPlayerConnect() 
        outputChatBox("* "..getPlayerName(source).." ha entrado al servidor.", Root, color("negro")) 
    end 
      
    addEventHandler("onPlayerJoin", Root, onPlayerConnect) 
      
    

  5. There won't be support to directly edit .dat files, but ther could be interfacing functions instead- For example, right now you can also modify the handling, but you don't modify it through the .dat file, but through the handling functions.

×
×
  • Create New...