Jump to content

kashtesov

Members
  • Posts

    338
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by kashtesov

  1. LWp8i9j1ZGk.jpg

    What about more smoothly positions? :D

    local x, y = getElementPosition(getRandomPlayer());
    
    for _i = 1, 300 do 
      local i = _i / 10;
      
      local z = getGroundPosition(x + i, y);		
      createObject(1337, x + i, y, z); 
    
      local z = getGroundPosition(x - i, y);		
      createObject(1337, x - i, y, z); 
    
      local z = getGroundPosition(x, y + i);		
      createObject(1337, x, y + i, z); 
    
      local z = getGroundPosition(x, y - i);		
      createObject(1337, x, y - i, z); 
    end

     

    • Like 1
  2. Just now, IIYAMA said:

    Hmm interesting.

    Not so long ago I did the same. Scanning the whole GTA san map 2 units x 2 units and saving all points in to a db. All though my file was a lot bigger, containing not just the x, y, z.

    Here scanning 1x1 units, and in my way dont need save X,Y positions.

    • Like 1
  3. On 11/14/2019 at 11:24 PM, MIKI785 said:

    You can replace any texture with shaders and you are not limited by IDs here. That applies to all elements, not only vehicles. But yeah, models are limited.

    Topic author wrote about adding skins/vehicles/objects. Not about replacement textures ?.

  4. Hello. Finded a problem after updating MTA. On builds 18390 and 18409 i can't join to my servers, just a got crash. Previouslies builds works correct.

    • 18409 CRASH
    • 18390 CRASH
    • 18332 OK
    • 18331 OK
    • 18317 OK
    • 18310 OK
    • 16921 OK
    • 16720 OK
    • 16628 OK

    It not only my problem, already have 5 players with with same issue. On https://buildinfo.mtasa.com/index.php i find nothing what can show scripts problems.

    MTADiag i think here is useless, because old versions works normal.

    So i write here, and tag @ccw (sorry) because i think only he can help with that.

    If need server adress for test: 68.168.210.78:22003

     

  5. А ещё лучше не говнокодить с "if" и "elseif" там где этого не надо, и не вешать событие на root.

    local atmGUIMain = guiCreateStaticImage(0, 0, screenx, screeny, "atm.png", false);
    local exitGUIbtn = guiCreateStaticImage(screenx/1.1955, screeny/1.367, screenx/20.5, screeny/17, "button.png", false, atmGUIMain);
    
    guiSetVisible(atmGUIMain, false);
    
    bindKey("your key", "down", 
    	function()
    		local newVisibleState = not guiGetVisible(atmGUIMain);
    		
    		guiSetVisible(atmGUIMain, newVisibleState);
    		showCursor(newVisibleState);
    	end);
    
    addEventHandler("onClientGUIClick", exitGUIbtn, false,
    	function()
    		guiSetVisible(source, false);
    		showCursor(false);
    	end);

     

  6. 47 minutes ago, nikitafloy said:

    Что значит "элемент этого оружия"?

    То и значит.

     

    16 hours ago, MayQuick said:

    Возможно-ли как-то перехватить элемент стандартного обьекта оружия?

    Подробнее:

    При выдачи оружия персонажу в руки (giveWeapon) нужно получить элемент этого оружия. Возможно-ли это?

    Была костыльная попытка через processLineOfSight, но т.к. коллизии у этого обьекта нет, то он игнорируется.

    Увы и ах, @MayQuick, но нет.

  7. local attachedTrailers = bus:getData("attachedTrailers") or {};
    bus:attachTrailer(trailer1);
    table.insert(attachedTrailers, trailer1);
    bus:setData("attachedTrailers", attachedTrailers, {}, false);
    
    ...
    
    или сразу
    
    bus:attachTrailer(trailer1);
    bus:setData("attachedTrailers", attachedTrailers, {trailer1}, false);
    
    ...
    
    на удаление
    
    if vehs[source] and isElement(vehs[source]) then
      local attachedTrailers = bus:getData("attachedTrailers") or {};
      for _, trailer in ipairs(attachedTrailers) do
        if (isElement(trailer)) then
        	trailer:destroy();
        end
      end
      vehs[source]:destroy();
    end

     

    Ну как вариант, сварганить что-то подобное.

    • Like 1
    • Confused 1
  8. Ok, gg. I have one useful suggest, for owners few servers.

    Example, i have 3 servers (Foo, Bar, Biz) with email "[email protected]" in config.

    I add server "Bar" to queue, and after few weeks i get E-Mail notify "Your position reserved. It nice, i can pay and get promote for "Bar". But if i wanna change server to "Biz", then i should again wait few weeks. 

    @ccw , can we get function for buy promote, for any server with same E-Mail? Because i have 10 servers now, and if when should wait few weeks for buy that - my priorities can be changed. But after weeks i not wanna lost my position in queue. 

  9. Quote

    "There are 41 servers in the waiting list "

    It's a madness, and it mean what i can get promote only in February, lol. 

    Old system queue (who faster) better, because all who need - trying get this place, not a "write e-mail and wait notify". If 20 owners from all this queue not will pay - normal and stable purchasers lost 20 days, and mta team lost 150+ EUR. Promote servers - it a perfect way for support developers, because if i not wanna get "nothing", i can get promote in server list.

    This method better than pay to stupid youtubers and wait theys stupid subscribers. Because i wanna support developers, and it 100% guarantee get new players. But now promote system can die, because after 1-2 months this queue can be 100+. And who will wait 3 months for pay it, for get promote 14 days, of which only 7 days have effect? It just a absurdly.

    It my opinion, and i hope it not will be an empty phrase, because i buy promote's from july 2016 and not wanna stop that.

  10. Hello. We with friends play on "test" server, and have BSOD error so often times, when we reconnect.

    It happens ONLY when we reconnect, and we started to notice it only today. I dont know it gamemode error or MTA, but anyway - BSOD error not should be... BSOD write about file "fairplaykd.sys", and we absolutely dont know what can be a reason. I play MTA ~7 years, and never saw that error or something like a it.

    Offers "Reinstall GTA" or "Reinstall MTA" will be a useless, because it happened not only with me, and not helps.

    MTA Diag my log, and my friend:

    https://upload.mtasa.com/u/233246616/MTADiag-Log-2017-12-2_3-21-24.txt_
    https://upload.mtasa.com/u/629191723/MTADiag-Log-2017-12-2_11-18-36.txt_

    P.S. It not a Polish server, like a in this topic, lol: 

     

    • Like 2
  11. 1 minute ago, ccw said:

    I did some tests and everything is working correctly now.

    However, if the MTA client has a problem with the external HTTP server (e.g. unreachable, or files not correct) then it will switch to the internal HTTP as a backup.

    I can't disable download files from internal server, but leave enabled http server for access to webadmin, right? D:

  12. Hi, have problem. I setting "httpdownloadurl" for downloading files, and it work, but not every time.

    If see in performance browser, you can see it. All work good, but sometimes "Sent http" started increased, why? How i can fix it, because me need use all VPS network channel only for game, not for files. 

    External http server not crashed, it work.

    unknown.png  unknown.png

    • Like 1
  13. Oi pessoal!
    Me há muito tempo à procura de um bom não é caro VPS hospedagem em Brazil (ou América do Sul):
    3+ GHz, 2-4 Cores, 2 GB RAM, Open VZ. 

    Eu não poderia encontrar boas opções, única uno http://host1plus.com, mas ele tem uma velocidade muito ruim - para VPS. Velocidade média de download - 80-100 Mbyte/s, envio - 10-20 Mbyte/s (Tariff 48$, lol).

    Você pode me ajudar e oferecer boas opções?

    6167179911.png6165320925.png

    Desculpe o errors, me eu uso o google tradutor.

     

     

    • Like 1
×
×
  • Create New...