Jump to content

DaaNN

Members
  • Posts

    16
  • Joined

  • Last visited

  • Days Won

    1

DaaNN last won the day on December 22 2022

DaaNN had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DaaNN's Achievements

Square

Square (6/54)

3

Reputation

  1. DaaNN

    AYUDA

    Si te refieres un recurso en el ACL. ES/ACL - Multi Theft Auto: Wiki Acá hay un tutorial de como hacerlo. Lee bien.
  2. ¿Te interesan servicios de scripting para tu servidor? ¿Te interesa tener nuevos sistemas hechos desde 0? Ofrezco servicios de scripting 100% confiables. Poseo un servidor actualmente con más de 100 usuarios diarios, puedes observar mi trabajo entrando a mi servidor. Ofrezco: - Seguridad ante la creación de código, no uso código reciclado, este código estará 100% seguro y no lo usaré para algo más externo. - Estabilidad en el sistema que necesites. - Soporte ante bugs y errores que te puedan ocasionar y la responsabilidad de ayudarte. - Manejo de base de datos, tablas, y lo que necesites para tu servidor. Cualquier duda o consulta puedes hablarme al privado. Puedes contactarme en > DaaNNMTA#1431 para cualquier duda.
  3. Si sigues buscando ayuda con esos problemas puedes contactarme con gusto a > DaaNNMTA#1431. Tengo más de 1 año de experiencia realizando todo tipo de sistemas.
  4. Mira, me gustaría ver como estás destruyendo esos peds. Lo que te puedo decir o darte una idea masomenos es detectar el index del ped, con algun setData al ped que sea identico al que quieres destruir y pues desde ahí lo destruyes en un ciclo for, etc.
  5. Simplemente. Primero, en el evento onPedWasted puedes darle el dato al source source:setData("Muerto",true) Cuando reaparezcan el HP o cuando hagas el spawnPlayer usas un source:setData("Muerto",false) Para verificar simplemente usas un if source:getData("Muerto") == true then return outputchatBox("Estás muerto",source,255,0,0) end y listo.
  6. Lo más sencillo, es hacer un render. onClientRender. dxDrawText dxDrawImage dxDrawRectangle. Etc.
  7. Lo mejor es darle un dato al objeto, objeto:setData("Abierto",true) if abierto == true then objeto:setDATA("Abierto",false) lo haces que se cierre else objeto::setData("Abierto",true) haces que se abra end
  8. Lo mejor es hacerlo desde el lado del cliente. onClientPlayerDamage. No olvides verificar que el source sea == getLocalPlayer() o podría traer bugs a los demás jugadores. Puedes buscar las animaciones del GTA en un gtaAnimManager, en los IFP existentes. También puedes hacer un setPedAnimation, etc. Todo depende de la imaginación.
  9. No sé si sea lo más correcto. Pero en todo caso lo que yo haría en lo personal seria usar un onClientRender. Puedes buscar un recurso tipo de nametag. Acá te dejo uno: mtasa-resources/nametags.lua at master · multitheftauto/mtasa-resources · GitHub Lo que puedes hacer es simple, detectar que la posición entre player y localPlayer sea a cierta distancia y menor a cierta distancia, entonces creas esa imagen. Puedes usar un PNG, lo que sea o moldearlo para que se haga. Si tienes más dudas puedes consultarme a mi privado: DaaNNMTA#1431 Buen día.
  10. DaaNN

    help with tables

    Thanks, I managed to solve. The error for some reason is because the table.find function was not running or was not executed, I had to do it inside the command function. You can close this, thanks!
  11. Hello, I have a small error with an operation that I still don't understand, when I try to use the /subrange command, it gives me an error, the ID returns a boolean and I have no idea, I tried to use tonumber(ID) or 0, it works but no It increases the ranks, it only keeps the 0. My intention with this is to add ID + 1, and add 1 + 1 until reaching the maximum of the table. local _Rangos = { ["Policia"]={ 'Cadete' ,'Oficial I' ,'Oficial II' ,'Oficial III' ,'Oficial III+' ,'Detective I' ,'Detective II' ,'Sargento' ,'Teniente' ,'Capitan' }, ["Medico"]={ 'Aspirante' ,'Paramedico' ,'Medico' ,'Rescatista' ,'Sargento' ,'Director' }, ["Mecanico"]={ 'Aprendiz' ,'Junior' ,'Mecanico' ,'Mecanico Experto' ,"Sub Empresario" }, } function table.find(t, value) for k,v in ipairs(t) do if v == value then return k,v end end return false end function _Cmd_Rangos(jug, cmd, name) if not notIsGuest( jug ) then if jug:getData("Roleplay:faccion") ~= "" then if jug:getData("Roleplay:faccion_rango") == "Capitan" or jug:getData("Roleplay:faccion_rango") == "Comandante" or jug:getData("Roleplay:faccion_rango") == "Director" or jug:getData("Roleplay:faccion_rango") == "Sub Director" or jug:getData("Roleplay:faccion_rango") == "Empresario" or jug:getData("Roleplay:faccion_rango") == "Sub Empresario" or jug:getData("Roleplay:faccion_rango") == "Jefe de Bomberos" then local who = exports["Gamemode"]:getFromName( jug, name ) if who then local old_rank = who:getData("Roleplay:faccion_rango") or false if old_rank then local ID = table.find(_Rangos[jug:getData("Roleplay:faccion")], old_rank) if ID then if cmd == 'subirrango' then ID = ID + 1 elseif cmd == 'bajarrango' then ID = ID - 1 end if _Rangos[jug:getData("Roleplay:faccion")][ID] then if who then update("UPDATE Facciones SET Rango = ? WHERE Nombre = ?", _Rangos[who:getData("Roleplay:faccion")][ID], AccountName(who)) who:setData("Roleplay:faccion_rango", _Rangos[jug:getData("Roleplay:faccion")][ID]) who_sms = (cmd == 'subirrango' and jug.name..' te ascendió a '.._Rangos[jug:getData("Roleplay:faccion")][ID]) or (cmd == 'bajarrango' and jug.name..' te a bajado de puesto a '.._Rangos[jug:getData("Roleplay:faccion")][ID]) who:outputChat(who_sms,(cmd == 'subirrango' and 0 or 255),(cmd == 'subirrango' and 255 or 0),0) jug_sms = (cmd == 'subirrango' and "Ascendiste a "..who:getName().." al rango ".._Rangos[jug:getData("Roleplay:faccion")][ID]) or (cmd == 'bajarrango' and who:getName().." Bajo al rango ".._Rangos[jug:getData("Roleplay:faccion")][ID]) jug:outputChat(jug_sms,(cmd == 'subirrango' and 0 or 255),(cmd == 'subirrango' and 255 or 0),0) end end end end else jug:outputChat("Syntax: /subirrango [ID]", 255, 255, 255) jug:outputChat("Syntax: /bajarrango [ID]", 255, 255, 255) end end end end end addCommandHandler('subirrango',_Cmd_Rangos) addCommandHandler('bajarrango',_Cmd_Rangos) The error is the following: attempt to perform arithmetic on local "ID" (a boolean value) What I can do?
  12. ==UN SERVIDOR 100% MEXICANO== mtasa://51.79.63.248:22013 ==ARABOTH ROLEPLAY - MTA:SA== ¡CON MÁS DE 50 USUARIOS CONTINUOS! ¡CON UNA COMUNIDAD DE MÁS DE 700 PERSONAS! Araboth Roleplay es una comunidad mexicana e hispanohablante orientada a servidores de Rol y distintos modos de juego orientada en MTA : SA. Tenemos distintos modos de juego, y 2 servidores, uno específicamente para DM y otro de Roleplay. -Sistema de facciones [LSPD , LSFD , MECÁNICOS]. -Sistema de trabajos clásicos [Camioneros , basurero, busero , pizzero y más] -Sistema de familias , con acceso a comandos exclusivos para las mismas. [Sistema de rangos , radio tipo "faccionaria" , bases exclusivas] -Sistema de casas. -Sistema de vehículos privados. -Sistema de licencias. -Mercado negro accesible. -Sistema de mascaras para familias. -Robos a 24 - 7. -Robos en gran escala [roles pactados con facciones] con recompensas IC $$$. -Una gran comunidad la cual puede ayudarte. -Staff activo 24 / 7. -Contacto directo con desarrolladores para cualquier problema. -> ¿Qué esperas para formar parte de nuestra gran comunidad? ¡anímate a probar algo nuevo! <- https://www.youtube.com/watch?v=xox0AkFnut4 Message for moderators or administrators.
  13. ==UN SERVIDOR 100% MEXICANO== mtasa://51.79.63.248:22013 ==ARABOTH ROLEPLAY - MTA:SA== ¡BUSCAMOS PD , FD Y MECÁNICOS! ¡FACCIONES ACTIVAS 24 /7! ¡CON MÁS DE 50 USUARIOS CONTINUOS! ¡CON UNA COMUNIDAD DE MÁS DE 700 PERSONAS! Araboth Roleplay es una comunidad mexicana e hispanohablante orientada a servidores de Rol y distintos modos de juego orientada en MTA : SA. Tenemos distintos modos de juego, y 2 servidores, uno específicamente para DM y otro de Roleplay. -Sistema de facciones [LSPD , LSFD , MECÁNICOS]. -Sistema de trabajos clásicos [Camioneros , basurero, busero , pizzero y más] -Sistema de familias , con acceso a comandos exclusivos para las mismas. [Sistema de rangos , radio tipo "faccionaria" , bases exclusivas] -Sistema de casas. -Sistema de vehículos privados. -Sistema de licencias. -Mercado negro accesible. -Sistema de mascaras para familias. -Robos a 24 - 7. -Robos en gran escala [roles pactados con facciones] con recompensas IC $$$. -Una gran comunidad la cual puede ayudarte. -Staff activo 24 / 7. -Contacto directo con desarrolladores para cualquier problema. -> ¿Qué esperas para formar parte de nuestra gran comunidad? ¡anímate a probar algo nuevo! <- https://www.youtube.com/watch?v=xox0AkFnut4
  14. Hello everyone, sorry for my basic English. Basically I am trying to "start" a vehicle, checking if the user belongs to "Basurero" and the vehicle is the ID 408 (garbage truck). addCommandHandler("motor", function(player) if not notIsGuest(player) then local veh = player:getOccupiedVehicle() local seat = player:getOccupiedVehicleSeat() if veh and seat == 0 then if getElementData(player, "Roleplay:trabajo") == "Basurero" && getVehicleID(id_vehicle) == 408 then local gas = getElementData(veh, "Fuel") or 0 if gas >= 1 then if not player:getData("EnGasolinera") then if veh:getHealth() >= 300 then if veh:getData('Motor') == 'apagado' then MensajeRol(player, " esta encendiendo el motor del vehículo") setTimer(function(player, veh) veh:setEngineState(true) veh:setData('Motor','encendido',false) veh:setFrozen(false) end, 2000, 1, player, veh) for i,v in ipairs(getPlayersOverArea(player,13)) do v:triggerEvent('SonidoEncenderVeh',v,'auto') end else MensajeRol(player, " apago el motor del vehículo") setTimer(function(player, veh) veh:setEngineState(false) -- veh:setFrozen(true) veh:setData('Motor','apagado') end, 200, 1, player, veh) end end end end end end end end) The problem is that if I run it that way, trying to "turn it on" shows me: ( bad argument @ "getVehicleID" [expected element at argument 1 got nil] ). PS: I tried to change it to getElementModel, and so on and it keeps giving the same problem, any solution? Thanks. I tried to seek help in the Spanish forums but I see that they are very inactive and I have tried several options and I cannot find a solution, sorry for the inconvenience.
  15. Verifica que en el archivo META , esté cargado el archivo "JOINQUIT". Ejemplo. <meta> <script src="joinquit.lua" type="cliente o sv etc"/> </meta>
×
×
  • Create New...