-
Content Count
18 -
Joined
-
Last visited
Community Reputation
14 DecentAbout Iaan
-
Rank
Square
Details
-
Location
Brazil
-
Occupation
Programmer
-
Interests
Nothing.
Recent Profile Visitors
728 profile views
-
I know it, but, why not implement this ? It's something simple and very productive. I use a script similiar:
-
But, you can add this. The resource editor is open source.
- 6 replies
-
- map editor
- favourits
- (and 4 more)
-
Não é disputa não, é por que sempre tem um jeito melhor de fazer melhorando o desempenho, entendeu? É sempre bom conhecer como funciona.
-
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.
-
MTA NAO BAIXA OS MODS
Iaan replied to Kleber's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
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.) -
BAN de graça
Iaan replied to CreativeCranium's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Pelo o que parece, você foi pego usando hack,Cheat Engine ou algo do gênero. Terá que esperar acabar seu banimento. -
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 add
-
https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle ID: 126 (MOVE_DRUNKMAN) Olhando a wiki, dá pra ver todos os ID e estilos pra andar.
-
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.
-
Exatamente, acho que muitos aprendem errado dessa forma pensando "se está funcionando está certo.". É bom tentar sempre otimizar o código.
-
Awesome, when i watched your system, i remembered this video, your system was based it?
-
Of course, this is another nice example.
-
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.
-
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.
- 6 replies
-
- vmware mtasa
- vmware
-
(and 2 more)
Tagged with: