Advertisement
Guest User

Untitled

a guest
Aug 1st, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. --tables
  2. local maps = {5184638,5188278}
  3. admin={"Drawist","Tiwdamerenda"}
  4. banidos={}
  5. --começo
  6. tfm.exec.disableAutoNewGame(true)
  7. tfm.exec.disableAfkDeath(true)
  8. tfm.exec.disableAutoShaman(true)
  9. tfm.exec.disableAutoNewGame(true)
  10. tfm.exec.disableAutoTimeLeft(true)
  11. tfm.exec.newGame (maps[math.random(#maps)])
  12. ui.addPopup (1,0,"Welcome to <b>#Diff</b> Press <b>H</b> for more information.", nil, 250, 150, 300);
  13.  
  14. function coloradmin()
  15. for _,admins in pairs(admin) do
  16. tfm.exec.setNameColor(admins, 0xFE0000)
  17. tfm.exec.bindKeyboard(admins, 32, true, true)
  18. end
  19. end
  20.  
  21. coloradmin()
  22.  
  23. function startNewGame()
  24. tfm.exec.newGame (maps[math.random(#maps)])
  25. end
  26.  
  27. function eventLoop (t, tr)
  28. if tr <= 1000 then
  29. startNewGame()
  30. end
  31. end
  32.  
  33. function eventNewPlayer(p)
  34. coloradmin()
  35. tfm.exec.respawnPlayer(p)
  36. end
  37.  
  38.  
  39. function eventPlayerWon(p)
  40. tfm.exec.respawnPlayer(p)
  41. coloradmin()
  42. end
  43.  
  44. function eventPlayerDied(p)
  45. tfm.exec.respawnPlayer(p)
  46. coloradmin()
  47. end
  48.  
  49. function eventNewGame()
  50. tfm.exec.setGameTime(360)
  51. coloradmin()
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement