Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maps={"@4007694","@4235925","@4341797","@4297147","@4343898","@4343996","@1492060","@4196573"}; --
- function eventLoop(timePassed, timeLeft)
- if alive == 0 or timeLeft < 1000 then
- nextRound();
- end
- end
- function nextRound()
- tfm.exec.newGame(maps[math.random(#maps)]);
- tfm.exec.setGameTime(63)
- 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
- nextRound()
Advertisement
Add Comment
Please, Sign In to add comment