Advertisement
Dudugz-Contistente

Untitled

Oct 12th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.50 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.  
  67. Code = {
  68. x=200,
  69. y=320,
  70. code = "Shiocadelinha"
  71. }
  72.  
  73. update_coordenates=function(this)
  74. ui.addTextArea(-6006,"<B><font color='#000000'>X/Y: "..this.x.."/"..this.y,this.playerName,4,377,120,20,0,0,0,true)
  75. ui.addTextArea(-6007,"<B><N>X/Y: "..this.x.."/"..this.y,this.playerName,5,376,120,20,0,0,0,true)
  76. end
  77.  
  78. function eventKeyboard(soldado, key, down, x, y)
  79. update_coordenates({playerName=soldado,x=x,y=y})
  80. 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)
  81.  
  82. name=soldado
  83. if key == 69 then
  84. player=tfm.get.room.playerList[name]
  85. 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
  86. tfm.exec.addShamanObject(17,3030,7945,110)
  87. particula(3,2990,7935)
  88. data[name].cannon=os.time();
  89. end
  90. end
  91.  
  92. if key == 69 and actived[name] then
  93. titan.dir={0,0}
  94. end
  95.  
  96. if key == 37 and actived[name] then
  97. titan.dir={-10,0}
  98. end
  99.  
  100. if key == 39 and actived[name] then
  101. titan.dir={10,0}
  102. end
  103.  
  104. if key == 17 and name == adm then
  105. if tp == false then tp=true elseif tp == true then tp=false end
  106. end
  107.  
  108. if key == 88 then
  109. player=tfm.get.room.playerList[name]
  110. direita=player.isFacingRight
  111. if direita and data[name].press < os.time()-5000 then
  112. tfm.exec.movePlayer(name,0,0,false,75,0,true)
  113. particula(35, x-20, y, name)
  114. data[name].press=os.time();
  115. elseif data[name].press < os.time()-5000 then
  116. tfm.exec.movePlayer(name,0,0,false,-75,0,true)
  117. particula(35, x+20, y, name)
  118. data[name].press=os.time();
  119. end
  120. end
  121. if key == 72 then
  122. tfm.exec.movePlayer(soldado,0, 0, true, -100, -75, false)
  123. piso(100,x-1630,y-1140,cordas1)
  124. particula(3, x, y, soldado)
  125. elseif key == 75 then
  126. tfm.exec.movePlayer(soldado, 0, 0, true, 100, -75, false)
  127. piso(100,x+1630,y-1140,cordas)
  128. particula(3, x, y, soldado)
  129. end
  130. end
  131.  
  132. function eventNewGame()
  133. eventMouse(nil,400,200)
  134. for i = 1,51 do
  135. tfm.exec.addShamanObject(3, -500, 2800)
  136. end
  137. for i in pairs(tfm.get.room.playerList) do
  138. data[i].life = 100
  139. ui.addTextArea(50,"",i,6,30,math.floor(data[i].life*2),16,0x00EE00,0x00CD00,70,true)
  140. ui.addTextArea(51,"<p align='center'><R>"..data[i].life.."/100",i,6,30,200,16,0,0,0,true)
  141. tfm.exec.setPlayerScore(i,data[i].life,false)
  142. end
  143. end
  144.  
  145. function eventPlayerDied(name)
  146. data[name].life = 0
  147. ui.addTextArea(50,"",name,6,30,math.floor(data[name].life*2),16,0,0,0,true)
  148. ui.addTextArea(51,"<p align='center'><font color='#EE2C2C'><font size='18'>You are dead",name,6,25,200,nil,0,0,0,true)
  149. tfm.exec.setPlayerScore(name,data[name].life,false)
  150. end
  151.  
  152. function regen()
  153. for n in pairs(tfm.get.room.playerList) do
  154. if data[name].life < 100 and data[name].life > 0 and not tfm.get.room.playerList[n].isDead then
  155. data[name].life = data[name].life+math.random(5,8)
  156.  
  157. if data[name].life > 100 then
  158. data[name].life = 100
  159. end
  160.  
  161. ui.addTextArea(1,"",n,6,30,math.floor(data[namme].life*2),16,0x00EE00,0x00CD00,70,true)
  162. ui.addTextArea(2,"<p align='center'><R>"..data[name].life.."/100",n,6,30,200,16,0,0,0,true)
  163. tfm.exec.setPlayerScore(n,data[name].life,false)
  164. end
  165. end
  166.  
  167. time=os.time();
  168. end
  169.  
  170. function eventNewPlayer(name)
  171. data[name]={
  172. life=100,
  173. press=0,
  174. cannon=0,
  175. }
  176. system.bindKeyboard(name,69,true)
  177. system.bindKeyboard(name,32,true)
  178. tfm.exec.setPlayerScore(name,data[name].life,false)
  179. ui.addTextArea(100,"",name,6,30,math.floor(data[name].life*2),16,0x00EE00,0x00CD00,70,true)
  180. end
  181.  
  182. function eventDataBase()
  183. tfm.exec.disableAfkDeath()
  184. tfm.exec.disableMortCommand()
  185. tfm.exec.disableAutoNewGame()
  186. tfm.exec.disableAutoShaman()
  187. tfm.exec.disableAutoTimeLeft()
  188. tfm.exec.disableAutoScore()
  189. tfm.exec.setGameTime(99999)
  190. end
  191.  
  192. for name in pairs(tfm.get.room.playerList) do
  193. eventNewPlayer(name)
  194. end
  195.  
  196. actived={}
  197.  
  198. function split(t,s)
  199. local a={}
  200. for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
  201. table.insert(a,i)
  202. end
  203. return a
  204. end
  205.  
  206. system.bindMouse(adm)
  207. system.bindKeyboard(adm,17,true)
  208. function checkPlayers(x,y)
  209. for name,player in pairs(tfm.get.room.playerList) do
  210. 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
  211. data[name].life=data[name].life-math.random(2,12)
  212. ui.addTextArea(50,"",name,6,30,math.floor(data[name].life*2),16,0x00EE00,0x00CD00,70,true)
  213. ui.addTextArea(51,"<p align='center'><R>"..data[name].life.."/100",i,6,30,200,16,0,0,0,true)
  214. tfm.exec.setPlayerScore(name,data[name].life,false)
  215. end
  216. end
  217. end
  218.  
  219. function eventPopupAnswer(id,name,answer)
  220. if id == 0 then
  221. local correct_answer = (answer == Code.code and true or false)
  222.  
  223. if correct_answer then
  224. ui.addPopup(0,3,"<p align='center'>This code is correct.",name,200,200,200,true)
  225. else
  226. ui.addPopup(0,3,"<p align='center'>This code is wrong.",name,200,200,200,true)
  227. end
  228. end
  229. end
  230.  
  231. function eventLoop(t,r)
  232. if t >= 3000 then for all,data in pairs(tfm.get.room.playerList) do update_coordenates(data) end end
  233.  
  234. if chover then
  235. for k = 20,0,-1 do
  236. tfm.exec.displayParticle(14,math.random(-100,1000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  237. tfm.exec.displayParticle(14,math.random(0,2000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  238. tfm.exec.displayParticle(14,math.random(1000,3000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  239. tfm.exec.displayParticle(14,math.random(1000,4000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
  240. end
  241. end
  242.  
  243. if titan.spawned then
  244. titan.x=titan.x+titan.dir[1]
  245. titan.y=titan.y+titan.dir[2]
  246. local x,y=titan.x,titan.y
  247.  
  248. checkPlayers(x,y);
  249. piso(1020,x+63,y-40,braco)
  250. piso(1021,x+31,y-35,tronco)
  251. piso(1022,x+11,y-27,circulo)
  252. piso(1023,x+6,y-15,circulo)
  253. piso(1024,x+35,y-74,cabeca)
  254. ui.addTextArea(-1,"",nil,x,y,15,5,0x95A776,0x95A776)
  255. ui.addTextArea(0,"",nil,x+30,y,15,5,0x95A776,0x95A776)
  256. ui.addTextArea(1,"",nil,x+6,y-40,40,40,0x78583b,0x78583b)
  257. ui.addTextArea(2,"",nil,x+32,y-63,18,24,0x78583b,0x78583b)
  258. ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,x-8,y-115,200,200,0,0,0)
  259. ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,x-14,y-118,200,200,0,0,0)
  260. ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,x-3,y-167,200,200,0,0,0)
  261. ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,x-8,y-120,200,200,0,0,0)
  262. ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,x-21,y-83,200,200,0,0,0)
  263. ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,x+44,y-103,200,200,0,0,0)
  264. ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,x-25,y-154,200,200,0,0,0)
  265. ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,x-22,y-144,200,200,0,0,0)
  266. ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,x+58,y-118,200,200,0,0,0)
  267. ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,x+30,y-118,200,200,0,0,0)
  268. ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,x+32,y-118,200,200,0,0,0)
  269. ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,x+24,y-122,200,200,0,0,0)
  270. ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,x+15,y-110,200,200,0,0,0)
  271. ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,x,y-110,200,200,0,0,0)
  272. ui.addTextArea(19,"<font color='#000000' size='30'>/</font>",nil,x+30,y-73,200,200,0,0,0)
  273. ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,x+23,y-92,200,200,0,0,0)
  274. ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,x+27,y-76,200,200,0,0,0)
  275. ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,x+27,y-83,200,200,0,0,0)
  276. ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,x+39,y-75,200,200,0,0,0)
  277. ui.addTextArea(24,"<font color='#78583b' size='19'>B</font>",nil,x+70,y-53,200,200,0,0,0)
  278. ui.addTextArea(25,"",nil,x+52,y-41,25,4,0x78583b,0x78583b)
  279. ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,x+37,y-65,200,200,0,0,0)
  280. ui.addTextArea(27,"<font color='#6F4F33' size='19'>B</font>",nil,x+68,y-43,200,200,0,0,0)
  281. ui.addTextArea(28,"",nil,x+50,y-31,25,4,0x6F4F33,0x6F4F33)
  282. end
  283. end
  284.  
  285. function eventChatCommand(name,cmd)
  286. local arg = split(cmd, " ")
  287.  
  288. if arg[1] == "tp" and arg[2] and name == adm then
  289. if arg[2] then
  290. nome = arg[2]:lower():gsub('%a', string.upper, 1)
  291. local adminCoords={x=tfm.get.room.playerList[adm].x,y=tfm.get.room.playerList[adm].y}
  292. --local playerCoords={x=tfm.get.room.playerList[nome].x,y=tfm.get.room.playerList[nome].y}
  293. tfm.exec.movePlayer(nome,adminCoords.x,adminCoords.y,false)
  294. end
  295. end
  296. if arg[1] == "map" and name == adm then
  297. tfm.exec.newGame(maps[math.random(#maps)])
  298. eventDataBase()
  299. chover=false
  300. end
  301.  
  302. if arg[1] == "map2" and name == adm then
  303. tfm.exec.newGame('@7199407')
  304. eventDataBase()
  305. chover=false
  306. end
  307.  
  308. if arg[1] == "aula" and name == adm then
  309. 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)
  310. end
  311.  
  312. if arg[1] == "aular" and name == adm then
  313. ui.removeTextArea(131,nil)
  314. end
  315.  
  316. if arg[1] == "map3" and name == adm then
  317. 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>')
  318. eventDataBase()
  319. chover=false
  320. end
  321.  
  322. if arg[1] == "map4" and name == adm then
  323. 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>')
  324. eventDataBase()
  325. chover=fale
  326. end
  327.  
  328. if arg[1] == "map5" and name == adm then
  329. 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>')
  330. eventDataBase()
  331. chover=fale
  332. end
  333.  
  334. if arg[1] == "chuva" and name == adm then
  335. chover=true
  336. end
  337.  
  338. if cmd == "titan" and name == adm then
  339. for _,k in pairs({69,37,39}) do
  340. system.bindKeyboard(name,k,true)
  341. end
  342.  
  343. if not actived[name] then actived[name]=false end
  344.  
  345. if not actived[name] then
  346. system.bindMouse(name,true)
  347. actived[name]=true
  348. else
  349. system.bindMouse(name,false)
  350. actived[name]=false
  351. end
  352. end
  353.  
  354. if cmd == "titanr" and name == adm then
  355. for i=-1,28 do ui.removeTextArea(i) end
  356. for i=-1020,1024 do tfm.exec.removePhysicObject(i) end
  357. titan.x=0
  358. titan.y=0
  359. titan.spawned=false
  360. end
  361.  
  362. if arg[1] == "dmt" and name == adm then
  363. if arg[2] then
  364. nome = arg[2]:lower():gsub('%a', string.upper, 1)
  365. else
  366. nome = name
  367. end
  368. system.bindKeyboard(nome,88,true)
  369. for _,key in pairs({72,75}) do
  370. system.bindKeyboard(nome,key,true)
  371. end
  372. end
  373. end
  374.  
  375. system.disableChatCommandDisplay("tp", true)
  376. system.disableChatCommandDisplay("chuva", true)
  377. system.disableChatCommandDisplay("dmt", true)
  378. system.disableChatCommandDisplay("map", true)
  379. system.disableChatCommandDisplay("map2", true)
  380. system.disableChatCommandDisplay("map3", true)
  381. system.disableChatCommandDisplay("titan", true)
  382. system.disableChatCommandDisplay("titanr", true)
  383. system.disableChatCommandDisplay("aula", true)
  384. system.disableChatCommandDisplay("aular", true)
  385.  
  386. function eventMouse(name,x,y)
  387. if tp then
  388. tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
  389. end
  390.  
  391. if actived[name] then
  392. piso(1020,x+63,y-40,braco)
  393. piso(1021,x+31,y-35,tronco)
  394. piso(1022,x+11,y-27,circulo)
  395. piso(1023,x+6,y-15,circulo)
  396. piso(1024,x+35,y-74,cabeca)
  397. ui.addTextArea(-1,"",nil,x,y,15,5,0x95A776,0x95A776)
  398. ui.addTextArea(0,"",nil,x+30,y,15,5,0x95A776,0x95A776)
  399. ui.addTextArea(1,"",nil,x+6,y-40,40,40,0x78583b,0x78583b)
  400. ui.addTextArea(2,"",nil,x+32,y-63,18,24,0x78583b,0x78583b)
  401. ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,x-8,y-115,200,200,0,0,0)
  402. ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,x-14,y-118,200,200,0,0,0)
  403. ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,x-3,y-167,200,200,0,0,0)
  404. ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,x-8,y-120,200,200,0,0,0)
  405. ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,x-21,y-83,200,200,0,0,0)
  406. ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,x+44,y-103,200,200,0,0,0)
  407. ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,x-25,y-154,200,200,0,0,0)
  408. ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,x-22,y-144,200,200,0,0,0)
  409. ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,x+58,y-118,200,200,0,0,0)
  410. ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,x+30,y-118,200,200,0,0,0)
  411. ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,x+32,y-118,200,200,0,0,0)
  412. ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,x+24,y-122,200,200,0,0,0)
  413. ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,x+15,y-110,200,200,0,0,0)
  414. ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,x,y-110,200,200,0,0,0)
  415. ui.addTextArea(19,"<font color='#000000' size='30'>/</font>",nil,x+30,y-73,200,200,0,0,0)
  416. ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,x+23,y-92,200,200,0,0,0)
  417. ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,x+27,y-76,200,200,0,0,0)
  418. ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,x+27,y-83,200,200,0,0,0)
  419. ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,x+39,y-75,200,200,0,0,0)
  420. ui.addTextArea(24,"<font color='#78583b' size='19'>B</font>",nil,x+70,y-53,200,200,0,0,0)
  421. ui.addTextArea(25,"",nil,x+52,y-41,25,4,0x78583b,0x78583b)
  422. ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,x+37,y-65,200,200,0,0,0)
  423. ui.addTextArea(27,"<font color='#6F4F33' size='19'>B</font>",nil,x+68,y-43,200,200,0,0,0)
  424. ui.addTextArea(28,"",nil,x+50,y-31,25,4,0x6F4F33,0x6F4F33)
  425. titan.x=x
  426. titan.y=y
  427. titan.spawned=true
  428. end
  429. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement