Jump to content

aka Blue

Members
  • Posts

    2,106
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by aka Blue

  1. Actualizaciones de la página Cambiado totalmente el diseño de la página. Añadido color a las letras de los tags de code. Gracias a @Tomas y a @.:CiBeR:. por ayudarme. Añadidos botones al final de cada artículo, llevando al lector a la wiki para leer las funciones utilizadas.
  2. Bueno, supongo que es una función export, por lo cual, cuando lo vayas a usar en otro script, usa lo siguiente: Modo server-side: exports.sidechat:outputSideChat ( mensaje, jugador a quien le quieres mostrar el mensaje, color RGB del mensaje ) Ejemplo: exports.sidechat:outputSideChat ( "Hola, que tal", player, 0, 255,0 ) Modo client-side exports.sidechat:outputSideChat ( mensaje, color RGB del mensaje) Ejemplo: exports.sidechat:outputSideChat ( "Hey, que tal, cliente", 0, 255, 0 )
  3. Nombre del jugador que lo hizo, si es que te he entendido bien
  4. ¿What doesnt work? ¿Putting the text of table or loading the page?
  5. aka Blue

    Pregunta

    Pues si tienes un sistema de ingreso a un interior, usa ese mismo evento o función y solo cambia que si el interior es == 3 que diga el mensaje (?
  6. aka Blue

    Pregunta

    Pues comprueba si el interior y la dimension son iguales a los de la casa de CJ. Puedes ver todo en el map editor de MTA.
  7. Tal vez no supieron configurarlo correctamente.
  8. You could try something like this: -- define these two at the start history = {} curPos = 1 -- define these when navigating total = #history history[url] = getBrowserURL(browser) -- store the current page url -- in example function back() if curPos > 1 then curPos = curPos - 1 end setBrowserURL(browser,history[curPos]) end function forward() local total = #history if curPos < #history then curPos = curPos + 1 end end Not tested sorry if I made any mistakes. Yea, something like this is what i wanna say
  9. A mi me han enviado DDoS más grandes aun teniendo el plan más bajo y no me han hecho nada, como mucho subir 10 de ping más y ya está.
  10. Yo te recomendaría OVH. https://www.ovh.es/
  11. Try this. function increaseHP ( _, attacker, _, _ ) if attacker and attacker ~= source then local actualHealth = getElementHealth ( attacker ) outputChatBox ("Your HP has been increased because you killed "..getPlayerName (source).."#ffffff.", attacker, 255, 255, 255, true) setElementHealth ( attacker, tonumber ( actualHealth ) + 10 ) end end addEventHandler ("onPlayerWasted", getRootElement(), increaseHP)
  12. I'm sorry, I did not understand very well. Now, your system works with a little memo, just save the previous url in the table and load it in the memo when you click the button I think is the easiest way to make it.
  13. This sounds very stupid, but, ¿do you try to make it 'tostring'? Like... local url = guiGetText ( url ) local urlTable = tostring ( url ) table.insert ( last, urlTable ) I make this with a script that i have and it works in setting text to memo.
  14. ¿Qué hosting tienes actualmente?
  15. Nada, sigue igual. Igual gracias por responder PD: También probé añadiéndole un pequeño timer de 1 segundo y nada, no les pone la animación no sé por qué.
  16. Si, lo he puesto hasta después del loop pero nada, sigue sin ejecutar la animación.
  17. Bueno, estoy creando un script de "bailarinas" y estoy utilizando tablas para que esté mas optimizado el script. El problema es que a la hora de iniciar el script, realizar el loop para la creación de bots y tal, se crean pero no se le ejecuta la animación puesta. Server-side local bailarinas = { [1] = { x=1213.94, y= -3.57, z= 1001.32, rotx= 0, roty=0, rotz=50.216522216797 }, [2] = { x=1208.3, y= -7.82, z= 1001.32, rotx=0, roty=0, rotz=179.47265625 }, [3] = { x=1208.29, y= -4.92, z= 1001.32, rotx=0, roty=0, rotz=359.18975830078 }, [4] = { x=1207.58, y= -6.34, z= 1001.32, rotx=0, roty=0, rotz=89.498718261719 }, [5] = { x=1209.02, y= -6.44, z= 1001.32, rotx=0, roty=0, rotz=268.21057128906 } } local bailarina = { } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for k, data in ipairs ( bailarinas ) do local x, y, z, rotz = data.x, data.y, data.z, data.rotz bailarina[k] = createPed ( 237, x, y, z, rotz ) setElementDimension ( bailarina[k], 204 ) setElementInterior ( bailarina[k], 2 ) setPedAnimation ( bailarina[k], "STRIP", "strip_A" ) end end )
  18. La aritmética que te pasé funciona. Al menos a mi me ha funcionado bien para textos y rectángulos DX. Ahora me pasaré por tu servidor, así también juego un poco de DayZ jeje
  19. Viendo que usas la misma "táctica" que yo, te recomiendo usar la resolución mas alta como base, osea, 1336x768 si no me equivoco. Al menos eso a mi me funcionó. Esto lo uso yo en mi sistema de necesidades, es simplemente el texto, pero para que te hagas una idea local sourceX, sourceY = 1336, 768 local sx, sy = guiGetScreenSize ( ) dxDrawText("HAMBRE", (1353/sourceX)*sx, (172/sourceY)*sy+2, (964/sourceX)*sx, (188/sourceY)*sy, tocolor(0, 0, 0, 255), ( sy / sourceY ) * 0.40, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("HAMBRE", (1353/sourceX)*sx, (172/sourceY)*sy, (964/sourceX)*sx, (188/sourceY)*sy, tocolor(255, 255, 255, 255), ( sy / sourceY ) * 0.40, "bankgothic", "center", "center", false, false, false, false, false)
  20. aka Blue

    Duda

    Si quieres crear un script para entrar a interiores pf, tendras que coger la ID de bastantes objetos. Te recomiendo hacer un sistema simple con tablas para almacenar y cargar interiores, es fácil y encima con SQLIte
  21. Aquí te dejo los problemas de DX que tienes actualmente. No es algo que no se pueda solucionar así que no hay problema. Aparte de eso, buen servidor, lo recomiendo, muchísima suerte Edito: Resolución usada: 1028x768x32
  22. You can make a table that saves the last pages you visit, like: local lastVisited = { } -- When you enter to a website table.insert ( lastVisited, guiGetText ( url ) ) -- Or lastVisited = guiGetText ( url ) And when the players clicks the last page button, set the URL to the last visited page. Keep it up, it's a very nice script Sorry for my bad English
  23. aka Blue

    Duda

    No pasa nada, suele pasar .
×
×
  • Create New...