Advertisement
Skittlesuni

#infected

May 21st, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. tfm.exec.disableAutoNewGame(true)
  2. maps={6608938,6607610,6587835,6081554,6039607,5858622,5537984,5536603,5252248,5199571,5075856,4715718,4248910,4204238,4198853,4147703,4103966,4088330,4077501,4063964,4013433,3988317,3950554}
  3. function eventLoop(time,remaining)
  4. if remaining<=0 then
  5. tfm.exec.newGame(maps[math.random(#maps)])
  6. end
  7. end
  8.  
  9. function eventPlayerDied()
  10. local i=0
  11. for n,player in pairs(tfm.get.room.playerList) do
  12. if not player.isDead then
  13. i=i+1
  14. end
  15. end
  16. if i==0 then
  17. tfm.exec.newGame(maps[math.random(#maps)])
  18. end
  19. end
  20.  
  21. for name,player in pairs(tfm.get.room.playerList) do
  22. if tfm.get.room.playerList[name].isVampire == (true) then
  23. function eventNewPlayer(name)
  24. tfm.exec.bindKeyboard(name,32,true,true)
  25. end
  26. end
  27. end
  28.  
  29. for name,player in pairs(tfm.get.room.playerList) do
  30. tfm.exec.giveMeep(name)
  31. end
  32.  
  33. players = {}
  34. for name,player in pairs(tfm.get.room.playerList) do
  35. table.insert(players,name)
  36. end
  37. tfm.exec.setVampirePlayer(players[math.random(#players)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement