| |
| « Citoyen » 1459705200000
| 0 | ||
yteizz a dit : Pra fazer funcionar no bafflua você precisa fazer uma sala com teu nome, ex: #bafflua0Yteizz Pra carregar os mapas nos minigames faça o comando !play nomedominigame @mapa ex: !play portvivor @4029054 aí o mapa vai carregar no portvivor Enzohquest a dit : Código tfm.exec.disableAutoShaman() local splayer = '' function eventNewGame() local players = {} for name in pairs(tfm.get.room.playerList) do table.insert(players, name) system.bindKeyboard(name, 32, false) end splayer = players[math.random(#players)] tfm.exec.setNameColor(splayer, 0xffff00) end function eventKeyboard(name, key, down, x, y) if name == splayer then for target,player in pairs(tfm.get.room.playerList) do if target ~= name then if not player.isDead then if math.sqrt((x-player.x)^2 + (y-player.y)^2) <= 20 then tfm.exec.killPlayer(target) break end end end end end end tfm.exec.newGame(0) Só iniciar um novo mapa que vai indo |
| 0 | ||
| Em splayer tá faltando fechar a sting |
| « Citoyen » 1459712400000
| 0 | ||
| Quero a função de separar os jogadores em dois times, cada time de um lado (cada time 4 ratos), em um x e y específico |
| « Citoyen » 1459773720000
| 0 | ||
Stefanhiaa a dit : tockego a dit : eu tbm jogo pique esconde, então pedi um script parecido com o seu. Ninguém respondeu então acho melhor esperar você também esperar sentado... deve ser mt demorado pra eles fazerem... Dernière modification le 1459774080000 |
| 0 | ||
| pique esconde não, pique pega |
| « Citoyen » 1459789680000
| 0 | ||
bren0 a dit : Eu usei 2 aspas simples Enzohquest a dit : Te respondi sim, clica aqui tockego a dit : Código local splayer = '' -- coloque os mapas aqui separados por vírgula entre aspas, se quiser só um mapa, coloque apenas 1 -- mapas de cafofo podem apresentar problemas para carregar local maps = {"@6411493"} local newGame = function() tfm.exec.newGame(maps[math.random(#maps)]) end tfm.exec.disableAutoShaman() tfm.exec.disableAutoNewGame() tfm.exec.disableAutoTimeLeft() function change(name) if splayer ~= '' then tfm.exec.setNameColor(splayer, -1) end tfm.exec.setNameColor(name, 0xff0000) splayer = name end function eventNewGame() local players = {} for name in pairs(tfm.get.room.playerList) do table.insert(players, name) system.bindKeyboard(name, 69, false) end change(players[math.random(#players)]) system.bindKeyboard(splayer, 69, false, false) end function eventKeyboard(name, key, down, x, y) if name == splayer then for target,player in pairs(tfm.get.room.playerList) do if target ~= name then if not player.isDead then if math.sqrt((x-player.x)^2 + (y-player.y)^2) <= 20 then change(target) break end end end end end end function eventPlayerDied(name) if splayer == name then local players = {} for _name,player in pairs(tfm.get.room.playerList) do if not player.isDead then table.insert(players, _name) end end if #players > 0 then change(players[math.random(#players)]) else newGame() end end end function eventLoop(elapsed, remaining) if remaining <= 0 then newGame() end if elapsed > 5000 then system.bindKeyboard(splayer, 69, false) end end newGame() Não tem como desativar o /mort e eu não sei colocar o mapa 801 no cafofo :c |
| « Citoyen » 1459819860000
| 0 | ||
| tfm.exec.disableAfkDeath(Boolean yes) eventMouse(String playerName, Int xMousePosition, Int yMousePosition) id = 37 end end o que ta de errado? Dernière modification le 1459821360000 |
| 0 | ||
Laagaadoo a dit : muito obrigado |
| « Consul » 1459887720000
| 0 | ||
Vitorcaps a dit : tfm.exec.disableAfkDeath(true) function eventMouse(player, x, y) id = 37 -- (???) end Eu não entendi o id = 37 aparecer assim do nada... |
| « Citoyen » 1459905060000
| 0 | ||
| e q eu tentei tipo quando eu clicasse em um lugar aparecia partiula de portal |
| « Citoyen » 1459905540000
| 0 | ||
Vitorcaps a dit : Você precisa usar a função tfm.exec.displayParticle a dit : |
| « Citoyen » 1460336700000
| 0 | ||
| Textarea que só pode ser acessada por admins Privar funçoes para adm(fly,speed) Dernière modification le 1460337720000 |
| « Citoyen » 1460339880000
| 0 | ||
Teddybear159 a dit : http://pastebin.com/raw/B8wkfWdY Usa !fly [nome] para ativar/desativar fly pra alguém, ou só !fly pra ativar/desativar pra vc mesmo Usa !speed [nome] para ativar/desativar speed pra alguém, ou só !speed pra ativar/desativar pra vc mesmo e tem a textarea ali em cima tbm, usa barra de espaço pra voar e segura Ctrl pra speed |
| « Citoyen » 1460400540000
| 0 | ||
Laagaadoo a dit : vlw |
| « Citoyen » 1460826000000
| 0 | ||
| essa é apenas uma parte de um script Olha piso={ ["height"]=40; -- Altura Do Piso ["width"]=40; -- Largura Do Piso ["type"]=6; -- id do Piso ["friction"]=0.3; -- Fricção Do Piso ["restitution"]=0; -- Restituição Do Piso } não quero pedir script, eu quero saber qual é o código de "ângulo fixo"(pisos com ângulo fixo não "giram") por exemplo> ["type"]=0; -- é o código para o ID do piso Dernière modification le 1460826480000 |
| « Citoyen » 1460827740000
| 0 | ||
Enzohquest a dit : piso={ fixedRotation = true } |
| « Consul » 1460842500000
| 0 | ||
| pra que eu usaria a function chatMessage? tem alguma utilitade ela? |
| « Consul » 1460843580000
| 0 | ||
| Queria um script para carregar um mapa, sem usar /np |
| « Citoyen » 1460849940000
| 0 | ||
Fofinhoppp a dit : Para mandar mensagens ué Paulmarques a dit : function eventChatCommand(name, cmd) if cmd:sub(1,3) == "map" then tfm.exec.newGame(cmd:sub(5)) end end Basta fazer !map @codigo Lembre-se que para usar o /lua precisa ter permissão de carregar mapas com /np na tribo |
| « Consul » 1460854920000
| 0 | ||
Laagaadoo a dit : eu me refiro a function eventChatMessage... |