Jump to content

Tomas

Members
  • Posts

    2,530
  • Joined

  • Last visited

Everything posted by Tomas

  1. Puedes hacerlo con shaders, tendrías que buscar el nombre de la textura y darle un alpha transparente.
  2. Disculpa por la respuesta tardía, pero no suelo entrar al foro y parece que no me notifica al correo. Las casas se crean con house-add, pero tienes que estar en un ACL que tenga los permisos para usar ese comando, no importa el nombre, si no que tenga el derecho a usar "command.house-add".
  3. La bandera de EE.UU es la que se muestra cuando no logra encontrar el pais, si estás hosteando el servidor en tu PC con los puertos cerrados no te va a aparecer la de tu país. No tengo un backup del ACL GTImapIinteriorMods GTImapInteriors
  4. We already talked through PM . Just for the record, yes; I'm still doing this. Thank you, Spektrum! I'm glad to hear you are satisfied with my services
  5. No se pueden usar desde un script.
  6. Hola Assasin, en este subforo solo se permiten posts en inglés. En español debes hacerlos aquí: https://forum.multitheftauto.com/forum/167-scripting/ Con respecto a tu pregunta, lo que puedes hacer es desde el server side asignarle a los jugadores a través de un element data el color de su gang, algo así: addEventHandler("onPlayerLogin", root, function () r, g, b = exports.gang_system:getGangData(getElementData(source, "gang"), "color") setElementData(source, "gang_color", {r, g, b}) end ) -- y entonces, desde el cliente: r, g, b = unpack(getElementData(v, "gang_color"))
  7. Hmm, they work fine for me. Have you tried using the Windowed mode?
  8. Tomas

    Mute

    resourceRoot works perfectly with onClientGUIClick, the problem here is the code's indentation, it's very messed. If you adjust it, it should work.
  9. I'm so happy to hear you are satisfied with my services! It was a pleasure to do business with you
  10. Hola! Muchos de ustedes ya me conocerán, o me habrán leido por el foro de scripting, en resúmen: me llamo Tomás, juego MTA desde el 2012, me gusta la programación, soy autodidacta y tengo experiencia en Lua, PHP, Javascript y Python. He formado parte de grandes proyectos como: Grand Theft International (GTi), Full Theft Auto (FTA), International Gaming Community (IGC), MTA-LPM, Zombie Extreme Infection (ZEI), etc. Durante varios meses he recibido mensajes de personas pidiéndome scripts a cambio de dinero, por eso, hoy estoy formalmente ofreciendo mis servicios como scripter de pago: Esto es un hobby, no estoy aquí en busca de mucho dinero. Los precios varían dependiendo del proyecto, pero serán baratos y valdrán la pena. No programo modos de juego desde cero. Solo trabajo en pequeños proyectos que no me tomen mucho tiempo. Proveeré soporte con respecto al código durante las primeras dos semanas comenzando desde la fecha de entrega del código. Las fechas límite son puestas por el cliente (debe ser un tiempo razonable al proyecto) Para evitar estafas: cuando acepte un proyecto deberé recibir el 40% del pago total antes de comenzar a programarlo. Cuando reciba el pago final (el 60% restante) el código pasará a pertenecer enteramente al cliente. Prometo que mi código estará libre de errores y estará optimizado. Solo acepto PayPal como método de pago. Puedes mirar algunos de mis trabajos en mi perfil de GitHub: https://github.com/Ares-C/ Puedes contactarme a través de un mensaje privado, o a través de un email: [email protected]
  11. Hey there! My name is Tomas and I've been roaming in the forums since 2013 and playing MTA since 2012. I'm a self-taught programmer, I'm experienced in Lua, PHP, Javascript and Python. I have been part of a lot of big projects such as Grand Theft International (GTi), Full Theft Auto (FTA), International Gaming Community (IGC), MTA-LPM, Zombie Extreme Infection (ZEI), etc. Over the past months I have received a lot of PMs asking for scripts in exchange of money, today I'm formally offering my services as paid scripter: This is a hobby, hence, I'm not here looking for a lot of money. Prices can vary depending on the project, but they'll be cheap and worth the money. I do not script gamemodes from scratch. I only work in little projects that won't take me a lot of time. I will provide support regarding the code during two weeks starting when the code is given to the client. Deadlines are set by the customer (must be a reasonable time according to the project). To avoid scammers: once I accept a project, I must receive 40% of the total payment before I start scripting it. Once I receive the final payment the code belongs entirely to the customer. I promise to give bugfree and optimized code. I only accept PayPal as payment method. You can have a look to some of my work in my GitHub profile: https://github.com/Ares-C/ You can reach me through a forum PM or through an email: [email protected]
  12. ¿Mayor distancia más fuerza o mayor distancia menos fuerza?
  13. Tienes que poner los argumentos entre backticks (` `) "` "..string.." `"
  14. Eso solo funcionará correctamente si su vida máxima es 100. addEventHandler( "onClientRender", root, function( ) local progress = getElementHealth( localPlayer ) / getPedMaxHealth(localPlayer) local angle = interpolateBetween ( 0, 0, 0, 360, 0, 0, progress, "Linear") dxDrawCircle( screenWidth / 2, screenHeight / 2, nil, nil, nil, nil, angle ) end ) function getPedMaxHealth(ped) assert(isElement(ped) and (getElementType(ped) == "ped" or getElementType(ped) == "player"), "Bad argument @ 'getPedMaxHealth' [Expected ped/player at argument 1, got " .. tostring(ped) .. "]") local stat = getPedStat(ped, 24) local maxhealth = 100 + (stat - 569) / 4.31 return math.max(1, maxhealth) end
  15. Un Trainer conocido es Cheat Engine, ¿no lo tendrás abierto?
  16. En Windows siempre me tomó cerca de 5 minutos iniciar mi servidor, en Linux menos de 5 segundos
  17. for setTimer( function () for i,v in ipairs(getElementsByType("player")) do if (getElementData(v, "warnings")) then removeElementData(v, "warnings") end end end, 30000, 0) Agrega esto al final del codigo.
  18. Hay un problema con esta función: function clearTheElementData( element ) if tablaAlmacenamiento[element] then tablaAlmacenamiento[element] = false tablaAlmacenamiento[element] = { } end end Eso puede causar un buffer overflow, lo mejor sería asignarle el valor "nil" para eliminarla.
  19. Tomas

    Duda

    Sí, el webadmin te permite hacerlo.
  20. Compara su posición cada X tiempo, si no cambió lo matas.
  21. Tomas

    Ayuda

    Respondiendo a la segunda pregunta, dado el tamaño de la fuente, posiblemente.
  22. Si cambias TODO en TODOS los scripts no hay problema, el problema lo tendrás si lo cambias solo en algunos lados y en otros no.
  23. Te hago el core, del dragging te encargas tú. local modelIDs = { ["roca"] = 1234, ["montana"] = 1234, ["oceano"] = 1234, ["rascacielos"] = 1234} local cacheItems = {} for i, v in pairs(modelIDs) guiGridListSetItemText(gridlist, guiGridListAddRow(gridlist), 1, i, false, false) end addEventHandler("onClientGUIDoubleClick", resourceRoot, function () if (source == gridlist) then local row, col = guiGridListGetSelectedItem(gridlist) if (row ~= -1 and col ~= -1) then local name = guiGridListGetItemText(gridlist, row, col) local model = modelIDs[name] if (not cacheItems[name]) then cacheItems[name] = createObject(model, unpack({getElementPosition(localPlayer)})) else processDragging(cacheItems[name]) -- AQUI ES LO QUE TIENES QUE ADAPTAR A TU CODIGO, SI YA EXISTE, NO LO CREARA. end end end end )
×
×
  • Create New...