Advertisement
Eshkation-

Untitled

Jun 12th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. tfm.exec.disableAutoNewGame(true)
  2. maps={'@3635844','@3523560'}
  3.  
  4. function eventLoop(time,remaining)
  5. if remaining<=0 then
  6. tfm.exec.newGame(maps[math.random(#maps)])
  7. end
  8. end
  9.  
  10. function eventPlayerDied()
  11. local i=0
  12. for n,player in pairs(tfm.get.room.playerList) do
  13. if not player.isDead then
  14. i=i+1
  15. end
  16. end
  17. if i==0 then
  18. tfm.exec.newGame(maps[math.random(#maps)])
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement