Advertisement
Guest User

Untitled

a guest
Jul 12th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. -- Tabelas
  2.  
  3. admins={"Kombizinha","Mitoluizmice"}
  4.  
  5. -- Variaveis
  6.  
  7. rt=0;
  8.  
  9. -- Inicio Do Script
  10.  
  11. tfm.exec.disableAutoNewGame(true)
  12. tfm.exec.disableAutoShaman(true)
  13. tfm.exec.disableAutoScore(true)
  14. tfm.exec.disableAutoTimeLeft(true)
  15. tfm.exec.disableAfkDeath(true)
  16.  
  17. -- Funções
  18.  
  19. function newRound()
  20. tfm.exec.newGame(maps[math.random(#maps)])
  21. end
  22.  
  23. function eventNewGame()
  24. vivo=0;
  25. for name,player in pairs(tfm.get.room.playerList) do
  26. vivo=vivo+1;
  27. end
  28. end
  29.  
  30. function eventChatCommand(p,c)
  31. if c == [[rotation]] then
  32. rt=rt+1;
  33. elseif c == [[rotation off]] then
  34. rotationonline=rotationonline-1;
  35. if rt==2 then
  36. rt=rt-1;
  37. end
  38. end
  39. end
  40.  
  41. -- Nova Rodada
  42.  
  43. newRound();
  44.  
  45. -- Loop
  46.  
  47. function eventLoop(ct,tr)
  48. if vivo == 0 or tr == 0 and rt=1 then
  49. newRound();
  50. end
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement