Jump to content

Bc#

Members
  • Posts

    516
  • Joined

  • Last visited

Everything posted by Bc#

  1. I tried using it but it does not work. I therefore call examples, I already have tried everything and it does not work. My other option would be to delete the text and create a resource that can show the player in that position I'm seeing. Is not it could be done?
  2. No funciona se me buggea el race.
  3. No soy experto en esto pero creo que ahí no se especifica color ni en RGB ni en hexagesimal.
  4. I do not understand the wiki could give me an example please.
  5. dxDrawText ( '#333333C#ffffffurrently #333333S#ffffffpectating:\n' .. getPlayerName(Spectate.target), 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown", true ) Is that it?
  6. dxDrawText ( '#333333C#ffffffurrently #333333S#ffffffpectating:\n' .. getPlayerName(Spectate.target), 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown", colorCoded=true ) Is this what you were talking about?
  7. ._.? Is it right what I did? If I could give an example please.
  8. local myLabel = guiSetText(g_GUI.speclabel, 'Currently spectating:\n' .. getPlayerNametagColor(Spectate.target, theplayer) guiLabelSetColor ( myLabel, 255, 255, 255 ) Creo que seria haci. Si no lo es me podrías dar un ejemplo por que cada ves que pruebo esto se me bugea.
  9. dxDrawText ( 'Currently spectating:\n' .. getPlayerName(Spectate.target), 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) Try this, but did not work.
  10. Tu dices, ¿hacer esto? guiLabelSetColor(g_GUI.speclabel, 'Currently spectating:\n' .. getPlayerNametagColor(Spectate.target))
  11. I also used dxDrawText and does not work
  12. I need to make it in this picture is in color and with another source. Try the function: dxDrawColorText But it did not work. I'm not sure which is published in the race_client specifically within this function: function Spectate.setTarget( player ) if Spectate.hasDroppedCamera() then return end Spectate.active = true Spectate.target = player if Spectate.target then if Spectate.getCameraTargetPlayer() ~= Spectate.target then setCameraTarget(Spectate.target) end guiSetText(g_GUI.speclabel, 'Currently spectating:\n' .. getPlayerName(Spectate.target)) else local x,y,z = getElementPosition(g_Me) x = x - ( x % 32 ) y = y - ( y % 32 ) z = getGroundPosition ( x, y, 5000 ) or 40 setCameraTarget( g_Me ) setCameraMatrix( x,y,z+10,x,y+50,z+60) guiSetText(g_GUI.speclabel, 'Currently spectating:\n No one to spectate') end if Spectate.active and Spectate.savePos then guiSetText(g_GUI.speclabel, guiGetText(g_GUI.speclabel) .. "\n\nPress 'B' to join") end end Any help or idea how to do it? PD: Sorry for my English.
  13. Nesesito hacer que lo de esta imagen se vea en color y con otra fuente. Intente con la funcion dxDrawColorText Pero no me funcionó. Creo no estoy seguro que se edita en el race_client especificamente dentro de esta funcion: function Spectate.setTarget( player ) if Spectate.hasDroppedCamera() then return end Spectate.active = true Spectate.target = player if Spectate.target then if Spectate.getCameraTargetPlayer() ~= Spectate.target then setCameraTarget(Spectate.target) end guiSetText(g_GUI.speclabel, 'Currently spectating:\n' .. getPlayerName(Spectate.target)) else local x,y,z = getElementPosition(g_Me) x = x - ( x % 32 ) y = y - ( y % 32 ) z = getGroundPosition ( x, y, 5000 ) or 40 setCameraTarget( g_Me ) setCameraMatrix( x,y,z+10,x,y+50,z+60) guiSetText(g_GUI.speclabel, 'Currently spectating:\n No one to spectate') end if Spectate.active and Spectate.savePos then guiSetText(g_GUI.speclabel, guiGetText(g_GUI.speclabel) .. "\n\nPress 'B' to join") end end ¿Alguna ayuda o idea de como hacerlo?
  14. Ese ejemplo te sirve para la cantidad de imágenes que quieras. Lo único que tienes que tener en cuenta es que devén llamarse: img1 img2 .. .. .. .. img100 o hasta la cantidad de imagenes que tengas. PD: Almenos, ¿has probado el script?
  15. Tuve el mismo problema que tu mira este post quizás te ayude algo. https://forum.multitheftauto.com/viewtopic.php?f=145&t=49665 Si no te queda claro te dejo esto function dxDrawGifImage ( x, y, w, h, path, iStart, iType, effectSpeed ) local gifElement = createElement ( "dx-gif" ) if ( gifElement ) then setElementData ( gifElement, "gifData", { x = x, y = y, w = w, h = h, imgPath = path, startID = iStart, imgID = iStart, imgType = iType, speed = effectSpeed, tick = getTickCount ( ) } ) return gifElement else return false end end addEventHandler ( "onClientRender", root, function ( ) local currentTick = getTickCount ( ) for index, gif in ipairs ( getElementsByType ( "dx-gif" ) ) do local gifData = getElementData ( gif, "gifData" ) if ( gifData ) then if ( currentTick - gifData.tick >= gifData.speed ) then gifData.tick = currentTick gifData.imgID = ( gifData.imgID + 1 ) if ( fileExists ( gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) ) then gifData.imgID = gifData.imgID setElementData ( gif, "gifData", gifData ) else gifData.imgID = gifData.startID setElementData ( gif, "gifData", gifData ) end end dxDrawImage ( gifData.x, gifData.y, gifData.w, gifData.h, gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) end end end ) gif = dxDrawGifImage ( 769, 175, 193, 145, "images/img", 1, "png", 120 ) Prueba con eso pero renombra las imagenes dentro de la carpeta o no funcionara. Ponles: img1 img2 img3 img4 PD: Tus imagenes deven ser de igual tamaño o se vera mal.
  16. I sent an email but so posting here. The bugs to fix and some ideas to supplement the gamemode are: - Completing a map (8/8 pages) back to selecion panel. - If a player wishes to enter another map to press a key to return to the panel selecion. - Remove the option to enter a car with the "G" - It may cause other players to see your skin but the player himself can not see your skin. - At the panel if possible add another page or tab to put more maps, or selecting skins. - After selecting map you could add a selecion of difficulty to make the game more interesting.
  17. Bc#

    Spect en race

    Quiero editar una función a el espectador del race (que viene por defecto) quiero crear un dxtext para lo que ya esta pero no se si sufriría consecuencias si lo llegase a hacer bueno les dejo la función que quiero editar: function Spectate.setTarget( player ) if Spectate.hasDroppedCamera() then return end Spectate.active = true Spectate.target = player if Spectate.target then if Spectate.getCameraTargetPlayer() ~= Spectate.target then setCameraTarget(Spectate.target) end guiSetText(g_GUI.speclabel, 'Currently spectating:\n' .. getPlayerName(Spectate.target)) else local x,y,z = getElementPosition(g_Me) x = x - ( x % 32 ) y = y - ( y % 32 ) z = getGroundPosition ( x, y, 5000 ) or 40 setCameraTarget( g_Me ) setCameraMatrix( x,y,z+10,x,y+50,z+60) guiSetText(g_GUI.speclabel, 'Currently spectating:\n No one to spectate') end if Spectate.active and Spectate.savePos then guiSetText(g_GUI.speclabel, guiGetText(g_GUI.speclabel) .. "\n\nPress 'B' to join") end end La parte que dice: guiSetText(g_GUI.speclabel, 'Currently spectating:\n' .. getPlayerName(Spectate.target)) Lo podria reemplazar por: dxText:create("#FFFFFFMirando a:\n"..getPlayerNametagText(Spectate.target).."", x / 2, y / 2 - 10 + 75 - 41, false, "bankgothic", 1, "center") Al final con la funcion de dxtext incluida me quedaria algo asi: function dxDrawColorText(str, ax, ay, bx, by, color, scale, font) evofont = dxCreateFont("evo.ttf", 12) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawColorText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) local w = dxGetTextWidth(cap, scale, font) dxDrawColorText(cap, ax, ay, ax + w, by, color, scale, font) end end function Spectate.setTarget( player ) if Spectate.hasDroppedCamera() then return end Spectate.active = true Spectate.target = player if Spectate.target then if Spectate.getCameraTargetPlayer() ~= Spectate.target then setCameraTarget(Spectate.target) end dxText:create("#FFFFFFMirando a:\n"..getPlayerNametagText(Spectate.target).."", x / 2, y / 2 - 10 + 75 - 41, false, "bankgothic", 1, "center") local x,y,z = getElementPosition(g_Me) x = x - ( x % 32 ) y = y - ( y % 32 ) z = getGroundPosition ( x, y, 5000 ) or 40 setCameraTarget( g_Me ) setCameraMatrix( x,y,z+10,x,y+50,z+60) guiSetText(g_GUI.speclabel, 'Currently spectating:\n No one to spectate') end if Spectate.active and Spectate.savePos then guiSetText(g_GUI.speclabel, guiGetText(g_GUI.speclabel) .. "\n\nPress 'B' to join") end end
  18. I could arrange a few bugs in next version? There are a few bugs in the gamemode. - You can enter the publishing vehicle with "G" - At the end of a map back to selecion panel. - Give a bindkey to return to selecion panel. I i was reviewing the code and is very good even I could add more maps if you want you could help with the maps while you repair some bugs your gamemode. I'm interested in this game mode even create a server with the new maps, see for yourself:
  19. Bc#

    Tema de Gangs

    Creo que por privado se refiere a algo como un autoteam por ACL.
  20. Seguro abran visto el gamemode de slender que se lanzo hace aproximadamente 1 mes y que hace poco se lanzo una nueva versión que trae un panel de entrada para seleccionar mapas. Bueno hice un servidor con este gamemode y eh estado editando un poco y agregando nuevos mapas para aquellos que les aya gustado el gamemode, pero nesesito saber si me pueden ayudar con unas cosillas pequeñas que me faltan, Nesesito hacer que al estar ya jugando un mapa si alguien desea cambiar de mapa precione una tecla para volver a la seleccion y que el contador de paginas vuelva a 0. Les dejo los main del server y del client Client/main http://pastebin.com/6CcHFv64 Server/main http://pastebin.com/dL2NRKUN
  21. Bc#

    Barra cargando

    ffsgaming tiene uno parecido. Cuando descarga un mapa no lo muestra y cuando descarga los scripts lo muestra pero muestra uno personalizado. si no me equivoco en Twisted Gamers también tienen uno similar.
  22. Bc#

    Barra cargando

    eh visto servidores que la han cambiado, y yo quiero hacerlo por estética y ambientacion.
  23. Bc#

    Barra cargando

    Exactamente esa misma.
  24. Bc#

    Barra cargando

    Estuve intentan dolo pero eso solo me sirve para crear la barra pero para reemplazarla ¿como lo hago?
×
×
  • Create New...