DarkDracoon

Untitled

Oct 3rd, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. tfm.exec.disableAutoNewGame(true)
  2. maps={"@1054567", "@1054567", "0")
  3.  
  4. function eventLoop(timePassed, timeLeft)
  5. if alive == 0 or timeLeft < 1000 then
  6. nextRound()
  7. end
  8. end
  9.  
  10. function nextRound()
  11. tfm.exec.newGame(maps[math.random(#maps)]);
  12. end
  13.  
  14. function eventNewGame()
  15. alive=0
  16. for name,player in pairs(tfm.get.room.playerList) do
  17. alive=alive+1
  18. end
  19. end
  20.  
  21. function eventPlayerDied(name)
  22. alive=alive-1
  23. end
  24.  
  25. function eventPlayerWon(name)
  26. alive=alive-1
  27. end
Advertisement
Add Comment
Please, Sign In to add comment