Jump to content

Jacobob14

Members
  • Posts

    266
  • Joined

  • Last visited

Everything posted by Jacobob14

  1. creo que nadie acá le ara un hud como usted quiere si desea uno puede buscar en la comunidad o puede empesar hacer uno propio y si tiene problemas aca lo ayudan
  2. thanks I did not realize the error if not much bother as I can make color rectangle of team local health local p local a,g health = getElementHealth ( player ) health = math.max(health, 0)/100 p = -510*(health^2) r,g = math.max(math.min(p + 255*health + 255, 255), 0), math.max(math.min(p + 765*health, 255), 0) if health > 1.0 then health = 1.0 end dxDrawRectangle ( drawX + outlineThickness, drawY + outlineThickness, width - outlineThickness*2, height - outlineThickness*2, tocolor(0,0,0,50) ) --Finally, the actual health dxDrawRectangle ( drawX + outlineThickness, drawY + outlineThickness, health*(width - outlineThickness*2), height - outlineThickness*2, tocolor(r,g,b) )
  3. debes editar el mapnames para que se aplique en tu radar fue lo que yo hice https://community.multitheftauto.com/in ... ils&id=344
  4. I did it this way will be fine? local lvl = getElementData(player, "level") dxDrawText ( "#FF6400Nivel: ".. tostring(lvl)..\n#000000"..getPlayerNameR(player), sx, sy - offset, sx, sy - offset, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE, srfont, "center", "bottom", false,false,false,true,false )
  5. bue pero primero debe publicar su scrip para saber realmente que es lo que quiere no se si quiere editar el scrip de zombies o hacer otra cosa .-.
  6. puedes mirar el scrip de los zombies y de hay darte una idea
  7. when I see the tag Player my level appears and not the level of player local r,g,b = getPlayerNametagColor(player) local offset = (scale) * NAMETAG_TEXT_BAR_SPACE/2 local offset2 = ((scale) * NAMETAG_TEXT_BAR_SPACE/2) - 35 local w = dxGetTextWidth(getPlayerNameR(player), textscale * NAMETAG_TEXTSIZE, srfont) / 2 local lvl = (getElementData(getLocalPlayer(),"level")) dxDrawText ( "#FF6400Nivel: "..lvl.." \n#000000"..getPlayerNameR(player), sx, sy - offset, sx, sy - offset, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE, srfont, "center", "bottom", false,false,false,true,false ) dxDrawColorText ( getPlayerName(player), sx-w, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE, srfont, "center", "bottom", false, false, false )
  8. bueno en si el area 51 siempre da lag en los servidores que estado es el area con mas lag asi que creo que es normal que tengas lag en esa zona
  9. eso de atacar por la espalda ya viene con el scrip de zombies solo no borres las animaciones que le correspondes
  10. as I can do to make the player level look not my level : ( local lvl = (getElementData(getLocalPlayer(),"level")) dxDrawText ( "nivel: "..lvl, sx- 20, sy - 25, sx -20, sy - 25, tocolor(255,100,0,255), 1, srfont, "center", "bottom", false, false, false )
  11. Puedes descargarte de la comunidad las balas explosivas https://community.multitheftauto.com/in ... ls&id=1570 o puede descargarte ese scrip que le da distintos poderes a las armas https://community.multitheftauto.com/in ... ils&id=635
  12. Jacobob14

    possible ?

    is possible that the área is circular and not a square safeZoneRadar = createRadarArea ( -3230.259765625, -518.7314453125, 350, 450, 0, 0, 255, 155 )
  13. aqui tienes --------------------------- ---Main window --------------------------- function updateGUI(updateVehicle) -- update position local x, y, z = getElementPosition(g_Me) setControlNumbers(wndMain, {xpos=math.ceil(x), ypos=math.ceil(y), zpos=math.ceil(z)}) end wndMain = { 'wnd', text = 'Panel', x = 10, y = 150, width = 280, controls = { {'lbl', text='Local player'}, {'br'}, {'btn', id='playergrav', text='grav', window=wndGravity}, {'btn', id='setpos', text='map', window=wndSetPos}, }, oncreate = mainWndShow, onclose = mainWndClose } function errMsg(msg) outputChatBox(msg, 255, 0, 0) end addEventHandler('onClientResourceStart', g_ResRoot, function() fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me) end ) function showWelcomeMap() createWindow(wndSpawnMap) showCursor(true) end function showMap() createWindow(wndSetPos) showCursor(true) end function toggleFRWindow() local accountName = getAccountName ( player ) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() end end end addCommandHandler('fr', toggleFRWindow)
  14. no te entendi pero yo uso este scrip https://community.multitheftauto.com/in ... ls&id=7660 para mostrar los level en el scoreboard
  15. no te entendi quieer un comando para aumentar tu exp o no se no te entendi
  16. para poner tu level en el chat tendrias que descargarte un admin tag de la comunidad y editarlo o puedes descargarte el level en el scoreboard hace que se muestre tu nivel en el scoreboard tab
  17. para cambiar el tipo de letra solo cambie el texto que sige desde de esto: tocolor(255, 255, 255, 255), 0.5 , "tipodeletra".... y lo demas lo dejas igual a otra cosa debes saber que fuentes hay no puedes poner cualkiera dxDrawText(""..ex..""..text.."", 678, 83, 790, 110, tocolor(255, 255, 255, 255), 0.5, "bankgothic", "left", "top", false, false, true, false, false)
  18. and if I want the text to move to another position what function would use
  19. I want draw the exp you gain when you kill a zombie but the text appears and disappears fast and doesn't see well server addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( theKiller ) exports.exp_system:addPlayerEXP ( theKiller, math.random(1, 15)) triggerClientEvent ( "text", getRootElement() ) end ) client function text() dxDrawText("+ exp", 375, 371, 463, 440, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("+ exp", 375, 369, 463, 438, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("+ exp", 373, 371, 461, 440, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("+ exp", 373, 369, 461, 438, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("+ exp", 374, 370, 462, 439, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) end addEvent ( "text", true ) addEventHandler ( "text", root, text )
  20. I told him to take as example
  21. bueno le ayudare Puedes cambiarles la posicion y el tipo de letra yaa lo probe y funciona bien y no pasa el problema cuando subes de nivel addEventHandler("onClientRender", root, function() local lvl = (getElementData(getLocalPlayer(),"level")) local ex = (getElementData(getLocalPlayer(),"exp")) local text = "" local UP = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 if ( UP == 1 ) then text = " /60" elseif ( UP == 2 ) then text = " /110" elseif ( UP == 3 ) then text = " /160" elseif ( UP == 4 ) then text = " /250" elseif ( UP == 5 ) then text = " /500" elseif ( UP == 6 ) then text = " /1000" elseif ( UP == 7 ) then text = " /1250" elseif ( UP == 8 ) then text = " /1500" elseif ( UP == 9 ) then text = " /1820" elseif ( UP == 10 ) then text = " /2000" elseif ( UP == 11 ) then text = " /2800" elseif ( UP == 12 ) then text = " /3000" elseif ( UP == 13 ) then text = " /5000" elseif ( UP == 14 ) then text = " /7000" elseif ( UP == 15 ) then text = " /9000" elseif ( UP == 16 ) then text = " /11000" elseif ( UP == 17 ) then text = " /15000" elseif ( UP == 18 ) then text = " /19000" elseif ( UP == 19 ) then text = " /21000" elseif ( UP == 20 ) then text = " /25000" elseif ( UP == 21 ) then text = " /30000" elseif ( UP == 22 ) then text = " /35000" elseif ( UP == 23 ) then text = " /40000" elseif ( UP == 24 ) then text = " /45000" elseif ( UP == 25 ) then text = " /60000" elseif ( UP == 26 ) then text = " /65000" elseif ( UP == 27 ) then text = " /70000" elseif ( UP == 28 ) then text = " /85000" elseif ( UP == 29 ) then text = " /90000" elseif ( UP == 30 ) then text = " /95000" elseif ( UP == 31 ) then text = " /100000" elseif ( UP == 32 ) then text = " /110000" elseif ( UP == 33 ) then text = " /120000" elseif ( UP == 34 ) then text = " /130000" elseif ( UP == 35 ) then text = " /140000" elseif ( UP == 36 ) then text = " /150000" elseif ( UP == 37 ) then text = " /160000" elseif ( UP == 38 ) then text = " /170000" elseif ( UP == 39 ) then text = " /180000" elseif ( UP == 40 ) then text = " /190000" elseif ( UP == 41 ) then text = " /200000" elseif ( UP == 42 ) then text = " /210000" elseif ( UP == 43 ) then text = " /220000" elseif ( UP == 44 ) then text = " /230000" elseif ( UP == 45 ) then text = " /240000" elseif ( UP == 46 ) then text = " /250000" elseif ( UP == 47 ) then text = " /260000" elseif ( UP == 48 ) then text = " /270000" elseif ( UP == 49 ) then text = " /280000" elseif ( UP == 50 ) then text = " /290000" elseif ( UP == 51 ) then text = " /300000" end dxDrawText("Level", 623, 44, 659, 66, tocolor(255, 255, 255, 255), 1.20, "sans", "left", "top", false, false, true, false, false) dxDrawText(""..lvl, 632, 70, 659, 110, tocolor(255, 255, 255, 255), 2.50, "default", "left", "top", false, false, true, false, false) dxDrawText("Exp:", 696, 44, 730, 64, tocolor(255, 255, 255, 255), 1.20, "sans", "left", "top", false, false, true, false, false) dxDrawText(""..ex..""..text.."", 678, 83, 790, 110, tocolor(255, 255, 255, 255), 0.5, "bankgothic", "left", "top", false, false, true, false, false) end ) addEventHandler ( "onClientResourceStart", resourceRoot, dxsetText )
  22. me pasaba lo mismo y no puede solucionarlo así que te recomiendo que hagas tu propio scrip utilizando las funciones de dx fue lo que yo hice
  23. leaves the rectangle when the image is small I Use a map with dds format
×
×
  • Create New...