Advertisement
Guest User

Untitled

a guest
May 10th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. tfm.exec.disableAutoShaman(true)
  2. tfm.exec.disableAfkDeath(true)
  3. tfm.exec.disableAutoNewGame(true)
  4.  
  5.  
  6. maplist = {4660408, 3828508}
  7. maps = maplist[math.random(#maplist)]
  8.  
  9. function module_mirrorGen()
  10.     local i = math.random(15)
  11.     if i <= 9 then
  12.         arg = true
  13.     else
  14.         arg = false
  15.     end
  16. return arg
  17. end
  18.  
  19. function module_newRound(map)
  20.     g = module_mirrorGen()
  21.     tfm.exec.newGame(map, g)
  22. end
  23.  
  24. function eventLoop(time, rem)
  25.     if rem <= 0 then
  26.         module_newRound(maps)
  27.     end
  28. end
  29.  
  30. function eventPlayerDied(name)
  31.     tfm.exec.respawnPlayer(name)
  32. end
  33.  
  34. function eventNewGame()
  35.     tfm.exec.setGameTime(360)
  36. end
  37.  
  38.  
  39. module_newRound(maps)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement