Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true);
- mapas={"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"}
- function nextRound()
- tfm.exec.newGame(mapas[math.random(#mapas)]);
- end
- function eventNewGame()
- vivo=0
- for name,player in pairs(tfm.get.room.playerList) do
- vivo=vivo+1
- end
- end
- function eventPlayerDied(name)
- vivo=vivo-1
- end
- function eventPlayerWon(name)
- vivo=vivo-1
- end
- function eventLoop(tempoPassado, tempoFaltando)
- if vivo == 0 or tempoFaltando < 1000 then
- nextRound();
- end
- end
- nextRound();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement