Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- maps={4836388,4383167,5019417,5003157,4598787,5083694,5091812,4503063,5051827,5099057,4555383,4288624,5136790,3260401,5176625,5038667,5177534,5164851,5129418,828892,3693950,3310448}
- function eventLoop(time,remaining)
- if remaining<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- function eventPlayerDied()
- local i=0
- for n,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- i=i+1
- end
- end
- if i==0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement