Advertisement
Skittlesuni

#Art

Apr 19th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. tfm.exec.disableAutoNewGame(true)
  2. maps={4836388,4383167,5019417,5003157,4598787,5083694,5091812,4503063,5051827,5099057,4555383,4288624,5136790,3260401,5176625,5038667,5177534,5164851,5129418,828892,3693950,3310448}
  3.  
  4.  
  5. function eventLoop(time,remaining)
  6. if remaining<=0 then
  7. tfm.exec.newGame(maps[math.random(#maps)])
  8. end
  9. end
  10.  
  11. function eventPlayerDied()
  12. local i=0
  13. for n,player in pairs(tfm.get.room.playerList) do
  14. if not player.isDead then
  15. i=i+1
  16. end
  17. end
  18. if i==0 then
  19. tfm.exec.newGame(maps[math.random(#maps)])
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement