Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.newGame ("47")
- players={}
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.setShaman(name)
- table.insert(players,name)
- end
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.setGameTime(0)
- function eventNewGame()
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.setPlayerScore(name,0)
- end
- end
- function eventPlayerDied(name)
- for name,player in pairs(tfm.get.room.playerList) do
- if tfm.get.room.playerList[name].score<15 then
- tfm.exec.respawnPlayer(name)
- elseif tfm.get.room.playerList[name].score>=15 then
- ui.addTextArea(0, "<J>"..name.."</J><BV> has lost! They won't be revived anymore!", nil)
- elseif players==1 then
- ui.updateTextArea(0, "<J>"..name.."</J><BV> has won the round! Starting a new round..", nil)
- elseif os.time
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment