Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 26/03/21 in all areas

  1. Você pode desativar a barra de progresso usando setTransferBoxVisible.
    2 points
  2. Olá. Use este resource no seu servidor para obter o nome das texturas.
    2 points
  3. السسسسلااممء عليكمم كيف الحال نشاء الله بخير ^^ Mtaالموضووععء واضح من العنوان وش احسسسنء مبرمجج عندككء في بالنسبههء لي المبدععء طلال 07 ^^
    1 point
  4. 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
  5. in outputChatBox() you have the visibleTo argument, you should set that to who it should send the chatbox message, you can have two lines for each output and a trigger function to send the staffs a copy of it.
    1 point
  6. A PNG-t már megkaparintottad, mi?
    1 point
  7. ah pdc, colocaram essa função nova no 1.5.8, não tava sabendo kkkk
    1 point
  8. Até onde eu sei, não tem como. O que eu recomendo fazer é colocar download="false" no arquivo meta para que o arquivo não baixe automaticamente Por exemplo: <file src="biz.txd" download="false"/> <file src="biz.dff" download="false"/> e depois usar o downloadFile para baixar o arquivo e o evento onClientFileDownloadComplete para realizar uma ação assim que o arquivo é baixado (pode usar isso para criar uma interface gráfica para mostrar o progresso do download dos seus arquivos) Por exemplo: downloadFile ("biz.dff") downloadFile ("txd.dff") function onDownloadFinish ( file, success ) if ( success ) then outputChatBox ('O arquivo '..file..' foi baixado com sucesso.') else outputChatBox ('Erro ao baixar o arquivo '..file) end end addEventHandler ( "onClientFileDownloadComplete", root, onDownloadFinish )
    1 point
  9. Um painel assim seria bem horrível em design e com certeza iria incomodar o usuário. Mas se quer fazer mesmo assim, você pode simplesmente trocar todos os tocolor (...) por uma variável. Dai vc apenas tem que ficar mudando essa variável para alterar a cor do painel inteiro.
    1 point
  10. Olá. Bem, vamos começar pelo fato de que o editbox em si não faz essas ações. ? É necessário alguma lógica por trás. Quando você cria um editbox ou qualquer elemento GUI que seja compatível com [1], você então obtém o valor inserido nesse elemento. Eu sugiro criar abas para cada ação. Enviar dinheiro (primeira aba) Seguindo alguma lógica bem simples: teria dois campos, um para a inserção do nickname do jogador que o usuário deseja enviar o dinheiro, outro para o valor. Uma vez com os dados validados, nós os enviamos para o lado do servidor [2]. Agora que temos os dados (nickname e valor) no lado do servidor, precisamos validar se o nickname pertence à algum jogador [3]. Também, é necessário validar se o valor inserido é maior que zero e menor ou igual ao dinheiro atual [4] do usuário que deseja enviar, pois, caso o valor seja maior que o dinheiro do usuário, quer dizer que ele está tentando enviar quantidades que não existem, e também não queremos valores abaixo de zero (negativo) ou zero. Com tudo validado, já podemos retirar a quantia [5] do usuário que enviou e mandar o valor [6] para o jogador. Você pode mandar um feedback para ambos [7]. Sacar dinheiro (segunda aba) Aqui, nós não teríamos o campo para ser preenchido com o nickname do jogador, apenas a quantia que o usuário deseja sacar. Também, um sistema de banco seria necessário, pois não há como sacar dinheiro de beterraba. Contudo, a lógica seria a mesma, mas agora enviando ao servidor [2] apenas a quantia. Lá, também teria validações, como por exemplo, se a quantia inserida é maior que zero e menor ou igual ao dinheiro existente no banco. Depositar dinheiro (terceira aba) De acordo com a mesma lógica de sacar, enviando ao servidor [2] a quantia, precisamos apenas validar se o usuário de fato tem aquele dinheiro para depositar ao banco. Para isso, use [4] e verifique se é maior ou igual à quantia. Validado, use [5] para retirar a quantia do usuário. LEMBRETE: Tudo o que escrevi acima, levei em consideração que você tem um sistema bancário, com exceção da aba de enviar dinheiro. É claro que você também pode criar o seu próprio. guiGetText triggerServerEvent getPlayerFromName getPlayerMoney takePlayerMoney givePlayerMoney outputChatBox
    1 point
  11. Editei o código da minha resposta.
    1 point
  12. Olá. Veja se funciona. Fiz uma função para evitar código duplicado e também uma lógica para mostrar qual foi o motivo da prisão.
    1 point
  13. Olá. Desligue o seu servidor, abra o acl.xml e adicione o resource.admin novamente à acl Admin, você removeu.
    1 point
  14. Seria mais ou menos desta forma:
    1 point
  15. Respondendo a primeira pergunta, usar o triggerClientEvent corretamente já é suficiente; segunda pergunta, sim, totalmente possível. Crie um ID para cada textura e salve-o numa tabela que teria o jogador indexado. Além do mais, é importante que você crie um cache server-side, para que, assim que os jogadores logarem no servidor, sincronizar com as texturas já ativas nos veículos. Sendo assim, quando o jogador logar, esse cache é enviado para o client-side e lá todas as texturas existentes seriam criadas.
    1 point
  16. Sim, ele deveria ser adaptado. Não tenho experiência alguma com modelagem de veículos, mas o pessoal pode te ajudar lá no Discord oficial do MTA. Mas dando uma resposta bem superficial, pelo o que eu já vi nos canais de ajuda, não me parece ser algo de outro planeta. ? Sobre o script, para quem ainda tá na jornada é sim um pouco complicado entender. Comece a fazer, veja o que consegue. Traga as dúvidas para cá ou use o Discord para pedir ajuda.
    1 point
  17. Olá. Sim, é possível. O único porém é que depende de como o carro foi feito. Às vezes pode ser difícil, às vezes pode ser bem simples. Abrindo a textura do veículo com algum programa de visualização, como o Magic TXD, por exemplo, dá pra saber mais ou menos como você iria aplicar uma textura. Uma vez que você sabe, estas funções serão necessárias: dxCreateShader dxCreateTexture engineApplyShaderToWorldTexture triggerClientEvent - para sincronizar com todos os jogadores.
    1 point
  18. سلام عليكم طبعا كلكم تعرفو gta iv احسن شي انه تشتغل ع اجهزه ضعيفه شوي في برنامج اونلاين اسمه CitizenMP IV Reloaded وهاذا برنامج يستخدام لgta iv عشان تلعب اونلاين طبعا لغة برمجه فيها بال Lua بعض صور ع برنامج اونلاين مثال ع مود يطرد الاعبين عن طريق لوحه كود function splits(self, delimiter) local a = self:Split(delimiter) local t = {} for i = 0, #a - 1 do table.insert(t, a[i]) end return t end local system = {} RegisterServerEvent('commandEntered') AddEventHandler('commandEntered', function(playerid,texts) if system[playerid] == true then TriggerClientEvent('chatMessage',playerid,"Server", { 0, 0x99, 0 },"^1 eorr"); return end command = splits(texts, ' ') if(command[1] == "/kicks") then system[playerid] = true players = GetPlayers() for k, v in ipairs(players) do name_players = GetPlayerName(v) TriggerClientEvent('showDialog',playerid,"DIALOG_TEST", "DIALOG_STYLE_LIST", "Server Dragon",""..name_players.."<br>", "kick", "close",false) end system[playerid] = false plrs = playerid end end ) AddEventHandler('onDialogResponse', function(dialogID, dialogResponse, dialogListitem, dialogInputtext) if(dialogID=="DIALOG_TEST") then if(dialogResponse==1) then if players[dialogListitem + 1] ~= plrs then if(players[dialogListitem + 1] ~= nil ) then DropPlayer(players[dialogListitem + 1], "Your kicked from the server") TriggerClientEvent('chatMessage',-1,"Server", { 0, 0x99, 255 },"^1 the player "..GetPlayerName(players[dialogListitem + 1]).." kick by "..GetPlayerName(plrs)..""); end else TriggerClientEvent('chatMessage',plrs,"Server", { 0, 0x99, 0 },"^1 you cant kick youself"); end end end end) نتيجه وحلوه لعبه صراحه و نفس وقت مظلومه لانه مافيش عدد كفي من الاعبين فا انا هنا نشرت عشان ناس تغير شوي و انا متاكد ماسمعت عن CitizenMP IV Reloaded رابط موقع https://citizeniv.net/ ويكي https://citizeniv.net/wiki/index.php/Main_Page
    1 point
  19. لا حوووووول اللي مايعرفون شي ويفهمون غلط منتجع نيكي بيتش
    1 point
  20. اجل ليه جاي بمنتداها
    1 point
  21. مالكم سيرفر ب mta?
    1 point
  22. السلام عليكم ورحمة الله وبركاته اتهامات سرقة السكربتات بدون دليل ممنوعة, لاحظت في الفترة الأخيرة اتهامات بين أعضاء المنتدى بخصوص نشر سكربتات مسروقة وما شابه ولذلك اذا توفر لديك الدليل الكافي بأن السكربتات مسروقة وليست يملكاً للشخص الذي قام بنشرها قم بالتواصل مع المشرفين على الخاص وسيتم التعامل مع الموضوع. * ملاحظة: ليست لدينا أي صلاحيات تجاه السيرفرات التي تستعمل سكربتات مسروقة, فقط السكربتات التي تم نشرها على هذا المنتدى. تحياتي لكم
    0 points
  23. لا , ام تي اي راح وقتها
    0 points
×
×
  • Create New...