Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 19/06/20 in all areas

  1. I am selling a SA map in vector format (*.ai, *.psd). It's extremely convenient for designers and server administrators who want to quickly recolor the map into the desired palette to fit their server's theme. Make any palette you want - be it blue, gray or pink (example palettes on the screenshots have been made in a couple of minutes). You want to quickly add/remove mapping elements to/from a map? Have been asked to recolor the map but tweaking selection and masks is incredibly slow and tedious? Want to add player-customizable palettes but the former designer didn't make enough color variations? This is all in the past. Support is available. PM me for the price details: forum: @easterdie telegram: @easterdie discord: Стар Хариф#4358 vk.com/easterdie Usage example: SCREENSHOTS:
    4 points
  2. ConGuard Network/connection helper for MTA:SA This resource provides measures to deal with lagswitch / connection abuse in MTA (commonly seen in Destruction Derby servers, although you can use this resource in any environment/mode you wish). When a player loses connection to the server, the player (and their vehicle, if it exists) will be frozen for all remote players and a "lost connection" icon will be placed above the player. Upon re-connection, the player will be unfrozen and (by default) set back to their original position before they lost connection, to avoid the teleporting exploit. ConGuard has a few configurable options (explained on the GitHub page) and is also based on dimensions, which is useful for multi-gamemode servers who don't want to activate this in every room. The source code & documentation can be found on GitHub below. Download/GitHub: https://github.com/Lpsd/ConGuard If you have any suggestions for additional features, or find any bugs, please submit a GitHub issue
    3 points
  3. health = getElementHealth (getPedOccupiedVehicle(localPlayer)) local health = (math.max(health - 250, 0)/750)*100 dxDrawImage ( (x/nX)*screenWidth*13.2, (y/nY)*screenHeight*11.0, (x/nX)*screenWidth*1.1, (y/nY)*screenHeight*1, "circle.png",0,0,0,tocolor(255,255,255,200)) --dxDrawImage ( (x/nX)*screenWidth*13.55, (y/nY)*screenHeight*11.1, (x/nX)*screenWidth*0.4, (y/nY)*screenHeight*0.4, "heart1.png",0,0,0,tocolor(255,255,255,150)) dxDrawText(""..math.ceil(health).."", 0.968*screenX, 1.50*screenY, 0.75104166666667*screenX, 0.26018518518519*screenY, tocolor(255, 255, 255, 150), 1.5, "defaut", "center", "center", false, false, true, false, false) dxDrawText("HP",0.968*screenX, 1.55*screenY, 0.75104166666667*screenX, 0.26018518518519*screenY, tocolor(255, 255, 255, 150), 1.5, "defaut", "center", "center", false, false, true, false, false) --------------------------------------------------------------------------- end end addEventHandler ( "onClientRender", root, hud ) --------------------------------------------------------------------------- try this
    1 point
  4. As "luzinhas" dos carros vc cria com createMarker do tipo "corona". Depois vc anexa ele no veículo usando offsets com attachElements. Pra fazer a "luz apagar", vc apenas altera o tamanho dela pra 0 em vez de destruí-la. E depois pra "acendê-la" vc altera para o tamanho que estava antes. No próprio marker vc já consegue setar a cor.
    1 point
  5. 1 point
  6. root = getRootElement() tempo = 2000 -- 2s p/ carregar a skin apos morrer/Logar ! --/> MORRER function salvar_skin () local skin = getPedSkin(source) setTimer (setElementModel, tempo, 1, source, skin, true) end addEventHandler ( "onPlayerWasted", root, salvar_skin ) --/> QUIT / Salvar no Element "skin_salva" function quit_salvar_skin () local conta = getPlayerAccount(source) setAccountData (conta, "skin_salva", tostring (getPedSkin(source))) end addEventHandler ( "onPlayerQuit", root, quit_salvar_skin ) --/> LOGIN / Carregará function playerLogin (_, account) local conta_date = getAccountData (account, "skin_salva") if conta_date then setTimer (setElementModel, tempo, 1, source, conta_date, true) end end addEventHandler ("onPlayerLogin", root, playerLogin) É apenas um exemplo, se está funcional eu não sei
    1 point
×
×
  • Create New...