Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 15/02/19 in all areas

  1. @TOUNSI | ا̍ڸــڛۣــ؏ــٰٱ̍دہ مو ذا نفس مود التوب حقك ؟ المشكلة كاتبلك By Pumpa
    4 points
  2. Achei uma forma, Mude o ID do video Exemplo: https://www.youtube.com/embed/Vi-uK7HcPKw?autoplay=1&controls=0&loop=1&showinfo=0 Testei
    1 point
  3. Tenta com esse link que mandei e ver se funciona mesmo.. Dai tu ver tutorial de como gerar esse tipo de link
    1 point
  4. Você deve deixar o vídeo dessa forma.. ´Só não sei como :\ https://www.youtube.com/embed/5wbHuqYKODo?autoplay=1&controls=0&loop=1&showinfo=0
    1 point
  5. você pode usar o https://wiki.multitheftauto.com/wiki/InterpolateBetween dai a barra funfa.. Edit#1 Você deveria ter mostrado o Client-side não o Server-side '-'
    1 point
  6. Creio eu que o problema não é no Server-side, Mostre o Client-side por favor .
    1 point
  7. Tente usar isso. Tempo = {} function tele(source) setElementData(source, "protele", true) setElementAlpha(source, 150) toggleControl(source, "fire", false) toggleControl(source, "aim_weapon", false) triggerClientEvent (source, "antiTkOn",source) triggerClientEvent(source, "onTele", source) Tempo[source] = setTimer(function() setElementAlpha(source, 255) setElementData(source, "protele", false) toggleControl(source, "fire", true) toggleControl(source, "aim_weapon", true) triggerClientEvent(source, "antiTkOff", source) end, 10000, 1) end addCommandHandler("praia", tele) function SaiuServer ( quitType ) if isTimer(Tempo[source]) then killTimer(Tempo[source]) end end addEventHandler ( "onPlayerQuit", getRootElement(), SaiuServer )
    1 point
  8. Bom não sei se sabe mas quando o setTimer é usado dessa forma o Tempo funciona pra todo mundo, Então eu acho que tu errou nisso. Tempo = {} function tele(source) setElementData(source, "protele", true) setElementAlpha(source, 150) toggleControl(source, "fire", false) toggleControl(source, "aim_weapon", false) triggerClientEvent (source, "antiTkOn",source) triggerClientEvent(source, "onTele", source) Tempo[source] = setTimer(function() setElementAlpha(source, 255) setElementData(source, "protele", false) toggleControl(source, "fire", true) toggleControl(source, "aim_weapon", true) triggerClientEvent(source, "antiTkOff", source) end, 10000, 1) end addCommandHandler("praia", tele) Tente.
    1 point
  9. Olá pessoal! Irei compartilhar com vocês um servidor que não se desenvolve á mais de um ano. Porém, agora em 2018 decidimos voltar com esse desenvolvimento. Nosso entuito é fazer um servidor que seja no modo play, baseado no rpg e roleplay. Estamos no inicio, poucas coisas foram feitas, vou citar algumas e com o tempo vou atualizando o tópico. Desejamos incentivar a comunida brasileira á inovar em seus servidores, infelizmente os servidores brasileiros não possui algum diferencial e estamos na missão de trazer isso. Obrigado pela paciência em ler esse tópico. Contamos com uma equipe formada por seis membros Blowid, harper, Strikergfx, davila, DaeRon e Fellow. - Sistema GangWar – Concluído. - Sistema de Grupos – Concluído. - Sistema de Base – Concluído. - Sistema de Radar com GPS –Concluído, porém em breve terá atualizações. - Sistema de skins de armamento customizados e acessorios – Concluído. - Heits no Estilo GTA V – Concluído. - Concessionária e gerenciamento de veículos – Concluído. - Assalto a caixa eletrônico [ATM] – Concluído. Site | Discord | Facebook
    1 point
  10. Não poste o código direto no texto, use o botão <> para colocar código. E deixe o código devidamente indentado. Recomendo também que você assista esse vídeo antes de continuar:
    1 point
  11. No killTimer needed, because the setTimer runs once. (And the check is a function and not a timer)
    1 point
  12. Clientside local thisTable = {} addEvent("update-------") addEventHandler("update-------", resourceRoot, function (index, data) thisTable[index] = data end, false) Serverside local thisTable = {} function updateTable (target, index, data) thisTable[index] = data triggerLatentClientEvent(target, "update-------", resourceRoot, index, data) end updateTable(target, "index", {"data"}) -- all players updateTable(getElementsByType("player"), "index", {"data"}) -- all players updateTable(getRandomPlayer(), "index", {"data"}) -- just a single player updateTable({getRandomPlayer()}, "index", {"data"}) -- just a single player Keep in mind that when testing this code, it is important to mind "when/timing?" + "triggerClientEvent/communication". As in this example the client hasn't loaded it's scripts yet. Adjust it to your needs. @majqq
    1 point
  13. Opa, boa noite amigão. Sou o ZeeBacon dono do Cidade Vida Real RPG by Brasileiros For Fun. Mano, há uns 3 anos atrás isso aconteceu comigo, mas o contexto foi um pouco diferente. Um ser de um servidor mais ou menos da época criou uma gang no meu servidor e colocou uma base com um arquivo .lua compilado que o mesmo dizia ser a proteção da base, mas no fim era um redirecionador. Se você chegou agora na comunidade do MTA eu já te adianto que tem muito mais pessoas "picaretas" e de má índole do que pessoas que querem o seu bem, então é bom se acostumar. No meu caso não tive como fazer nada e acredito que o Fórum BR do MTA não poderá te ajudar de formas tipo banir o AirNew do MTA ou algo do tipo. Acredito que o máximo que o Fórum BR poderá fazer é uma ponte de contato com algum membro "fodão" da comunidade internacional para que alguma atitude drástica seja tomada contra o acusado... Se precisar relatar algo em inglês é só me chamar que eu escrevo. Já tentei relatar em tópicos de servidores duplicados/fake e etc. mas não adiantou... A única forma viável é levar este caso pra esfera jurídia, sim, falo em processar o AirNew, isso claro se você tiver provas, o que não banirá o sujeito do jogo mas que, se caso comprovar a pilantragem dele, poderá te deixar alguns reais mais rico por conta da fraude do serviço contratado por você, e mal prestado por ele. Se quiser qualquer tipo de ajuda é só me chamar no Discord: ZeeBacon#9346 E novamente: boa noite!
    1 point
  14. Yes, but make you sure, you are using correct name. function createEffects(_, effectName) createEffect(effectName, Vector3(getElementPosition(getLocalPlayer())), Vector3(getElementRotation(getLocalPlayer()))) end addCommandHandler("createEffect", createEffects)
    1 point
  15. شوف يحب نحترم وجه نظرك بس انا راجع بشهر 7 وراح تشوف برمجه حصرية بتلاقي اغلب السيرفرات راح تقلدنا وموفق لك ياحبيب قلبي وين التحطيم يخوي ض انشالله تنوور + منورين الموضوع
    1 point
  16. Yes, I can't explain it better than this: Client (see my example) Trigger: When vehicle damage Condition: You must be the syncer of the vehicle. Actions: - Save updates for the table. (Not a new version of the main table) - Start the buffer timer. 200ms?(if not running already) In case of firedamage or a minigun you will be preventing a trigger event that is send every frame. --------------- Trigger: When the buffer timer is finished. Action: Send the table updates to the server. _______________ _______________ _______________ Server Trigger: When there is an update from the client. Condition: If a player is closer to the vehicle than 300+ units, do action 1 for him. Else do action 2 for him. Action 1: Send a (latent) trigger event to the selected person. Action 2: Save this message in a table. Start a personal buffer timer for him. This table could contain similar types of updates from different vehicles. The data should contain is a reference to the player and to the vehicle. Which you can use to pick the right and latest update for the player. (Also here start the buffer timer only when it is not running for the selected person) -------------- Trigger: When the personal buffer timer is finished.(action 2) Action: Send the table new table to the client.
    1 point
  17. -- Server -- setTimer( function( ) for i , player in pairs( getElementsByType( 'player' ) ) do setPlayerWantedLevel( player , 0 ) end end , 300000 , 0 )
    1 point
  18. I would like to report about a Fake Server that using My server name ! Real Server: mtasa://37.59.72.197:27115 Fake Server: mtasa://178.33.54.31:20932
    1 point
  19. Tem isso no painel do freeroam, e esse resource já vem no MTA. Só ligar o resource e pra abrir é F1.
    1 point
×
×
  • Create New...