Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- maps={[[4552032]],[[4514923]],[[4514584]],[[4514470]],[[4514471]],[[5661140]],[[5665742]],[[5663697]],[[4535182]],[[4514472]]}
- 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
- function eventPlayerGetCheese(playerName)
- tfm.exec.movePlayer(playerName,400, 600,offset,0,0,offset)
- end
- function eventPlayerWon(playerName)
- tfm.exec.setPlayerScore(playerName,5,true)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement