Tectoon

[TFM] Rotação

Aug 15th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. maps={"@4007694","@4235925","@4341797","@4297147","@4343898","@4343996","@1492060","@4196573"}; --
  2. function eventLoop(timePassed, timeLeft)
  3. if alive == 0 or timeLeft < 1000 then
  4. nextRound();
  5. end
  6. end
  7.  
  8. function nextRound()
  9. tfm.exec.newGame(maps[math.random(#maps)]);
  10. tfm.exec.setGameTime(63)
  11. end
  12.  
  13. function eventNewGame()
  14. alive=0
  15. for name,player in pairs(tfm.get.room.playerList) do
  16. alive=alive+1
  17. end
  18. end
  19.  
  20. function eventPlayerDied(name)
  21. alive=alive-1
  22. end
  23.  
  24. function eventPlayerWon(name)
  25. alive=alive-1
  26. end
  27. nextRound()
Advertisement
Add Comment
Please, Sign In to add comment