Advertisement
alditojeje

Untitled

Nov 9th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. adm="Blood#3565"
  2. tfm.exec.setNameColor("Blood#3565", 0xCA2411)
  3. tfm.exec.disableAfkDeath(true)
  4. tfm.exec.disableAutoShaman()
  5. tfm.exec.disableAutoNewGame()
  6. tfm.exec.disableAutoTimeLeft()
  7. tfm.exec.disablePhysicalConsumables()
  8. tfm.exec.disableAutoScore()
  9. tfm.exec.newGame(7589151)
  10. system.disableChatCommandDisplay("mapa", true)
  11.  
  12. local gameRunning = false
  13. local teams = {
  14. [1] = {},
  15. [2] = {},
  16. }
  17. local points = {
  18. [1] = 0,
  19. [2] = 0,
  20. }
  21.  
  22. local colors = {
  23. [1] = "e54427",
  24. [2] = "0a98db",
  25. }
  26.  
  27. local maps = {7623375, 7618265, 7598750}
  28.  
  29. function newMap()
  30. local mapcode = maps[math.random(#maps)]
  31. tfm.exec.newGame(mapcode)
  32. end
  33.  
  34.  
  35. function eventChatCommand(playerName, command)
  36. if command == "mapa" then
  37. newMap()
  38. end
  39. end
  40.  
  41. ui.addTextArea(16, "<p align='center'><V><a href='event:iniciarJuego'>Iniciar", ADMINISTRADOR, 375, 203, 40, 18, 0x324650, 0x324650, 1, true)
  42.  
  43. function eventTextAreaCallback(id, player, callback)
  44. if callback == 'iniciarJuego' then
  45. gameRunning = true
  46. for i = 1, 20 do
  47. ui.removeTextArea(i)
  48. end
  49. for i = 26, 60 do
  50. ui.removeTextArea(i)
  51. end
  52. newMap()
  53. tfm.exec.setGameTime(1080)
  54. contarJugadores()
  55. end
  56. end
  57.  
  58.  
  59. function eventPlayerDied (playerName)
  60. tfm.exec.respawnPlayer(playerName)
  61. tfm.exec.setNameColor("Blood#3565", 0xCA2411)
  62. end
  63.  
  64. jugadoresEnSala = 0
  65. function jugadores()
  66.  
  67. for name in pairs(tfm.get.room.playerList) do
  68. jugadoresEnSala = jugadoresEnSala +1
  69. end
  70. function eventPlayerLeft()
  71. jugadoresEnSala = jugadoresEnSala -1
  72. end
  73. end
  74.  
  75. jugadores()
  76.  
  77.  
  78. function establecerEquipos()
  79. for k in pairs(tfm.get.room.playerList) do
  80. if jugadoresEnSala % 2 == 0 then
  81.  
  82.  
  83. else
  84.  
  85. end
  86. end
  87. end
  88.  
  89. establecerEquipos()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement