Advertisement
Dudugz-Contistente

Untitled

Oct 27th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.95 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. time = os.time();
  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. Code = {
  67. x=3720,
  68. y=485,
  69. code = "AKEYON3DMG"
  70. }
  71.  
  72. update_coordenates=function(this)
  73. ui.addTextArea(-6006,"<B><font color='#000000'>X/Y: "..this.x.."/"..this.y,this.playerName,4,377,120,20,0,0,0,true)
  74. ui.addTextArea(-6007,"<B><N>X/Y: "..this.x.."/"..this.y,this.playerName,5,376,120,20,0,0,0,true)
  75. end
  76.  
  77. function eventKeyboard(soldado, key, down, x, y)
  78. update_coordenates({playerName=soldado,x=x,y=y})
  79. local v = (key == 32 and (x >= Code.x - 15 and (x <= Code.x + 15 and (y >= Code.y - 15 and (y <= Code.y + 15 and ui.addPopup(0,2,'Type your code:',soldado,200,200,200,true) or nil) or nil) or nil) or nil) or nil)
  80.  
  81. name=soldado
  82. if key == 69 then
  83. player=tfm.get.room.playerList[name]
  84. 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
  85. tfm.exec.addShamanObject(17,3030,7945,110)
  86. particula(3,2990,7935)
  87. data[name].cannon=os.time();
  88. end
  89. end
  90.  
  91. if key == 69 and actived[name] then
  92. titan.dir={0,0}
  93. end
  94.  
  95. if key == 37 and actived[name] then
  96. titan.dir={-10,0}
  97. end
  98.  
  99. if key == 39 and actived[name] then
  100. titan.dir={10,0}
  101. end
  102.  
  103. if key == 17 and name == adm then
  104. if tp == false then tp=true elseif tp == true then tp=false end
  105. end
  106.  
  107. if key == 88 then
  108. player=tfm.get.room.playerList[name]
  109. direita=player.isFacingRight
  110. if direita and data[name].press < os.time()-5000 then
  111. tfm.exec.movePlayer(name,0,0,false,75,0,true)
  112. particula(35, x-20, y, name)
  113. data[name].press=os.time();
  114. elseif data[name].press < os.time()-5000 then
  115. tfm.exec.movePlayer(name,0,0,false,-75,0,true)
  116. particula(35, x+20, y, name)
  117. data[name].press=os.time();
  118. end
  119. end
  120. if key == 72 then
  121. tfm.exec.movePlayer(soldado,0, 0, true, -100, -75, false)
  122. piso(100,x-1630,y-1140,cordas1)
  123. particula(3, x, y, soldado)
  124. elseif key == 75 then
  125. tfm.exec.movePlayer(soldado, 0, 0, true, 100, -75, false)
  126. piso(100,x+1630,y-1140,cordas)
  127. particula(3, x, y, soldado)
  128. end
  129. end
  130.  
  131. function eventNewGame()
  132. eventMouse(nil,400,200)
  133. for i = 1,51 do
  134. tfm.exec.addShamanObject(3, -500, 2800)
  135. end
  136. for i=-999,999 do ui.removeTextArea(i) end
  137. for i=-1020,1024 do tfm.exec.removePhysicObject(i) end
  138. for i in pairs(tfm.get.room.playerList) do
  139. data[i].life = 100
  140. ui.addTextArea(50,"",i,6,30,math.floor(data[i].life*2),16,0x00EE00,0x00CD00,70,true)
  141. ui.addTextArea(51,"<p align='center'><R>"..math.floor(data[i].life*100/100).."%",i,6,30,200,16,0,0,0,true)
  142. tfm.exec.setPlayerScore(i,data[i].life,false)
  143. end
  144. end
  145.  
  146. function eventPlayerDied(name)
  147. data[name].life = 0
  148. for i=-1,51 do ui.removeTextArea(i) end
  149. ui.addTextArea(50,"",name,6,30,200,16,0x00EE00,0x00CD00,70,true)
  150. ui.addTextArea(51,"<p align='center'><font color='#EE2C2C'><font size='18'>You are dead",name,6,25,200,nil,0,0,0,true)
  151. tfm.exec.setPlayerScore(name,data[name].life,false)
  152. end
  153.  
  154. function regen()
  155. for n in pairs(tfm.get.room.playerList) do
  156. if data[name].life < 100 and data[name].life > 0 and not tfm.get.room.playerList[n].isDead then
  157. data[name].life = data[name].life+math.random(5,8)
  158.  
  159. if data[name].life > 100 then
  160. data[name].life = 100
  161. end
  162.  
  163. ui.addTextArea(1,"",n,6,30,math.floor(data[namme].life*2),16,0x00EE00,0x00CD00,70,true)
  164. ui.addTextArea(2,"<p align='center'><R>"..math.floor(data[name].life*100/100).."%",n,6,30,200,16,0,0,0,true)
  165. tfm.exec.setPlayerScore(n,data[name].life,false)
  166. end
  167. end
  168.  
  169. time=os.time();
  170. end
  171.  
  172. function eventNewPlayer(name)
  173. data[name]={
  174. life=100,
  175. press=0,
  176. cannon=0,
  177. }
  178. system.bindKeyboard(name,69,true)
  179. system.bindKeyboard(name,32,true)
  180. tfm.exec.setPlayerScore(name,data[name].life,false)
  181. ui.addTextArea(100,"",name,6,30,math.floor(data[name].life*2),16,0x00EE00,0x00CD00,70,true)
  182. end
  183.  
  184. function eventDataBase()
  185. tfm.exec.disableAfkDeath()
  186. tfm.exec.disableMortCommand()
  187. tfm.exec.disableAutoNewGame()
  188. tfm.exec.disableAutoShaman()
  189. tfm.exec.disableAutoTimeLeft()
  190. tfm.exec.disableAutoScore()
  191. tfm.exec.setGameTime(99999)
  192. end
  193.  
  194. for name in pairs(tfm.get.room.playerList) do
  195. eventNewPlayer(name)
  196. end
  197.  
  198. actived={}
  199.  
  200. function split(t,s)
  201. local a={}
  202. for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
  203. table.insert(a,i)
  204. end
  205. return a
  206. end
  207.  
  208. system.bindMouse(adm)
  209. system.bindKeyboard(adm,17,true)
  210. function checkPlayers(x,y)
  211. for name,player in pairs(tfm.get.room.playerList) do
  212. if x+50 >= player.x - 30 and x+50 <= player.x + 30 and y-50 >= player.y - 20 and y-50 <= player.y + 20 then
  213. data[name].life=data[name].life-math.random(2,12)
  214. ui.addTextArea(50,"",name,6,30,math.floor(data[name].life*2),16,0x00EE00,0x00CD00,70,true)
  215. ui.addTextArea(51,"<p align='center'><R>"..math.floor(data[name].life*100/100).."%",i,6,30,200,16,0,0,0,true)
  216. tfm.exec.setPlayerScore(name,data[name].life,false)
  217. end
  218. end
  219. end
  220.  
  221. function eventPopupAnswer(id,name,answer)
  222. if id == 0 then
  223. local correct_answer = (answer == Code.code and true or false)
  224.  
  225. if correct_answer then
  226. ui.addPopup(0,3,"<p align='center'>This code is correct.",name,200,200,200,true)
  227. ui.addTextArea(106,"<font color='#000000'size='18'>Parabéns "..name.." acabou de completar o enigma!</font>",nil,3410,420,800,60,0x000000,0x000000,1,false)
  228. else
  229. ui.addPopup(0,3,"<p align='center'>This code is wrong.",name,200,200,200,true)
  230. end
  231. end
  232. end
  233.  
  234. function eventLoop(t,r)
  235.  
  236. if t >= 3000 then for all,data in pairs(tfm.get.room.playerList) do update_coordenates(data) end end
  237. if chover then
  238. for k = 20,0,-1 do
  239. tfm.exec.displayParticle(14,math.random(-100,1000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  240. tfm.exec.displayParticle(14,math.random(0,2000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  241. tfm.exec.displayParticle(14,math.random(1000,3000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  242. tfm.exec.displayParticle(14,math.random(1000,4000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  243. end
  244. end
  245.  
  246. if titan.spawned then
  247. titan.x=titan.x+titan.dir[1]
  248. titan.y=titan.y+titan.dir[2]
  249. local x,y=titan.x,titan.y
  250.  
  251. checkPlayers(x,y);
  252. piso(1020,x+63,y-40,braco)
  253. piso(1021,x+31,y-35,tronco)
  254. piso(1022,x+11,y-27,circulo)
  255. piso(1023,x+6,y-15,circulo)
  256. piso(1024,x+35,y-74,cabeca)
  257.  
  258. if titan.dir[1] >= 0 then
  259. ui.addTextArea(-1,"",nil,x,y,15,5,0x95A776,0x95A776)
  260. ui.addTextArea(0,"",nil,x+30,y,15,5,0x95A776,0x95A776)
  261. ui.addTextArea(1,"",nil,x+6,y-40,40,40,0x78583b,0x78583b)
  262. ui.addTextArea(2,"",nil,x+32,y-63,18,24,0x78583b,0x78583b)
  263. ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,x-8,y-115,200,200,0,0,0)
  264. ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,x-14,y-118,200,200,0,0,0)
  265. ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,x-3,y-167,200,200,0,0,0)
  266. ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,x-8,y-120,200,200,0,0,0)
  267. ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,x-21,y-83,200,200,0,0,0)
  268. ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,x+44,y-103,200,200,0,0,0)
  269. ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,x-25,y-154,200,200,0,0,0)
  270. ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,x-22,y-144,200,200,0,0,0)
  271. ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,x+58,y-118,200,200,0,0,0)
  272. ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,x+30,y-118,200,200,0,0,0)
  273. ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,x+32,y-118,200,200,0,0,0)
  274. ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,x+24,y-122,200,200,0,0,0)
  275. ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,x+15,y-110,200,200,0,0,0)
  276. ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,x,y-110,200,200,0,0,0)
  277. ui.addTextArea(19,"<font color='#000000' size='30'>/</font>",nil,x+30,y-73,200,200,0,0,0)
  278. ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,x+23,y-92,200,200,0,0,0)
  279. ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,x+27,y-76,200,200,0,0,0)
  280. ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,x+27,y-83,200,200,0,0,0)
  281. ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,x+39,y-75,200,200,0,0,0)
  282. ui.addTextArea(24,"<font color='#78583b' size='19'>B</font>",nil,x+70,y-53,200,200,0,0,0)
  283. ui.addTextArea(25,"",nil,x+52,y-41,25,4,0x78583b,0x78583b)
  284. ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,x+37,y-65,200,200,0,0,0)
  285. ui.addTextArea(27,"<font color='#6F4F33' size='19'>B</font>",nil,x+68,y-43,200,200,0,0,0)
  286. ui.addTextArea(28,"",nil,x+50,y-31,25,4,0x6F4F33,0x6F4F33)
  287. elseif titan.dir[1] < 0 then
  288. ui.addTextArea(-1,"",nil,400,200,15,5,0x95A776,0x95A776)
  289. ui.addTextArea(0,"",nil,430,200,15,5,0x95A776,0x95A776)
  290. ui.addTextArea(1,"",nil,397,160,40,40,0x78583b,0x78583b)
  291. ui.addTextArea(2,"",nil,403,137,18,24,0x78583b,0x78583b)
  292. ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,372,85,200,200,0,0,0)
  293. ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,396,91,200,200,0,0,0)
  294. ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,377,33,200,200,0,0,0)
  295. ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,392,80,200,200,0,0,0)
  296. ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,409,117,200,200,0,0,0)
  297. ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,377,97,200,200,0,0,0)
  298. ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,423,46,200,200,0,0,0)
  299. ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,427,56,200,200,0,0,0)
  300. ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,372,82,200,200,0,0,0)
  301. ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,409,82,200,200,0,0,0)
  302. ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,412,80,200,0,0,0)
  303. ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,404,78,200,200,0,0,0)
  304. ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,430,90,200,200,0,0,0)
  305. ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,410,90,200,200,0,0,0)
  306. ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,413,108,200,200,0,0,0)
  307. ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,419,124,200,200,0,0,0)
  308. ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,417,117,200,200,0,0,0)
  309. ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,370,125,200,200,0,0,0)
  310. ui.addTextArea(24,"<font color='#78583b' size='19'>8</font>",nil,370,147,200,200,0,0,0)
  311. ui.addTextArea(25,"",nil,379,159,25,4,0x78583b,0x78583b)
  312. ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,373,135,200,200,0,0,0)
  313. ui.addTextArea(27,"<font color='#6F4F33' size='19'>8</font>",nil,373,157,200,200,0,0,0)
  314. ui.addTextArea(28,"",nil,382,169,25,4,0x6F4F33,0x6F4F33)
  315. end
  316. end
  317. end
  318.  
  319. function eventChatCommand(name,cmd)
  320. local arg = split(cmd, " ")
  321.  
  322. if arg[1] == "tp" and arg[2] and name == adm then
  323. if arg[2] then
  324. nome = arg[2]:lower():gsub('%a', string.upper, 1)
  325. local adminCoords={x=tfm.get.room.playerList[adm].x,y=tfm.get.room.playerList[adm].y}
  326. --local playerCoords={x=tfm.get.room.playerList[nome].x,y=tfm.get.room.playerList[nome].y}
  327. tfm.exec.movePlayer(nome,adminCoords.x,adminCoords.y,false)
  328. end
  329. end
  330. if arg[1] == "map" and name == adm then
  331. tfm.exec.newGame(maps[math.random(#maps)])
  332. eventDataBase()
  333. chover=false
  334. end
  335.  
  336. if arg[1] == "map2" and name == adm then
  337. tfm.exec.newGame('@7199407')
  338. eventDataBase()
  339. chover=false
  340. end
  341.  
  342. if arg[1] == "aula" and name == adm then
  343. ui.addTextArea(131,"<font color='#000000' size='18'>Sinalizadores: Sinalizadores são ferramentas comuns usadas pelos Policiais Militares, Guardas Estacionarios, e Tropa de exploração.\n Os sinalizadores devem ser usados, de acordo com a missão e o local.\n Cada sinal tem uma cor diferente, e cada cor um significado. E eles são:\n Sinal azul: Ordem de retirada.\n Sinal vermelho: Local de titans ou missão fracassada (caso haja um sinal amarelo em seguida é missão fracassada)\n Sinal preto: Espécie rara de titan.\n Sinal roxo: Emergencia ou pedido de ajuda.\n Sinal verde: Trocar direção da formação (Usada pelo comandante em uma direção para seguirem nela, e depois repetida pelos soldados das outras alas).\n Sinal amarelo: Missão terminada, seja com sucesso ou fracasso.<",nil,50,50,750,350,0x000000,0x000000,0,true)
  344. end
  345.  
  346. if arg[1] == "aular" and name == adm then
  347. ui.removeTextArea(131,nil)
  348. end
  349.  
  350. if arg[1] == "map3" and name == adm then
  351. 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>')
  352. eventDataBase()
  353. chover=false
  354. end
  355.  
  356. if arg[1] == "r" and name == adm then
  357. if arg[2] then
  358. nome = arg[2]:lower():gsub('%a', string.upper, 1)
  359. else
  360. nome = name
  361. end
  362.  
  363. if tfm.get.room.playerList[nome] then
  364. for i=50,51 do ui.removeTextArea(i) end
  365. tfm.exec.respawnPlayer(nome)
  366. data[name].life = 100
  367. ui.addTextArea(1,"",nome,6,30,math.floor(data[name].life*2),16,0x00EE00,0x00CD00,70,true)
  368. ui.addTextArea(2,"<p align='center'><R>"..math.floor(data[name].life*100/100).."%",nome,6,30,200,16,0,0,0,true)
  369. tfm.exec.setPlayerScore(nome,data[name].life,false)
  370. end
  371. end
  372.  
  373. if arg[1] == "kill" and name == adm then
  374. if arg[2] then
  375. nome = arg[2]:lower():gsub('%a', string.upper, 1)
  376. else
  377. nome = name
  378. end
  379.  
  380. if tfm.get.room.playerList[nome] then
  381. tfm.exec.killPlayer(nome)
  382. end
  383. end
  384.  
  385. if arg[1] == "map4" and name == adm then
  386. 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>')
  387. eventDataBase()
  388. chover=fale
  389. end
  390.  
  391. if arg[1] == "map5" and name == adm then
  392. 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>')
  393. eventDataBase()
  394. chover=fale
  395. end
  396.  
  397. if arg[1] == "chuva" and name == adm then
  398. chover=true
  399. end
  400.  
  401. if cmd == "titan" and name == adm then
  402. for _,k in pairs({69,37,39}) do
  403. system.bindKeyboard(name,k,true)
  404. end
  405.  
  406. if not actived[name] then actived[name]=false end
  407.  
  408. if not actived[name] then
  409. system.bindMouse(name,true)
  410. actived[name]=true
  411. else
  412. system.bindMouse(name,false)
  413. actived[name]=false
  414. end
  415. end
  416.  
  417. if cmd == "titanr" and name == adm then
  418. for i=-1,28 do ui.removeTextArea(i) end
  419. for i=-1020,1024 do tfm.exec.removePhysicObject(i) end
  420. titan.x=0
  421. titan.y=0
  422. titan.spawned=false
  423. end
  424.  
  425. if arg[1] == "dmt" and name == adm then
  426. if arg[2] then
  427. nome = arg[2]:lower():gsub('%a', string.upper, 1)
  428. else
  429. nome = name
  430. end
  431. system.bindKeyboard(nome,88,true)
  432. for _,key in pairs({72,75}) do
  433. system.bindKeyboard(nome,key,true)
  434. end
  435. end
  436. end
  437.  
  438. system.disableChatCommandDisplay("tp", true)
  439. system.disableChatCommandDisplay("chuva", true)
  440. system.disableChatCommandDisplay("kill", true)
  441. system.disableChatCommandDisplay("dmt", true)
  442. system.disableChatCommandDisplay("map", true)
  443. system.disableChatCommandDisplay("map2", true)
  444. system.disableChatCommandDisplay("map3", true)
  445. system.disableChatCommandDisplay("titan", true)
  446. system.disableChatCommandDisplay("titanr", true)
  447. system.disableChatCommandDisplay("aula", true)
  448. system.disableChatCommandDisplay("aular", true)
  449.  
  450. function eventMouse(name,x,y)
  451. if tp then
  452. tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
  453. end
  454.  
  455. if actived[name] then
  456. piso(1020,x+63,y-40,braco)
  457. piso(1021,x+31,y-35,tronco)
  458. piso(1022,x+11,y-27,circulo)
  459. piso(1023,x+6,y-15,circulo)
  460. piso(1024,x+35,y-74,cabeca)
  461. ui.addTextArea(-1,"",nil,x,y,15,5,0x95A776,0x95A776)
  462. ui.addTextArea(0,"",nil,x+30,y,15,5,0x95A776,0x95A776)
  463. ui.addTextArea(1,"",nil,x+6,y-40,40,40,0x78583b,0x78583b)
  464. ui.addTextArea(2,"",nil,x+32,y-63,18,24,0x78583b,0x78583b)
  465. ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,x-8,y-115,200,200,0,0,0)
  466. ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,x-14,y-118,200,200,0,0,0)
  467. ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,x-3,y-167,200,200,0,0,0)
  468. ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,x-8,y-120,200,200,0,0,0)
  469. ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,x-21,y-83,200,200,0,0,0)
  470. ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,x+44,y-103,200,200,0,0,0)
  471. ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,x-25,y-154,200,200,0,0,0)
  472. ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,x-22,y-144,200,200,0,0,0)
  473. ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,x+58,y-118,200,200,0,0,0)
  474. ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,x+30,y-118,200,200,0,0,0)
  475. ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,x+32,y-118,200,200,0,0,0)
  476. ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,x+24,y-122,200,200,0,0,0)
  477. ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,x+15,y-110,200,200,0,0,0)
  478. ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,x,y-110,200,200,0,0,0)
  479. ui.addTextArea(19,"<font color='#000000' size='30'>/</font>",nil,x+30,y-73,200,200,0,0,0)
  480. ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,x+23,y-92,200,200,0,0,0)
  481. ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,x+27,y-76,200,200,0,0,0)
  482. ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,x+27,y-83,200,200,0,0,0)
  483. ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,x+39,y-75,200,200,0,0,0)
  484. ui.addTextArea(24,"<font color='#78583b' size='19'>B</font>",nil,x+70,y-53,200,200,0,0,0)
  485. ui.addTextArea(25,"",nil,x+52,y-41,25,4,0x78583b,0x78583b)
  486. ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,x+37,y-65,200,200,0,0,0)
  487. ui.addTextArea(27,"<font color='#6F4F33' size='19'>B</font>",nil,x+68,y-43,200,200,0,0,0)
  488. ui.addTextArea(28,"",nil,x+50,y-31,25,4,0x6F4F33,0x6F4F33)
  489. titan.x=x
  490. titan.y=y
  491. titan.spawned=true
  492. end
  493. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement