Jump to content

Iaan

Members
  • Posts

    18
  • Joined

  • Last visited

Details

  • Location
    Brazil
  • Occupation
    Programmer
  • Interests
    Nothing.

Recent Profile Visitors

1,021 profile views

Iaan's Achievements

Square

Square (6/54)

14

Reputation

  1. I know it, but, why not implement this ? It's something simple and very productive. I use a script similiar:
  2. But, you can add this. The resource editor is open source.
  3. Não é disputa não, é por que sempre tem um jeito melhor de fazer melhorando o desempenho, entendeu? É sempre bom conhecer como funciona.
  4. Exato, meu exemplo foi o mais genérico possível. Queria apenas demonstrar o uso da função e não fazer um script para /bebado.
  5. Se caso o problema for com você, verifique se você não bloqueou a porta 22005 no seu modem. (Fica ai a resposta pra quem ainda tem o problema.)
  6. Pelo o que parece, você foi pego usando hack,Cheat Engine ou algo do gênero. Terá que esperar acabar seu banimento.
  7. Havia entendido que só precisava do style... Para fazer do jeito que você quer, assim que você ativa a animação você vai precisar bloquear o controle de correr com toggleControl(https://wiki.multitheftauto.com/wiki/ToggleControl) e quando sair da animação, você vai precisar habilitar novamente. local isDrunk = false function drunkPlayer(player,cmd) if not (isDrunk) then setPedWalkingStyle(player,126) toggleControl(player,"sprint",false) isDrunk = true else setPedWalkingStyle(player,0) toggleControl(player,"sprint",true) isDrunk = false end end addCommandHandler("bebado",drunkPlayer) (Não testei)
  8. https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle ID: 126 (MOVE_DRUNKMAN) Olhando a wiki, dá pra ver todos os ID e estilos pra andar.
  9. function changeSkin(player,cmd,skinID) skinID = tonumber(skinID) if(skinID) then if(setElementModel(player,skinID)) then outputChatBox("SKIN SETADA.",player) else outputChatBox("Erro ao setar skin.",player) end end end addCommandHandler("change",changeSkin) Recomendo a entender os conceitos básicos de programação pois isso é um script muito simples. (Caso não tenha uma verificação de quem pode alterar a skin e tudo mais.) Mas existe resources que são mais completos, basta procurar na MTA Community.
  10. Exatamente, acho que muitos aprendem errado dessa forma pensando "se está funcionando está certo.". É bom tentar sempre otimizar o código.
  11. Awesome, when i watched your system, i remembered this video, your system was based it?
  12. Of course, this is another nice example.
  13. Hello everyone Today I was thinking of a pro idea in the "meta.xml" file. <file src = "images/*" /> The "*" represents all archives. (Loop) When I do this, everything in the resource, in the folder "images" will be imported automatically, avoiding to write each file.
  14. Iaan

    [Problem] Virtual Machine

    Before,IP is not shown, now i tried and successful. 1 - Open the linux-server and wait for IP 2 - Open client in VM Thanks for support, bro.
×
×
  • Create New...