Jump to content

#RooTs

Members
  • Posts

    1,991
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

  1. #RooTs

    playSound

    you have to download the arquiro and use it in mp3 format playSound ( "http://yoursite.com/files/track.mp3" ) -- or playSound ( "files/track.mp3" )
  2. Bom pra começar vou dar uma simples explicação de um script que me deixo meio constrangido. quando eu entro em algum server pra jogar, acabo vendo muitas coisas inúteis como por exemplo o radar todo cheio de ícones inúteis. veja o exemplo da imagem abaixo: A maioria dos Mods/Script que possuem Blips, usam essa função -- Demonstração local myBlip = createBlip( x, y, z, 51, 0, 0, 0, 255, myPlayer ) -- como blips não tem altura ele não precisa do "z", somente do ( x, y ) createBlip(1209.3718261719,-904.79571533203,43.023754119873, 56 )-- 56 é o ID do Blip/Icone Agora para deixar o radar bem limpo e organizado, eu recomendo adicionar/substituir para esta função -- testado e funcionando perfeitamente local blip = createBlip(1209.3718261719,-904.79571533203,43.023754119873, 56, 0, 0, 0, 0, 0, 0, 250) outputDebugString("Distancia do Blip"..getBlipVisibleDistance(blip)) setBlipVisibleDistance(blip, 150) -- 150 é a distancia perfeita Resultado: Resultado próximo ao Blip Bom, isso deve resolver e deixar um servidor mais organizado.
  3. Nossa, fico muito feliz por ser indicado para Mta:sa Contribuidor, espero ajudar mais e mais esta área e outras áreas Obrigado Spoc^
  4. up- mander o post no topo
  5. post edited, sorry my error
  6. LOLLL The resource do not exist anymore lock topic or not ?
  7. screen shot?
  8. script taken blog from of resources and textures stolen: https://community.multitheftauto.com/ind ... s&id=11277 -- edited, sorry Original version by #nelson: http://www.mtabrasil.com.br/2014/05/ped ... ows-8.html history of hud viewtopic.php?f=108&t=81169 DONE
  9. which is the platform? Linux or Windows all ports open ? 22003 and 22005 ?
  10. how would your calculation for this? I want to learn to do
  11. he just use his calculations, I forever using this. and always I had success local stat = getPedStat ( getLocalPlayer(), 24 ) if stat < 1000 then dx.... else dx.... end
  12. if you no know the mta has health 100% and 200%, and that you no added, look in line ( getPedStat )
  13. sure?
  14. To GTA San Andreas
  15. what?
  16. added, all resolutions, and added getPedStat to health in 200% local screenW,screenH = guiGetScreenSize() local resW, resH = 1280, 720 local x, y = (screenW/resW), (screenH/resH) local maxAngle = 180 addEventHandler ( "onClientRender", root, function ( ) local stat = getPedStat ( getLocalPlayer(), 24 ) local hp = getElementHealth ( localPlayer ) * ( maxAngle / 100 ) if stat < 1000 then dxDrawCircle ( ( x - 50 ) / 2, ( y - 50 ) / 2, 50, 5, 1, 0, hp, tocolor ( 255, 0, 0, 255 ), false ) else dxDrawCircle ( ( x - 50 ) / 2, ( y - 50 ) / 2, 50, 5, 1, 0, hp, tocolor ( 255, 0, 0, 255 ), false ) end end)
  17. local screenX, screenY = guiGetScreenSize ( ); local maxAngle = 180; addEventHandler ( "onClientRender", root, function ( ) local hp = getElementHealth ( localPlayer ) * ( maxAngle / 100 ); dxDrawCircle ( ( screenX - 50 ) / 2, ( screenY - 50 ) / 2, 50, 5, 1, 0, hp, tocolor ( 255, 0, 0, 255 ), false ); end ); where is the getPedStat, 24; to health in 200% ????
  18. sorry, I tried to help
  19. I am unable to test. only this
  20. sorry my friend, more I'm not able to test here, I am without desktop
  21. try this, value 15 for 1 -- 220,796,110, 15, 0.01 dxDrawCircle( 220,796,110, 1,0.01,hp,hpMin,tocolor(255,0,0,255))
  22. any errors in debug? try this local hp = hpMin-getElementHealth(getLocalPlayer())*hpRate
×
×
  • Create New...