Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maps={"@1782151","@3105156","@760329","@2956156","@2951616","@2956031","@1638989","@3101671","@1782151","@7402460","@3020988"}
- function toStart()
- local i=0
- for n,p in pairs(tfm.get.room.playerList) do
- if not p.isDead then
- i=i+1
- end
- end
- if i==0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- eventPlayerDied=toStart
- eventPlayerWon=toStart
- function eventLoop(time,remaining)
- if remaining <= 0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement