Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adm = "Bloonshack" -- Seu Nome
- tfm.exec.disableAutoNewGame()
- tfm.exec.setGameTime()
- maps = {"@6764611", "@6764611", "@6764611"}
- lastMaps = {}
- selectMap = function()
- local id = math.random(1, #maps)
- if #lastMaps == #maps then
- lastMaps = {}
- end
- while (id == (nextMap or {}).id or lastMaps[id]) do
- id = math.random(1, #maps)
- end
- return {id = id, code = maps[id]}
- end
- eventLoop = function(elapsedTime, remainingTime)
- if remainingTime <= 0 or (function() local out = true for k, v in next, tfm.get.room.playerList do out = (out and v.isDead) if not v.isDead then break end end return out end)() then
- tfm.exec.newGame(nextMap.code)
- end
- end
- eventNewGame = function()
- lastMaps[nextMap.id] = true
- nextMap = selectMap()
- end
- nextMap = selectMap()
- tfm.exec.newGame(nextMap.code)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement