Tomas
-
Posts
2,530 -
Joined
-
Last visited
Posts posted by Tomas
-
-
On 13/3/2018 at 09:37, j4vier said:
Gracias por responder Tomas!!!.
Una pregunta mas, el recurso GTIhousing trate de hacerlo funcionar pero no lo consigo, ya configure el database.slua mysql me fijo en admin y me dice "running" pero los comando ni idea trate de mil formas /housing, /starthousing etc, me fije en el mapa si aparecía algún icono de casas o algo por el estilo pero nada, hasta me recorrí todo el mapa buscando algún icono en venta que apareciera en frente de alguna casas y nada jaja la verdad ni idea. Me podrías ayudar porfavor? si no es mucha molestia gracias capo!!!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".
-
On 24/1/2018 at 04:04, j4vier said:
Hola Tomas, tengo un problema con las banderas que se muestran en el scoreboard soy de argentina y me aparece la bandera de los gringos :V (osea estados unidos)
Cual crees que sea el problema? desde ya muchas gracias!!!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.
On 9/11/2017 at 11:15, javjer said:Hola gente, se que es algo tarde mi comentario y disculpen mi ignorancia pero como se instala todo? quisiera saber que va en el mtaserver y en el acl, porque en el winrar no esta el text masterserver ni el acl. Desde ya muchas gracias!!!
No tengo un backup del ACL
On 19/4/2017 at 16:13, Blest said:como se llama el que dices que no tienen marcadores los interiores sino que estan abiertos?
GTImapIinteriorMods
GTImapInteriors
-
On 9/8/2017 at 11:43, Cynergetic said:
Are you still doing this? I'm looking for a scripter and I will be willing to set it up as a contract job (Paid, Multiple Projects (not from scratch)) PM me if interested!
We already talked through PM . Just for the record, yes; I'm still doing this.
19 hours ago, Spektrum said:Very good guy with very high knowledge, he is not just a good scripter, his manners are very good too. He's not all of the money and he will do whatever it takes to make his clients happy. I suggest him very strongly and my point is 10/10 for him. Keep up the good work Tomas!
Thank you, Spektrum! I'm glad to hear you are satisfied with my services
-
On 21/8/2017 at 15:29, /)ssasin said:
Me tira este error bad argument #1 to "unpack" (table expected, got boolean) :v
Postea todo el código
-
No se pueden usar desde un script.
-
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"))
- 1
-
Hmm, they work fine for me. Have you tried using the Windowed mode?
-
15 hours ago, Dimos7 said:
on clientGUIClick is root not resourceRoot leson 1 also same with onAdminMute same root not resourceRoot
resourceRoot works perfectly with onClientGUIClick, the problem here is the code's indentation, it's very messed. If you adjust it, it should work.
-
22 hours ago, Falcon402 said:
When I say this guy can script, I mean he really can script. Got 5 scripts from him and I am completely satisfied with the result. Offered real time debugging and fixed any bug that showed up.
I'm so happy to hear you are satisfied with my services! It was a pleasure to do business with you
-
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]
-
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]
-
¿Mayor distancia más fuerza o mayor distancia menos fuerza?
-
Tienes que poner los argumentos entre backticks (` `)
"` "..string.." `"
-
21 hours ago, Simple01 said:
Nivel de vida:
addEventHandler( "onClientRender", root, function( ) local progress = getElementHealth( localPlayer ) / 100 local angle = interpolateBetween ( 0, 0, 0, 360, 0, 0, progress, "Linear") dxDrawCircle( screenWidth / 2, screenHeight / 2, nil, nil, nil, nil, angle ) end)
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
-
Un Trainer conocido es Cheat Engine, ¿no lo tendrás abierto?
-
En Windows siempre me tomó cerca de 5 minutos iniciar mi servidor, en Linux menos de 5 segundos
-
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.
-
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.
-
seriously?
-
-
Compara su posición cada X tiempo, si no cambió lo matas.
- 1
-
-
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.
-
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 )
Ayuda quiero saber como sacar este objeto!!
in Scripting
Posted
Puedes hacerlo con shaders, tendrías que buscar el nombre de la textura y darle un alpha transparente.