Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 19/08/21 in all areas

  1. You can find Multi Theft Auto on video media platforms YouTube and Twitch! Subscribe to us on YouTube Follow us on Twitch
    3 points
  2. Effects Add-on for MTA:SA Map Editor Download resource on GitHub > You want to add effects inside the MTA:SA Map Editor? You've come to the right place. Installation Download the latest release on GitHub Put the resource inside your MTA San Andreas 1.5/server/mods/deathmatch/resources folder Refresh resources by running refreshall in your server console The add-on is ready for use! How to use in map editor Start the map editor resource (editor) or enter the Map Editor from the main menu Click "definitions" from the top editor menu Add "editor_addon_effects" to your definitions and press OK Hover on the buttons in the bottom-left corner, and scroll your mouse wheel once Click the "Effect" button to place a new effect into the game world, there are also many particle types you can place into the game world Double-click the effect to change its properties, such as type, draw distance, sound, density, speed and respawn Once you've finished with your map, save the map in a resource How to use with a saved map Start your map resource together with this "editor_addon_effects" resource, and you should be able to see the effects and particles placed in the game world using your defined settings! License MIT License Copyright (c) 2021 patrikjuvonen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Download resource on GitHub >
    1 point
  3. Check it out. You can do it this way: setPedAnimation(getLocalPlayer(),"BOMBER","BOM_Plant") setTimer(function() setPedAnimationProgress(getLocalPlayer(), "BOM_Plant", 0.35) end,1200,50)
    1 point
  4. hola crack aqui un pequeño pack espero que te sirva link:https://www.mediafire.com/file/np11fljlohxqjnh/pack_de_scripts_mta_%231.zip/file#1.zip/file Video:
    1 point
  5. Hola Buenas Necesito ayuda con este error Trato de crear la Tabla para el /yo para que aparezca en el personaje y se guarda en la db para que no se borre , al crear la tabla dice: sql/layout.Lua:115: unable to create column characters.yo
    1 point
  6. Hola em no tengo que se guarde en el db sol uno simple que no se guarda me dices si te sirve para enviártelo
    1 point
  7. addEventHandler( "onPlayerDamage", root, function (attacker, damage, bodypart, loss) if getElementHealth(source) - loss < 80 then --Calcula se o player ficará com menos de 80 de vida com o dano. Se sim, já retira o dinheiro. takePlayerMoney( source, 100 ) --Tira 100 de dinheiro de quem sofreu dano end end) Corrigi algumas coisinhas e diminui um pouco o código.
    1 point
  8. Não funciona se fizer ao mesmo tempo que o bot é criado. Pois ele demora até ser concluída a sua criação. Função spawnBot é chamada. Cria o Ped no mesmo instante, este ped é o elemento retornado pela função spawnBot. Chama o evento "onBotSpawned" no mesmo instante. O source deste evento é o Ped, mas ele ainda não é um Bot. Seta o ID da arma como elementData "BotWeapon" no Ped, no mesmo instante que a função foi chamada. Seta o time como elementData "BotTeam" no Ped, no mesmo instante que a função foi chamada. (O bot não é setado de fato em um time, pois isso só funciona com players, mas ele usa essa data para atacar quem não estiver no time de sua data.) Após 100 milissegundos que a função foi chamada, seta o Ped no interior. Após 100 milissegundos que a função foi chamada, seta o Ped na dimensão. Após 200 milissegundos que a função foi chamada, torna o Ped um Bot setando elementData "slothbot" nele. Após 200 milissegundos que a função foi chamada, permite que o Ped ataque, mesmo que você já tenha tentado proibir antes. Aqui é o instante ideal para proibir que ele ataque. (Entre 200 e 300ms) Após 300 milissegundos que a função foi chamada, inicia o funcionamento do Bot. Após 400 milissegundos que a função foi chamada, seta a elementData de "leader" se o status for "following" ou "target" se o status for "chasing". Após 600 milissegundos que a função foi chamada, seta o status do bot como elementData "status". Após 800 milissegundos que a função foi chamada, seta arma no Bot, com 99.999 de munição. O tempo ideal para mandar o bot não atacar, é entre o tempo que ele se tornou bot (200ms) e o tempo que ele vai começar a funcionar (300ms). Mas vale lembrar que essa função não vai impedir que ele siga o jogador. Para evitar que o Bot fique seguindo, crie ele no modo "guarding". AtendenteLoja1 = exports["slothbot"]:spawnBot (308.158, -143.091, 999.602, 0, PedModel, 7, 5, false, 0, "guarding") -- Cria o bot no modo "guarding" para ele manter sua posição. setTimer (function () -- Executa isso após 250 milissegundos. (depois que ele se tornou bot e antes dele começar a funcionar) exports["slothbot"]:setBotAttackEnabled (AtendenteLoja1, false) -- Faz o bot não atacar. Mas ele ainda vai ficar seguindo o alvo se não estiver no modo "guarding" end, 250, 1)
    1 point
  9. Hey folks So, I joined this community back in 2008, when MTA SA DM DP1 was released. It was great. I played in servers. I scripted stuff. The scripting part is especially important here, because I was amazed to see what possibilities to customize the game MTA SA gives to the scripters, and that's what got me involved so much. It was by scripting on MTA that I got lots of coding experience. I had such a great time that 2008 was one of the most memorable years for me, because I can still remember the good moments, including my first time playing the non-race version (I played MTA SA Race in 2007, but only a little bit, and didn't think much of it) and my first attempts to script. As time went by, I set goals for myself. I thought of making my own server with my own gamemode. I didn't just want it for my own gains, I wanted it for the good of MTA, too! I wanted to make use of MTA scripting possibilities, to let the greatness of MTA be known! However, as I still wasn't that good at scripting nor at setting goals (they were huge), I wasn't exactly being productive. I experimented a lot and learned a lot, but apart from that, it didn't really go anywhere. After a few years of playing around, I realized my goals weren't going to come true. I decided I just wanted to be useful to MTA community. That's when I made and released a few scripts, including Drawtag, Gravity gun and NPC traffic. Later I made my own server after all, with a gamemode very different from what I had originally planned. But I was too busy with crap in my life to continue working on it, so I had to end it. I didn't want to abandon MTA. All those dreams that never came true. But I didn't see any other way. I stopped playing and scripting on MTA. Eventually I drifted away and stopped visiting this forum altogether. During the time I was away, I was just living life, but not really feeling like I was enjoying it. There were ups and downs. You know, everyone goes through different phases of life. But now I feel bad about it. It wasn't necessarily my fault that I left, but it was my fault that I didn't come back for so long. Now that I finally did, it seems there have been people who were looking for me, but I don't even know if it's of any use to reply to messages I received 3 to 5 years ago. I'm regularly on YouTube though, but even there, often I didn't feel like replying to comments right away and forgot about them later. I'm feeling like a busta who ran away and left his homies when there was no reason to. I'm feeling like I have betrayed MTA because it gave me so much, but I didn't manage to benefit it as much as I thought it deserved. Things have surely changed around here while I was gone. I see there are admins and moderators who weren't even on this forum when I left. And honestly, I don't remember many people in particular. I don't remember well who was and who wasn't here back in those days. I don't know if anyone here misses me. I'm so out of touch. Kinda sucks, doesn't it? After wandering for years, I'm finally back home, but I'm not even sure if it's still the same home that I've been missing because I don't even know if people here are still the same people that I left. But I see some usernames that look familiar and I can take comfort in that. MTA seems to be doing much better than before. I didn't expect it to become so popular! I'm supposed to be happy about this, because it was my dream to see MTA achieve the popularity that it deserves. But it feels like yet another thing I missed out on. I wasn't a part of MTA community during the time that it grew so much. What a shame. Unfortunately, I don't have plans to resume MTA scripting, not big ones at least. It's a pity, seeing how MTA now has scripting features that I used to dream of. But I just don't think I currently can focus on it. Still, it feels tempting to try. I'm curious, how much have peds been improved? In the old days, I would run into problems because the peds would lose information about health, ammo and many other things, when they got streamed out, so I couldn't have them properly synced and had to resort to workarounds. What about model/texture replacing? I see there are some new related functions, so this functionality must have been improved, right? I remember trying to import Liberty City and Vice City back in 2010, and I managed to convert Liberty City, but I couldn't load it all at once, because 512 MB of RAM was not enough to replace that many models at the same time. And replacing the models dynamically (based on distance to the player) wasn't working well, there were bugs and some models weren't actually getting replaced. My scripts website is no longer there. I still have the files, but I see someone made a GitHub repository and uploaded the resources there, so I guess it's okay as it is. The resources are available to everyone and I'm thankful for that. If I ever decided to make scripts for the community to use, I would start from scratch rather than continue working on the old ones. The same can be said about the server I had, I have the gamemode and the database, but if I wanted to run a server again, I would start the gamemode all over. While the future of my involvement in MTA scripting is uncertain, I'm seeking to be active on this forum once again. I want to be in touch with MTA and the community. Maybe I should try helping people in scripting section or something like that. Perhaps make some tutorial. I'm much better at programming than I used to be. I'm working on my own game engine, but I don't want to make it sound like I'm doing something big or anything like that. This is another thing that I took my time to play around with. I started it long ago, I learned a lot, but I have little results. Either way, it was MTA that inspired me to do it. And I have an idea to make a common scripting interface for MTA and my engine so that scripts made using this interface would work on both. Not stating that's what's going to happen, I'm just thinking of ways to make scripts for MTA even when I have to focus on something else. With things I learned in the recent years, some MTA script ideas that I once considered difficult to implement, look much easier now. Hell, even if I made the mistake of leaving MTA for so long, these years were still far from wasted. That's pretty much all I wanted to say for now. I left for several years, now I feel bad about it, "but now I'm back, and I know what I've been missing". Not sure how much I'm going to be involved in MTA scripting, if at all, but I just want to be a part of this community again.
    1 point
  10. Tengo una VPS la cual ya ni recuerdo como se usa, tengo años que ya no juego a alguien le interesa alojar su servidor o servidores alli? se paga sola de mi tarjeta y el gasto es minimo no tengo problema en facilitarle esto a alguien quien le interese que me escriba aca o a mi correo para ver el mensaje mas rapido. [email protected]
    1 point
  11. Hey, so I had some updates and changes that were only on DDC server so far, which I also uploaded to this repository now. New or improved: - Scoreboard - Userpanel - Battle Royale added - Podium added - Register/Login to local database - and more I haven't done any testing after changing how login and register works, so there might some problems which you will have to fix on your own. Probably Userpanel might need some editting to work this way. Maybe someone can use these updates for their own server or some of the code at least. https://github.com/Bonsai11/Multigamemode (The screenshots on Github are not necessarily accurate anymore.) Bonsai
    1 point
  12. Este script funciona muy fácil da los datos de la cuenta sabe aclarar que se magnesita que esta vinculado con los otros sistemas para que funcione con normalidad ,si no vincula los datos estarán por defecto en 100 Muestra:? vida chaleco dinero dinero bancario nivel de sed nivel de hambre nivel exp empleo Imagen: Descarga: https://community.multitheftauto.com/index.php?p=resources&s=details&id=18530
    0 points
  13. Hola amigo, tengo un problema con este maravilloso script, pasa que no quiero que sea por *teams*, Solo quiero que una Faccion de mta roleplay la tenga osea la de policia, asi me queda mas facil, por que al momento de que mis policías se pongan de servicio, eh estado intentando pero no te da el team, si me podrias ayudar almenos a que cuando pongas /servicio te agregué al team por favor, o si no borrar el team que cualquiera lo pueda usar, Gracias y espero que leas este mensaje Wapo
    0 points
  14. server has been closed for a long time but then i sold it and it somehow got leaked by a brazilian guy named "Sil3nce". Whatever, maybe i'll soon release full original code.
    0 points
×
×
  • Create New...