Advertisement
Tectoon

[TFM] Bootcamp

Jun 20th, 2015
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.14 KB | None | 0 0
  1. admins = {"Tectoon"}
  2.  
  3. tfm.exec.disableAutoNewGame(true);
  4. mapas={"@177652"}
  5.  
  6. function nextRound()
  7. 
  8. tfm.exec.disableAutoShaman(true)
  9.  
  10.     tfm.exec.newGame(mapas[math.random(#mapas)]);
  11. end
  12.  
  13. function eventNewGame()
  14.     vivo=0
  15.     for name,player in pairs(tfm.get.room.playerList) do
  16.         vivo=vivo+1
  17.     end
  18. end
  19.  
  20. function eventPlayerDied(name)
  21.     vivo=vivo-1
  22. end
  23.  
  24. function eventPlayerWon(name)
  25.  
  26. for name,player in pairs(tfm.get.room.playerList) do
  27.         tfm.exec.setVampirePlayer(name)
  28. end
  29.     vivo=vivo-1
  30.  
  31. ui.addTextArea("1","My egg",name,"50","50","360","100","40","500")
  32. end
  33.  
  34. function eventLoop(tempoPassado, tempoFaltando)
  35.     if vivo == 0 or tempoFaltando < 1000 then
  36.         nextRound();
  37.     end
  38. end
  39.  
  40. nextRound();
  41.  
  42. tfm.exec.setGameTime(361)
  43.  
  44. ui.addTextArea(0, [[<p align='left'><vp>Test]], NIL, 5, 384, NIL, NIL, 0x000001, 0x000000, 0.6, true)
  45.  
  46. for name,player in pairs(tfm.get.room.playerList) do
  47.                     tfm.exec.respawnPlayer(name)
  48. end
  49.  
  50.  
  51. tfm.exec.disableAutoTimeLeft(true)
  52. tfm.exec.disableAutoNewGame(true)
  53. tfm.exec.disableAutoShaman(true)
  54. function eventPlayerDied(p)
  55. tfm.exec.respawnPlayer(p)
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement