Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- maps={"@1054567", "@1054567", "0")
- function eventLoop(timePassed, timeLeft)
- if alive == 0 or timeLeft < 1000 then
- nextRound()
- end
- end
- function nextRound()
- tfm.exec.newGame(maps[math.random(#maps)]);
- end
- function eventNewGame()
- alive=0
- for name,player in pairs(tfm.get.room.playerList) do
- alive=alive+1
- end
- end
- function eventPlayerDied(name)
- alive=alive-1
- end
- function eventPlayerWon(name)
- alive=alive-1
- end
Advertisement
Add Comment
Please, Sign In to add comment