Advertisement
Overjoy06

a

Aug 4th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. map = [[<C><P /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="10" H="408" X="-5" Y="198" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="814" H="10" X="396" Y="404" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" H="413" X="806" Y="201" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="823" H="10" X="398" Y="-1" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="710" H="10" X="450" Y="84" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="710" H="10" X="450" Y="160" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="710" H="10" X="450" Y="241" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="710" H="10" X="450" Y="324" T="0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" H="407" X="92" Y="196" T="0" /><S P="0,0,0,1.2,0,0,0,0" L="89" H="10" X="43" Y="403" T="2" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" H="408" X="191" Y="200" T="0" /></S><D><F Y="149" X="782" /><F Y="73" X="782" /><T Y="77" X="782" /><F Y="312" X="782" /><T Y="155" X="782" /><F Y="230" X="782" /><F Y="393" X="782" /><T Y="237" X="782" /><T Y="319" X="782" /><T Y="399" X="782" /><DS Y="382" X="41" /></D><O /></Z></C>]]
  2. tfm.exec.disableAutoNewGame(true)
  3. tfm.exec.disableAutoShaman(true)
  4. tfm.exec.disableAfkDeath(false)
  5. tfm.exec.newGame(map)
  6.  
  7. ui.addTextArea(0, "<a href='event:uno'><b><J>Team 1!</b></J>", name, 109, 40, 62, 20, 0x324650, 0x000000, 1, true)
  8. ui.addTextArea(1, "<a href='event:dos'><b><J>Team 2!</b></J>", name, 109, 113, 62, 20, 0x324650, 0x000000, 1, true)
  9. ui.addTextArea(2, "<a href='event:tres'><b><J>Team 3!</b></J>", name, 109, 190, 62, 20, 0x324650, 0x000000, 1, true)
  10. ui.addTextArea(4, "<a href='event:quatro'><b><J>Team 4!</b></J>", name, 109, 270, 62, 20, 0x324650, 0x000000, 1, true)
  11. ui.addTextArea(5, "<a href='event:sinco'><b><J>Team 5!</b></J>", name, 109, 350, 62, 20, 0x324650, 0x000000, 1, true)
  12.  
  13. --This will be removed once every team has a player in it.
  14. tfm.exec.addPhysicObject(1,191,200,{
  15. type=0,
  16. restitution=0.2,
  17. friction=0.3,
  18. width=10,
  19. height=408,
  20. groundCollision=true
  21. })
  22.  
  23. function eventTextAreaCallback(id, name, evt)
  24. if evt == "uno" then
  25. team1 = {}
  26. table.insert(team1, name)
  27. tfm.exec.movePlayer(name,109,40,offset,0,0,offset)
  28. ui.addTextArea(3, "<B><J>Click Spacebar To Move To Your Right. Destroy The Other Competitions, This Module Was Made By Overforyou#9290!", name, 19, 26, 767, 22, 0x324650, 0x000000, 1, true)
  29. ui.removeTextArea(0, nil)
  30. ui.removeTextArea(1, name)
  31. ui.removeTextArea(2, name)
  32. ui.removeTextArea(4, name)
  33. ui.removeTextArea(5, name)
  34. end
  35.  
  36. if evt == "dos" then
  37. team2 = {}
  38. table.insert(team2, name)
  39. tfm.exec.movePlayer(name,109,113,offset,0,0,offset)
  40. ui.addTextArea(3, "<B><J>Click Spacebar To Move To Your Right. Destroy The Other Competitions, This Module Was Made By Overforyou#9290!", name, 19, 26, 767, 22, 0x324650, 0x000000, 1, true)
  41. ui.removeTextArea(0, name)
  42. ui.removeTextArea(1, nil)
  43. ui.removeTextArea(2, name)
  44. ui.removeTextArea(4, name)
  45. ui.removeTextArea(5, name)
  46. end
  47.  
  48. if evt == "tres" then
  49. team3 = {}
  50. table.insert(team3, name)
  51. tfm.exec.movePlayer(name,109,190,offset,0,0,offset)
  52. ui.addTextArea(3, "<B><J>Click Spacebar To Move To Your Right. Destroy The Other Competitions, This Module Was Made By Overforyou#9290!", name, 19, 26, 767, 22, 0x324650, 0x000000, 1, true)
  53. ui.removeTextArea(0, name)
  54. ui.removeTextArea(1, name)
  55. ui.removeTextArea(2, nil)
  56. ui.removeTextArea(4, name)
  57. ui.removeTextArea(5, name)
  58. end
  59.  
  60. if evt == "quatro" then
  61. team4 = {}
  62. table.insert(team4, name)
  63. tfm.exec.movePlayer(name,109,270,offset,0,0,offset)
  64. ui.addTextArea(3, "<B><J>Click Spacebar To Move To Your Right. Destroy The Other Competitions, This Module Was Made By Overforyou#9290!", name, 19, 26, 767, 22, 0x324650, 0x000000, 1, true)
  65. ui.removeTextArea(0, name)
  66. ui.removeTextArea(1, name)
  67. ui.removeTextArea(2, name)
  68. ui.removeTextArea(4, nil)
  69. ui.removeTextArea(5, name)
  70. end
  71.  
  72. if evt == "sinco" then
  73. team5 = {}
  74. table.insert(team5, name)
  75. tfm.exec.movePlayer(name,109,350,offset,0,0,offset)
  76. ui.addTextArea(3, "<B><J>Click Spacebar To Move To Your Right. Destroy The Other Competitions, This Module Was Made By Overforyou#9290!", name, 19, 26, 767, 22, 0x324650, 0x000000, 1, true)
  77. ui.removeTextArea(0, name)
  78. ui.removeTextArea(1, name)
  79. ui.removeTextArea(2, name)
  80. ui.removeTextArea(4, name)
  81. ui.removeTextArea(5, nil)
  82. end
  83. end
  84.  
  85. if #team1 > 0 then--and #team2 > 0 and #team3 > 0 and #team4 > 0 and #team5 > 0 then
  86. ui.removeTextArea(0, nil)
  87. ui.removeTextArea(1, nil)
  88. ui.removeTextArea(2, nil)
  89. ui.removeTextArea(4, nil)
  90. ui.removeTextArea(5, nil)
  91. tfm.exec.removePhysicObject(1)
  92. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement