Advertisement
Dudugz-Contistente

Untitled

Sep 14th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.15 KB | None | 0 0
  1. tfm.exec.disableAfkDeath()
  2. tfm.exec.disableMortCommand()
  3. tfm.exec.disableAutoNewGame()
  4. tfm.exec.disableAutoShaman()
  5. tfm.exec.disableAutoTimeLeft()
  6. tfm.exec.disableAutoScore()
  7. tfm.exec.setGameTime(99999)
  8.  
  9. titan={
  10. spawned=false,
  11. x=0,
  12. y=0,
  13. dir={0,0}
  14. }
  15.  
  16. data={}
  17.  
  18. adm = "Shiobausamak"
  19. chover=false
  20. tp=false
  21.  
  22. local particula = tfm.exec.displayParticle
  23. local piso = tfm.exec.addPhysicObject
  24.  
  25. maps = {"@7166299", "@7166675", "@7170921", "@7161280", "@7207388", "@7224191"}
  26. cordas = {
  27. type = 12, -- tipo do piso
  28. color = 0x000000, -- cor do piso
  29. width = 5000, -- tamanho do piso(largura)
  30. height = 10, -- tamanho do piso(altura)
  31. angle = -35,
  32. miceCollision = false -- Colisão com os ratos(false para não colidir, true para colidir)
  33. }
  34. cordas1 = {
  35. type = 12, -- tipo do piso
  36. color = 0x000000, -- cor do piso
  37. width = 5000, -- tamanho do piso(largura)
  38. height = 10, -- tamanho do piso(altura)
  39. angle = 35,
  40. miceCollision = false -- Colisão com os ratos(false para não colidir, true para colidir)
  41. }
  42. braco = {
  43. type = 12,
  44. color = 0x78583b,
  45. width = 35,
  46. height = 13
  47. }
  48. tronco = {
  49. type = 12,
  50. color = 0x78583b,
  51. width = 43,
  52. height = 75
  53. }
  54. circulo = {
  55. type = 13,
  56. color = 0x78583b,
  57. width = 17,
  58. height = 17
  59. }
  60. cabeca = {
  61. type = 13,
  62. color = 0x78583b,
  63. width = 22,
  64. height = 22
  65. }
  66. function eventKeyboard(soldado, key, down, x, y)
  67. name=soldado
  68. if key == 69 then
  69. player=tfm.get.room.playerList[name]
  70. if (2970 >= player.x - 20 and 2970 <= player.x + 20 and 7930 >= player.y - 20 and 7930 <= player.y + 20) and data[name].cannon < os.time()-10000 then
  71. tfm.exec.addShamanObject(17,3030,7945,110)
  72. particula(3,2990,7935)
  73. data[name].cannon=os.time();
  74. end
  75. end
  76.  
  77. if key == 69 and actived[name] then
  78. titan.dir={0,0}
  79. end
  80.  
  81. if key == 37 and actived[name] then
  82. titan.dir={-10,0}
  83. end
  84.  
  85. if key == 39 and actived[name] then
  86. titan.dir={10,0}
  87. end
  88.  
  89. if key == 17 and name == adm then
  90. if tp == false then tp=true elseif tp == true then tp=false end
  91. end
  92.  
  93. if key == 88 then
  94. player=tfm.get.room.playerList[name]
  95. direita=player.isFacingRight
  96. if direita and data[name].press < os.time()-5000 then
  97. tfm.exec.movePlayer(name,0,0,false,75,0,true)
  98. particula(35, x-20, y, name)
  99. data[name].press=os.time();
  100. elseif data[name].press < os.time()-5000 then
  101. tfm.exec.movePlayer(name,0,0,false,-75,0,true)
  102. particula(35, x+20, y, name)
  103. data[name].press=os.time();
  104. end
  105. end
  106. if key == 72 then
  107. tfm.exec.movePlayer(soldado,0, 0, true, -100, -75, false)
  108. piso(100,x-1630,y-1140,cordas1)
  109. particula(3, x, y, soldado)
  110. elseif key == 75 then
  111. tfm.exec.movePlayer(soldado, 0, 0, true, 100, -75, false)
  112. piso(100,x+1630,y-1140,cordas)
  113. particula(3, x, y, soldado)
  114. end
  115. end
  116. function eventNewGame()
  117. eventMouse(nil,400,200)
  118. for i = 1,51 do
  119. tfm.exec.addShamanObject(3, -500, 2800)
  120. end
  121. for i in pairs(tfm.get.room.playerList) do
  122. data[i].life = 100
  123. ui.addTextArea(1,"",i,6,30,math.floor(data[i].life*2),16,0x00EE00,0x00CD00,70,true)
  124. ui.addTextArea(2,"<p align='center'><R>"..data[i].life.."/100",i,6,30,200,16,0,0,0,true)
  125. tfm.exec.setPlayerScore(i,data[i].life,false)
  126. end
  127. end
  128.  
  129. function eventPlayerDied(name)
  130. data[name].life = 0
  131. ui.addTextArea(1,"",name,6,30,math.floor(data[name].life*2),16,0,0,0,true)
  132. ui.addTextArea(2,"<p align='center'><font color='#EE2C2C'><font size='18'>You are dead",name,6,25,200,nil,0,0,0,true)
  133. tfm.exec.setPlayerScore(name,data[name].life,false)
  134. end
  135.  
  136. function regen()
  137. for n in pairs(tfm.get.room.playerList) do
  138. if p[n].life < 100 and p[n].life > 0 and not tfm.get.room.playerList[n].isDead then
  139. p[n].life = p[n].life+math.random(5,8)
  140.  
  141. if p[n].life > 100 then
  142. p[n].life = 100
  143. end
  144.  
  145. ui.addTextArea(1,"",n,6,30,math.floor(p[n].life*2),16,0x00EE00,0x00CD00,70,true)
  146. ui.addTextArea(2,"<p align='center'><R>"..p[n].life.."/100",n,6,30,200,16,0,0,0,true)
  147. tfm.exec.setPlayerScore(n,p[n].life,false)
  148. end
  149. end
  150.  
  151. time=os.time();
  152. end
  153.  
  154. function eventNewPlayer(name)
  155. data[name]={
  156. press=0,
  157. cannon=0,
  158. life=100,
  159. }
  160. system.bindKeyboard(name,69,true)
  161. tfm.exec.respawnPlayer(name)
  162. tfm.exec.setPlayerScore(name,data[name].life,false)
  163. ui.addTextArea(-1,"",name,5,28,203,60,nil,0x324650,80,true)
  164. ui.addTextArea(0,"",name,6,30,200,16,0x00CD00,0x00CD00,90,true)
  165. ui.addTextArea(1,"",name,6,30,math.floor(data[name].life*2),16,0x00EE00,0x00CD00,70,true)
  166. end
  167.  
  168. function eventDataBase()
  169. tfm.exec.disableAfkDeath()
  170. tfm.exec.disableMortCommand()
  171. tfm.exec.disableAutoNewGame()
  172. tfm.exec.disableAutoShaman()
  173. tfm.exec.disableAutoTimeLeft()
  174. tfm.exec.disableAutoScore()
  175. tfm.exec.setGameTime(99999)
  176. end
  177.  
  178. for name in pairs(tfm.get.room.playerList) do
  179. eventNewPlayer(name)
  180. end
  181.  
  182. actived={}
  183.  
  184. function split(t,s)
  185. local a={}
  186. for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
  187. table.insert(a,i)
  188. end
  189. return a
  190. end
  191.  
  192. system.bindMouse(adm)
  193. system.bindKeyboard(adm,17,true)
  194. function checkPlayers(x,y)
  195. for name,player in pairs(tfm.get.room.playerList) do
  196. if x >= player.x - 8 and x <= player.x + 8 and y >= player.y - 8 and y <= player.y + 8 then
  197. tfm.exec.killPlayer(name)
  198. end
  199. end
  200. end
  201.  
  202. function eventLoop()
  203. if chover then
  204. for k = 20,0,-1 do
  205. tfm.exec.displayParticle(14,math.random(-100,1000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  206. tfm.exec.displayParticle(14,math.random(0,2000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  207. tfm.exec.displayParticle(14,math.random(1000,3000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  208. tfm.exec.displayParticle(14,math.random(1000,4000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  209. end
  210. end
  211.  
  212. if titan.spawned then
  213. titan.x=titan.x+titan.dir[1]
  214. titan.y=titan.y+titan.dir[2]
  215. local x,y=titan.x,titan.y
  216.  
  217. checkPlayers(x,y);
  218. piso(1020,x+63,y-40,braco)
  219. piso(1021,x+31,y-35,tronco)
  220. piso(1022,x+11,y-27,circulo)
  221. piso(1023,x+6,y-15,circulo)
  222. piso(1024,x+35,y-74,cabeca)
  223. ui.addTextArea(-1,"",nil,x,y,15,5,0x95A776,0x95A776)
  224. ui.addTextArea(0,"",nil,x+30,y,15,5,0x95A776,0x95A776)
  225. ui.addTextArea(1,"",nil,x+6,y-40,40,40,0x78583b,0x78583b)
  226. ui.addTextArea(2,"",nil,x+32,y-63,18,24,0x78583b,0x78583b)
  227. ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,x-8,y-115,200,200,0,0,0)
  228. ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,x-14,y-118,200,200,0,0,0)
  229. ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,x-3,y-167,200,200,0,0,0)
  230. ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,x-8,y-120,200,200,0,0,0)
  231. ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,x-21,y-83,200,200,0,0,0)
  232. ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,x+44,y-103,200,200,0,0,0)
  233. ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,x-25,y-154,200,200,0,0,0)
  234. ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,x-22,y-144,200,200,0,0,0)
  235. ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,x+58,y-118,200,200,0,0,0)
  236. ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,x+30,y-118,200,200,0,0,0)
  237. ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,x+32,y-118,200,200,0,0,0)
  238. ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,x+24,y-122,200,200,0,0,0)
  239. ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,x+15,y-110,200,200,0,0,0)
  240. ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,x,y-110,200,200,0,0,0)
  241. ui.addTextArea(19,"<font color='#000000' size='30'>/</font>",nil,x+30,y-73,200,200,0,0,0)
  242. ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,x+23,y-92,200,200,0,0,0)
  243. ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,x+27,y-76,200,200,0,0,0)
  244. ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,x+27,y-83,200,200,0,0,0)
  245. ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,x+39,y-75,200,200,0,0,0)
  246. ui.addTextArea(24,"<font color='#78583b' size='19'>B</font>",nil,x+70,y-53,200,200,0,0,0)
  247. ui.addTextArea(25,"",nil,x+52,y-41,25,4,0x78583b,0x78583b)
  248. ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,x+37,y-65,200,200,0,0,0)
  249. ui.addTextArea(27,"<font color='#6F4F33' size='19'>B</font>",nil,x+68,y-43,200,200,0,0,0)
  250. ui.addTextArea(28,"",nil,x+50,y-31,25,4,0x6F4F33,0x6F4F33)
  251. end
  252. end
  253.  
  254. function eventChatCommand(name,cmd)
  255. local arg = split(cmd, " ")
  256.  
  257. if arg[1] == "tp" and arg[2] and name == adm then
  258. if arg[2] then
  259. nome = arg[2]:lower():gsub('%a', string.upper, 1)
  260. local adminCoords={x=tfm.get.room.playerList[adm].x,y=tfm.get.room.playerList[adm].y}
  261. --local playerCoords={x=tfm.get.room.playerList[nome].x,y=tfm.get.room.playerList[nome].y}
  262. tfm.exec.movePlayer(nome,adminCoords.x,adminCoords.y,false)
  263. end
  264. end
  265. if arg[1] == "map" and name == adm then
  266. tfm.exec.newGame(maps[math.random(#maps)])
  267. eventDataBase()
  268. chover=false
  269. end
  270.  
  271. if arg[1] == "map2" and name == adm then
  272. tfm.exec.newGame('@7199407')
  273. eventDataBase()
  274. chover=false
  275. end
  276.  
  277. if arg[1] == "map3" and name == adm then
  278. tfm.exec.newGame('<C><P F="0" Ca="" L="9000" H="9000" /><Z><S><S H="278" L="600" X="5457" c="4" Y="8978" T="6" P="0,0,0.3,0.2,-20,0,0,0" /><S P="0,0,0.3,0.2,-20,0,0,0" L="77" o="324650" H="10" Y="8899" T="12" X="569" /><S L="300" o="324650" H="10" X="753" Y="8887" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S X="753" L="300" H="200" c="4" Y="8982" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,-20,0,0,0" L="473" H="389" c="4" Y="9145" T="5" X="446" /><S L="80" o="10be74" X="121" H="50" Y="8802" T="12" P="0,0,0.3,0.2,-30,0,0,0" /><S L="80" o="10be74" X="1881" H="50" Y="8752" T="12" P="0,0,0.3,0.2,-30,0,0,0" /><S L="80" o="10be74" X="2086" H="50" Y="8752" T="12" P="0,0,0.3,0.2,30,0,0,0" /><S L="3000" H="50" X="1500" Y="8975" T="10" P="0,0,0.3,0,0,0,0,0" /><S P="0,0,0.3,0.2,30,0,0,0" L="80" o="10be74" X="326" Y="8801" T="12" H="50" /><S L="3000" H="50" X="4500" Y="8975" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S H="150" L="300" o="6f8d72" X="223" c="4" Y="8875" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="160" o="10be74" H="40" X="1983" Y="8731" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,30,0,0,0" L="80" o="10be74" H="50" Y="8801" T="12" X="1206" /><S L="80" o="10be74" H="50" X="1001" Y="8802" T="12" P="0,0,0.3,0.2,-30,0,0,0" /><S H="200" L="300" o="6f8d72" X="1983" c="4" Y="8850" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="160" o="10be74" H="40" X="223" Y="8780" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="80" o="10be74" H="50" X="1632" Y="8652" T="12" P="0,0,0.3,0.2,30,0,0,0" /><S P="0,0,0.3,0.2,-30,0,0,0" L="80" o="10be74" X="1428" Y="8651" T="12" H="50" /><S P="0,0,0,0.2,0,0,0,0" L="14" o="f220d" H="10" Y="8750" T="13" X="2993" /><S L="14" o="f220d" X="2907" H="10" Y="8750" T="13" P="0,0,0,0.2,0,0,0,0" /><S H="150" L="300" o="6f8d72" X="1103" c="4" Y="8875" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="160" o="10be74" X="1103" H="40" Y="8780" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="300" o="6f8d72" X="1530" c="4" Y="8800" T="12" H="300" /><S L="115" o="f220d" X="2950" H="200" Y="8850" T="12" P="0,0,0,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,30,0,0,0" L="80" o="10be74" H="50" Y="8751" T="12" X="3782" /><S P="0,0,0.3,0.2,0,0,0,0" L="160" o="10be74" H="40" Y="8630" T="12" X="1530" /><S H="60" L="37" o="2b280d" X="163" c="4" Y="8920" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,-30,0,0,0" L="80" o="10be74" H="50" Y="8751" T="12" X="3577" /><S X="2950" L="1000" H="100" c="1" N="" Y="8450" T="10" P="0,0,0.3,0,90,0,0,0" /><S H="10" L="10" o="17242a" X="2966" c="4" Y="7928" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S H="60" L="37" o="2b280d" X="1161" c="4" Y="8920" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="37" o="2b280d" X="1530" c="4" Y="8920" T="12" H="60" /><S P="0,0,0.3,0.2,0,0,0,0" L="113" o="10be74" H="40" Y="8713" T="12" X="762" /><S P="0,0,0.3,0.2,-30,0,0,0" L="80" o="10be74" X="685" Y="8734" T="12" H="50" /><S H="60" L="37" o="2b280d" X="1923" c="4" Y="8920" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="80" o="10be74" H="50" X="841" Y="8734" T="12" P="0,0,0.3,0.2,30,0,0,0" /><S H="18" L="55" o="17242a" X="2991" c="4" Y="7927" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S H="10" L="11" o="4c4215" X="2974" c="4" Y="7940" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" X="7500" H="50" Y="8975" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="250" o="6f8d72" X="763" c="4" Y="8807" T="12" H="150" /><S P="0,0,0.3,0.2,0,0,0,0" L="37" o="2b280d" X="830" c="4" Y="8853" T="12" H="60" /><S P="0,0,0.3,0.2,0,0,0,0" L="300" o="6f8d72" X="3680" c="4" Y="8850" T="12" H="200" /><S P="0,0,0.3,0.2,0,0,0,0" L="37" o="2b280d" X="3760" c="4" Y="8920" T="12" H="60" /><S P="0,0,0.3,0.2,0,0,0,0" L="160" o="10be74" X="3679" Y="8730" T="12" H="40" /><S L="80" o="10be74" H="50" X="4733" Y="8754" T="12" P="0,0,0.3,0.2,30,0,0,0" /><S L="160" o="10be74" X="4632" H="40" Y="8732" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="80" o="10be74" H="50" X="4529" Y="8754" T="12" P="0,0,0.3,0.2,-30,0,0,0" /><S H="200" L="300" o="6f8d72" X="4631" c="4" Y="8850" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S H="60" L="37" o="2b280d" X="4574" c="4" Y="8920" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="97" o="57b75c" X="7496" c="4" Y="8713" T="13" H="10" /><S P="0,0,0.3,0.2,0,0,0,0" L="78" o="d1c0b" X="7380" c="4" Y="8751" T="12" H="400" /><S L="80" o="10be74" H="50" X="6675" Y="8751" T="12" P="0,0,0.3,0.2,30,0,0,0" /><S H="10" L="97" o="469f4b" X="7530" c="4" Y="8644" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S L="160" o="10be74" X="6573" H="40" Y="8730" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="97" o="57b75c" X="7431" c="4" N="" Y="8494" T="13" H="10" /><S L="80" o="10be74" H="50" X="6471" Y="8751" T="12" P="0,0,0.3,0.2,-30,0,0,0" /><S H="10" L="97" o="449a48" X="7387" c="4" N="" Y="8423" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" o="3dae43" X="7022" c="4" Y="8691" T="13" H="10" /><S H="200" L="300" o="284322" X="6573" c="4" Y="8850" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="97" o="3dae43" X="7337" c="4" N="" Y="8487" T="13" H="10" /><S H="60" L="37" o="2b280d" X="6612" c="4" Y="8919" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S H="306" L="78" o="d1c0b" X="7171" c="4" N="" Y="8798" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="143" o="d1c0b" H="24" X="7067" Y="8705" T="12" P="0,0,1,0.2,10,0,0,0" /><S P="0,0,1,0.2,-20,0,0,0" L="143" o="d1c0b" X="7272" Y="8738" T="12" H="24" /><S H="10" L="97" o="57b75c" X="7100" c="4" N="" Y="8580" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="97" o="449a48" X="7167" c="4" N="" Y="8498" T="13" H="10" /><S H="10" L="40" o="3dae43" X="7307" c="4" Y="8708" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="78" o="d1c0b" X="7546" c="4" Y="8813" T="12" H="280" /><S P="0,0,0.3,0.2,0,0,0,0" L="97" o="349939" X="7603" c="4" Y="8691" T="13" H="10" /><S H="10" L="97" o="57b75c" X="7252" c="4" N="" Y="8531" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S H="10" L="97" o="3dae43" X="7209" c="4" N="" Y="8585" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S H="10" L="40" o="449a48" X="7323" c="4" N="" Y="8728" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" o="57b75c" X="7278" c="4" N="" Y="8734" T="13" H="10" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" o="3dae43" X="7516" c="4" Y="8600" T="13" H="10" /><S H="10" L="40" o="449a48" X="7006" c="4" N="" Y="8703" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" o="449a48" X="7542" c="4" Y="8614" T="13" H="10" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" o="57b75c" X="7050" c="4" N="" Y="8708" T="13" H="10" /><S L="143" o="d1c0b" X="7483" H="24" Y="8632" T="12" P="0,0,1,0.2,-10,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" o="3dae43" X="7560" c="4" Y="8708" T="13" H="10" /><S H="10" L="40" o="57b75c" X="7501" c="4" N="" Y="8625" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S H="380" L="78" o="d1c0b" X="7715" c="4" N="" Y="8762" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S H="10" L="40" o="449a48" X="7826" c="4" Y="8637" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,1,0.2,0,0,0,0" L="143" o="d1c0b" H="24" Y="8720" T="12" X="7606" /><S L="113" o="d1c0b" H="24" X="7806" Y="8656" T="12" P="0,0,1,0.2,-10,0,0,0" /><S H="10" L="30" o="3dae43" X="7853" c="4" N="" Y="8646" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S H="10" L="97" o="449a48" X="8077" c="4" N="" Y="8549" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" o="57b75c" X="7540" c="4" N="" Y="8731" T="13" H="10" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" o="449a48" X="7579" c="4" N="" Y="8724" T="13" H="10" /><S H="10" L="20" o="57b75c" X="7838" c="4" N="" Y="8666" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="97" o="449a48" X="7724" c="4" N="" Y="8462" T="13" H="10" /><S H="10" L="30" o="57b75c" X="7812" c="4" N="" Y="8647" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S H="10" L="97" o="57b75c" X="7784" c="4" N="" Y="8525" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S H="10" L="97" o="3dae43" X="7672" c="4" N="" Y="8527" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S H="280" L="78" o="d1c0b" X="8077" c="4" N="" Y="8811" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="97" o="3dae43" X="8027" c="4" N="" Y="8608" T="13" H="10" /><S P="0,0,0.3,0.2,0,0,0,0" L="97" o="57b75c" X="8124" c="4" N="" Y="8615" T="13" H="10" /><S P="0,0,1,0.2,10,0,0,0" L="113" o="d1c0b" X="7986" Y="8771" T="12" H="24" /><S H="10" L="40" o="449a48" X="7925" c="4" N="" Y="8758" T="13" P="0,0,0.3,0.2,0,0,0,0" /></S><D><DS Y="8935" X="382" /><P C="0,0,11280f" Y="8820" T="128" P="1,0" X="1450" /><P C="0,0,11280f" Y="8820" T="128" X="1610" P="1,0" /><P P="0,0" Y="8952" T="1" X="3407" /><P P="0,0" Y="8952" T="1" X="4012" /><P P="0,0" Y="8954" T="1" X="4357" /><P P="0,0" Y="8950" T="0" X="4170" /><P P="0,0" Y="8953" T="1" X="4909" /><P P="0,0" Y="8953" T="1" X="5130" /><P P="0,0" Y="8808" T="1" X="5553" /><P P="0,0" Y="8951" T="1" X="5937" /><P P="0,0" Y="8955" T="1" X="6421" /><P P="0,0" Y="8952" T="1" X="6784" /><P P="0,0" Y="8953" T="1" X="7157" /><P P="0,0" Y="8961" T="1" X="7061" /><P P="0,0" Y="8961" T="1" X="6611" /><P P="0,0" Y="8956" T="1" X="7420" /><P P="0,0" Y="8965" T="1" X="7828" /><P P="0,0" Y="8951" T="1" X="8067" /><P P="0,0" Y="8959" T="1" X="8360" /><P P="0,0" Y="8957" T="1" X="8462" /><P P="0,0" Y="8954" T="0" X="8710" /><P P="0,0" Y="8956" T="0" X="8182" /><P P="0,0" Y="8955" T="0" X="7609" /><P P="0,0" Y="8959" T="5" X="6926" /><P P="0,0" Y="8975" T="1" X="6045" /><P P="0,0" Y="8955" T="1" X="5833" /></D><O /></Z></C>')
  279. eventDataBase()
  280. chover=false
  281. end
  282.  
  283. if arg[1] == "map4" and name == adm then
  284. tfm.exec.newGame('<C><P Ca="" F="2" L="900" H="3000" /><Z><S><S L="400" X="298" H="164" Y="283" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="295" X="187" H="626" Y="537" T="5" P="0,0,0.3,0.2,10,0,0,0" /><S L="295" H="626" X="408" Y="547" T="5" P="0,0,0.3,0.2,-10,0,0,0" /><S L="295" X="447" H="626" Y="1068" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="295" H="626" X="213" Y="1048" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="295" X="133" H="626" Y="1121" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="295" H="626" X="434" Y="1246" T="5" P="0,0,0.3,0.2,-10,0,0,0" /><S L="400" X="196" H="626" Y="1482" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="400" H="626" X="431" Y="1785" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="400" X="195" H="626" Y="2037" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="400" H="626" X="417" Y="1989" T="5" P="0,0,0.3,0.2,-10,0,0,0" /><S L="400" X="455" H="626" Y="2508" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="400" H="626" X="196" Y="2592" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="400" X="188" H="626" Y="2717" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S L="400" H="626" X="629" Y="3017" T="5" P="0,0,0.3,0.2,-90,0,0,0" /><S L="1500" X="394" H="500" Y="243" T="8" P="0,0,0.3,0.2,0,0,0,0" /></S><D><P X="183" Y="204" T="1" P="0,0" /><P X="387" Y="206" T="1" P="0,0" /><P X="289" Y="204" T="5" P="0,0" /><P X="424" Y="206" T="83" P="0,0" /><DS Y="2798" X="770" /><P X="614" Y="2702" T="83" P="0,0" /><P X="716" Y="2821" T="83" P="0,0" /><P X="840" Y="2825" T="42" P="0,0" /></D><O /></Z></C>')
  285. eventDataBase()
  286. chover=fale
  287. end
  288.  
  289. if arg[1] == "map5" and name == adm then
  290. tfm.exec.newGame('<C><P mc="" F="3" H="5000000" /><Z><S><S L="800" X="408" H="400" Y="4999900" T="5" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,1,0.3,0.2,0,1,0,0" L="10" o="31dc23" X="433" c="1" Y="166" T="12" H="63" /><S L="100" H="10" X="321" v="20000" Y="176" T="0" P="0,0,0.3,0.2,-30,0,0,0" /><S L="100" X="498" H="10" v="20000" Y="173" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S P="1,1,0.3,0.2,0,1,0,0" L="57" o="31dc23" X="408" c="1" Y="192" T="12" H="10" /><S L="10" o="31dc23" X="382" H="63" Y="166" T="12" P="1,1,0.3,0.2,0,1,0,0" /><S L="100" X="328" H="10" v="20000" Y="251" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="100" X="411" H="10" v="20000" Y="140" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S c="3" L="57" o="31dc23" X="408" H="10" Y="140" T="12" P="1,1,0.3,0.2,0,1,0,0" /><S L="100" H="10" X="498" v="20000" Y="250" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,-30,0,0,0" L="120" o="b3c5ce" X="335" c="4" v="20000" Y="189" T="12" H="50" /><S P="1,1,0.3,0.2,0,1,0,0" L="54" o="31dc23" X="408" c="4" Y="585" T="12" H="3000" /><S P="0,0,0.3,0.2,0,0,0,0" L="75" o="b3c5ce" X="411" c="4" v="20000" Y="184" T="13" H="10" /><S P="0,0,0.3,0.2,0,0,0,0" L="30" o="31dc23" H="10" v="20000" Y="254" T="13" X="409" /><S P="0,0,0.3,0.2,0,0,0,0" L="281" o="b3c5ce" X="411" c="4" v="20000" Y="228" T="12" H="62" /><S H="50" L="120" o="b3c5ce" X="487" c="4" v="20000" Y="189" T="12" P="0,0,0.3,0.2,30,0,0,0" /><S H="10" L="100" o="b3c5ce" X="406" c="1" v="20000" Y="204" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,-90,0,0,0" L="100" o="b3c5ce" X="448" c="1" v="20000" Y="176" T="12" H="10" /><S H="10" L="100" o="b3c5ce" X="371" c="1" v="20000" Y="177" T="12" P="0,0,0.3,0.2,-90,0,0,0" /></S><D><DS Y="173" X="408" /></D><O><O C="22" Y="190" X="385" P="0" /><O C="22" Y="192" X="432" P="0" /><O C="22" Y="141" X="384" P="0" /><O C="22" Y="142" X="432" P="0" /><O C="22" Y="167" X="411" P="0" /><O C="22" Y="168" X="430" P="0" /><O C="22" Y="165" X="385" P="0" /><O C="22" Y="188" X="408" P="0" /><O C="22" Y="142" X="407" P="0" /></O></Z></C>')
  291. eventDataBase()
  292. chover=fale
  293. end
  294.  
  295. if arg[1] == "chuva" and name == adm then
  296. chover=true
  297. end
  298.  
  299. if cmd == "titan" and name == adm then
  300. for _,k in pairs({69,37,39}) do
  301. system.bindKeyboard(name,k,true)
  302. end
  303.  
  304. if not actived[name] then actived[name]=false end
  305.  
  306. if not actived[name] then
  307. system.bindMouse(name,true)
  308. actived[name]=true
  309. else
  310. system.bindMouse(name,false)
  311. actived[name]=false
  312. end
  313. end
  314.  
  315. if cmd == "titanremove" and name == adm then
  316. for i=-1,28 do ui.removeTextArea(i) end
  317.  
  318. titan.x=0
  319. titan.y=0
  320. titan.spawned=false
  321. end
  322.  
  323. if arg[1] == "dmt" and name == adm then
  324. if arg[2] then
  325. nome = arg[2]:lower():gsub('%a', string.upper, 1)
  326. else
  327. nome = name
  328. end
  329. system.bindKeyboard(nome,88,true)
  330. for _,key in pairs({72,75}) do
  331. system.bindKeyboard(nome,key,true)
  332. end
  333. end
  334. end
  335.  
  336. system.disableChatCommandDisplay("tp", true)
  337. system.disableChatCommandDisplay("chuva", true)
  338. system.disableChatCommandDisplay("dmt", true)
  339. system.disableChatCommandDisplay("map", true)
  340. system.disableChatCommandDisplay("map2", true)
  341. system.disableChatCommandDisplay("map3", true)
  342. system.disableChatCommandDisplay("titan", true)
  343. system.disableChatCommandDisplay("titanremove", true)
  344.  
  345. function eventMouse(name,x,y)
  346. if tp then
  347. tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
  348. end
  349.  
  350. if actived[name] then
  351. piso(1020,x+63,y-40,braco)
  352. piso(1021,x+31,y-35,tronco)
  353. piso(1022,x+11,y-27,circulo)
  354. piso(1023,x+6,y-15,circulo)
  355. piso(1024,x+35,y-74,cabeca)
  356. ui.addTextArea(-1,"",nil,x,y,15,5,0x95A776,0x95A776)
  357. ui.addTextArea(0,"",nil,x+30,y,15,5,0x95A776,0x95A776)
  358. ui.addTextArea(1,"",nil,x+6,y-40,40,40,0x78583b,0x78583b)
  359. ui.addTextArea(2,"",nil,x+32,y-63,18,24,0x78583b,0x78583b)
  360. ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,x-8,y-115,200,200,0,0,0)
  361. ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,x-14,y-118,200,200,0,0,0)
  362. ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,x-3,y-167,200,200,0,0,0)
  363. ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,x-8,y-120,200,200,0,0,0)
  364. ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,x-21,y-83,200,200,0,0,0)
  365. ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,x+44,y-103,200,200,0,0,0)
  366. ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,x-25,y-154,200,200,0,0,0)
  367. ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,x-22,y-144,200,200,0,0,0)
  368. ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,x+58,y-118,200,200,0,0,0)
  369. ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,x+30,y-118,200,200,0,0,0)
  370. ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,x+32,y-118,200,200,0,0,0)
  371. ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,x+24,y-122,200,200,0,0,0)
  372. ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,x+15,y-110,200,200,0,0,0)
  373. ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,x,y-110,200,200,0,0,0)
  374. ui.addTextArea(19,"<font color='#000000' size='30'>/</font>",nil,x+30,y-73,200,200,0,0,0)
  375. ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,x+23,y-92,200,200,0,0,0)
  376. ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,x+27,y-76,200,200,0,0,0)
  377. ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,x+27,y-83,200,200,0,0,0)
  378. ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,x+39,y-75,200,200,0,0,0)
  379. ui.addTextArea(24,"<font color='#78583b' size='19'>B</font>",nil,x+70,y-53,200,200,0,0,0)
  380. ui.addTextArea(25,"",nil,x+52,y-41,25,4,0x78583b,0x78583b)
  381. ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,x+37,y-65,200,200,0,0,0)
  382. ui.addTextArea(27,"<font color='#6F4F33' size='19'>B</font>",nil,x+68,y-43,200,200,0,0,0)
  383. ui.addTextArea(28,"",nil,x+50,y-31,25,4,0x6F4F33,0x6F4F33)
  384. titan.x=x
  385. titan.y=y
  386. titan.spawned=true
  387. end
  388. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement