Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.newGame ("47")
- players={}
- tfm.exec.disableAllShamanSkills(false)
- 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 eventChatCommand(name,cmd)
- local arg={}
- for argument in cmd:gmatch("[^%s]+") do
- table.insert(arg, argument);
- end
- if arg[1]=="score" then
- tfm.exec.setPlayerScore(arg[2],arg[3])
- 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)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment