Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- maps={6608938,6607610,6587835,6081554,6039607,5858622,5537984,5536603,5252248,5199571,5075856,4715718,4248910,4204238,4198853,4147703,4103966,4088330,4077501,4063964,4013433,3988317,3950554}
- 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
- for name,player in pairs(tfm.get.room.playerList) do
- if tfm.get.room.playerList[name].isVampire == (true) then
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,32,true,true)
- end
- end
- end
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.giveMeep(name)
- end
- players = {}
- for name,player in pairs(tfm.get.room.playerList) do
- table.insert(players,name)
- end
- tfm.exec.setVampirePlayer(players[math.random(#players)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement