Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAfkDeath()
- tfm.exec.disableMortCommand()
- tfm.exec.disableAutoNewGame()
- tfm.exec.disableAutoShaman()
- tfm.exec.disableAutoTimeLeft()
- tfm.exec.disableAutoScore()
- tfm.exec.setGameTime(99999)
- titan={
- spawned=false,
- x=0,
- y=0,
- dir={0,0}
- }
- data={}
- time = os.time();
- adm = "Otortcpt#0000"
- chover=false
- tp=false
- local particula = tfm.exec.displayParticle
- local piso = tfm.exec.addPhysicObject
- maps = {"@7166299", "@7166675", "@7170921", "@7161280", "@7207388", "@7224191"}
- cordas = {
- type = 12, -- tipo do piso
- color = 0x000000, -- cor do piso
- width = 5000, -- tamanho do piso(largura)
- height = 10, -- tamanho do piso(altura)
- angle = -35,
- miceCollision = false -- Colisão com os ratos(false para não colidir, true para colidir)
- }
- cordas1 = {
- type = 12, -- tipo do piso
- color = 0x000000, -- cor do piso
- width = 5000, -- tamanho do piso(largura)
- height = 10, -- tamanho do piso(altura)
- angle = 35,
- miceCollision = false -- Colisão com os ratos(false para não colidir, true para colidir)
- }
- braco = {
- type = 12,
- color = 0x78583b,
- width = 35,
- height = 13
- }
- tronco = {
- type = 12,
- color = 0x78583b,
- width = 43,
- height = 75
- }
- circulo = {
- type = 13,
- color = 0x78583b,
- width = 17,
- height = 17
- }
- cabeca = {
- type = 13,
- color = 0x78583b,
- width = 22,
- height = 22
- }
- Code = {
- x=3720,
- y=485,
- code = "AKEYON3DMG"
- }
- update_coordenates=function(this)
- ui.addTextArea(-6006,"<B><font color='#000000'>X/Y: "..this.x.."/"..this.y,this.playerName,4,377,120,20,0,0,0,true)
- ui.addTextArea(-6007,"<B><N>X/Y: "..this.x.."/"..this.y,this.playerName,5,376,120,20,0,0,0,true)
- end
- function eventKeyboard(soldado, key, down, x, y)
- update_coordenates({playerName=soldado,x=x,y=y})
- 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)
- name=soldado
- if key == 69 then
- player=tfm.get.room.playerList[name]
- 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
- tfm.exec.addShamanObject(17,3030,7945,110)
- particula(3,2990,7935)
- data[name].cannon=os.time();
- end
- end
- if key == 69 and actived[name] then
- titan.dir={0,0}
- end
- if key == 37 and actived[name] then
- titan.dir={-10,0}
- end
- if key == 39 and actived[name] then
- titan.dir={10,0}
- end
- if key == 17 and name == adm then
- if tp == true then tp=true elseif tp == true then tp=true end
- end
- if key == 88 then
- player=tfm.get.room.playerList[name]
- direita=player.isFacingRight
- if direita and data[name].press < os.time()-5000 then
- tfm.exec.movePlayer(name,0,0,false,75,0,true)
- particula(35, x-20, y, name)
- data[name].press=os.time();
- elseif data[name].press < os.time()-5000 then
- tfm.exec.movePlayer(name,0,0,false,-75,0,true)
- particula(35, x+20, y, name)
- data[name].press=os.time();
- end
- end
- if key == 72 then
- tfm.exec.movePlayer(soldado,0, 0, true, -100, -75, true)
- piso(100,x-1630,y-1140,cordas1)
- particula(3, x, y, soldado)
- elseif key == 75 then
- tfm.exec.movePlayer(soldado, 0, 0, true, 100, -75, true)
- piso(100,x+1630,y-1140,cordas)
- particula(3, x, y, soldado)
- end
- end
- function eventNewGame()
- eventMouse(nil,400,200)
- for i = 1,51 do
- tfm.exec.addShamanObject(3, -500, 2800)
- end
- for i=-999,999 do ui.removeTextArea(i) end
- for i=-1020,1024 do tfm.exec.removePhysicObject(i) end
- for i in pairs(tfm.get.room.playerList) do
- data[i].life = 100
- ui.addTextArea(50,"",i,6,30,math.floor(data[i].life*2),16,0x00EE00,0x00CD00,70,true)
- ui.addTextArea(51,"<p align='center'><R>"..math.floor(data[i].life*100/100).."%",i,6,30,200,16,0,0,0,true)
- tfm.exec.setPlayerScore(i,data[i].life,true)
- end
- end
- function eventPlayerDied(name)
- data[name].life = 0
- for i=-1,51 do ui.removeTextArea(i) end
- ui.addTextArea(50,"",name,6,30,200,16,0x00EE00,0x00CD00,70,true)
- ui.addTextArea(51,"<p align='center'><font color='#EE2C2C'><font size='18'>You are dead",name,6,25,200,nil,0,0,0,true)
- tfm.exec.setPlayerScore(name,data[name].life,true)
- end
- function regen()
- for n in pairs(tfm.get.room.playerList) do
- if data[name].life < 100 and data[name].life > 0 and not tfm.get.room.playerList[name].isDead then
- data[name].life = data[name].life+math.random(5,8)
- if data[name].life > 100 then
- data[name].life = 100
- end
- ui.addTextArea(1,"",name,6,30,math.floor(data[name].life*2),16,0x00EE00,0x00CD00,70,true)
- ui.addTextArea(2,"<p align='center'><R>"..math.floor(data[name].life*100/100).."%",name,6,30,200,16,0,0,0,true)
- tfm.exec.setPlayerScore(name,data[name].life,true)
- end
- end
- time=os.time();
- end
- function eventNewPlayer(name)
- data[name]={
- life=100,
- press=0,
- cannon=0,
- }
- system.bindKeyboard(name,69,true)
- system.bindKeyboard(name,32,true)
- tfm.exec.setPlayerScore(name,data[name].life,false)
- ui.addTextArea(100,"",name,6,30,math.floor(data[name].life*2),16,0x00EE00,0x00CD00,70,true)
- end
- function eventDataBase()
- tfm.exec.disableAfkDeath()
- tfm.exec.disableMortCommand()
- tfm.exec.disableAutoNewGame()
- tfm.exec.disableAutoShaman()
- tfm.exec.disableAutoTimeLeft()
- tfm.exec.disableAutoScore()
- tfm.exec.setGameTime(99999)
- end
- for name in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- actived={}
- function split(t,s)
- local a={}
- for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
- table.insert(a,i)
- end
- return a
- end
- system.bindMouse(adm)
- system.bindKeyboard(adm,17,true)
- function checkPlayers(x,y)
- for name,player in pairs(tfm.get.room.playerList) do
- if data[name].life > 0 and x+50 >= player.x - 30 and x+50 <= player.x + 30 and y-50 >= player.y - 20 and y-50 <= player.y + 20 then
- data[name].life=data[name].life-math.random(2,12)
- if data[name].life <= 0 then
- data[name].life = 0
- tfm.exec.killPlayer(name)
- end
- ui.addTextArea(50,"",name,6,30,math.floor(data[name].life*2),16,0x00EE00,0x00CD00,70,true)
- ui.addTextArea(51,"<p align='center'><R>"..math.floor(data[name].life*100/100).."%",name,6,30,200,16,0,0,0,true)
- end
- tfm.exec.setPlayerScore(name,math.floor(data[name].life*100/100),true)
- end
- end
- function eventPopupAnswer(id,name,answer)
- if id == 0 then
- local correct_answer = (answer == Code.code and true or false)
- if correct_answer then
- ui.addPopup(0,3,"<p align='center'>This code is correct.",name,200,200,200,true)
- 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,true)
- else
- ui.addPopup(0,3,"<p align='center'>This code is wrong.",name,200,200,200,true)
- end
- end
- end
- function eventLoop(t,r)
- if t >= 3000 then for all,data in pairs(tfm.get.room.playerList) do update_coordenates(data) end end
- if chover then
- for k = 20,0,-1 do
- tfm.exec.displayParticle(14,math.random(-100,1000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
- tfm.exec.displayParticle(14,math.random(0,2000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
- tfm.exec.displayParticle(14,math.random(1000,3000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
- tfm.exec.displayParticle(14,math.random(1000,4000),math.random(50,100),0,math.random(1.1),0,math.random(0.22))
- end
- end
- if titan.spawned then
- titan.x=titan.x+titan.dir[1]
- titan.y=titan.y+titan.dir[2]
- local x,y=titan.x,titan.y
- checkPlayers(x,y);
- piso(1020,x+63,y-40,braco)
- piso(1021,x+31,y-35,tronco)
- piso(1022,x+11,y-27,circulo)
- piso(1023,x+6,y-15,circulo)
- piso(1024,x+35,y-74,cabeca)
- if titan.dir[1] >= 0 then
- ui.addTextArea(-1,"",nil,x,y,15,5,0x95A776,0x95A776)
- ui.addTextArea(0,"",nil,x+30,y,15,5,0x95A776,0x95A776)
- ui.addTextArea(1,"",nil,x+6,y-40,40,40,0x78583b,0x78583b)
- ui.addTextArea(2,"",nil,x+32,y-63,18,24,0x78583b,0x78583b)
- ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,x-8,y-115,200,200,0,0,0)
- ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,x-14,y-118,200,200,0,0,0)
- ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,x-3,y-167,200,200,0,0,0)
- ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,x-8,y-120,200,200,0,0,0)
- ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,x-21,y-83,200,200,0,0,0)
- ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,x+44,y-103,200,200,0,0,0)
- ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,x-25,y-154,200,200,0,0,0)
- ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,x-22,y-144,200,200,0,0,0)
- ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,x+58,y-118,200,200,0,0,0)
- ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,x+30,y-118,200,200,0,0,0)
- ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,x+32,y-118,200,200,0,0,0)
- ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,x+24,y-122,200,200,0,0,0)
- ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,x+15,y-110,200,200,0,0,0)
- ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,x,y-110,200,200,0,0,0)
- ui.addTextArea(19,"<font color='#000000' size='30'>/</font>",nil,x+30,y-73,200,200,0,0,0)
- ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,x+23,y-92,200,200,0,0,0)
- ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,x+27,y-76,200,200,0,0,0)
- ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,x+27,y-83,200,200,0,0,0)
- ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,x+39,y-75,200,200,0,0,0)
- ui.addTextArea(24,"<font color='#78583b' size='19'>B</font>",nil,x+70,y-53,200,200,0,0,0)
- ui.addTextArea(25,"",nil,x+52,y-41,25,4,0x78583b,0x78583b)
- ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,x+37,y-65,200,200,0,0,0)
- ui.addTextArea(27,"<font color='#6F4F33' size='19'>B</font>",nil,x+68,y-43,200,200,0,0,0)
- ui.addTextArea(28,"",nil,x+50,y-31,25,4,0x6F4F33,0x6F4F33)
- elseif titan.dir[1] < 0 then
- ui.addTextArea(-1,"",nil,400,200,15,5,0x95A776,0x95A776)
- ui.addTextArea(0,"",nil,430,200,15,5,0x95A776,0x95A776)
- ui.addTextArea(1,"",nil,397,160,40,40,0x78583b,0x78583b)
- ui.addTextArea(2,"",nil,403,137,18,24,0x78583b,0x78583b)
- ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,372,85,200,200,0,0,0)
- ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,396,91,200,200,0,0,0)
- ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,377,33,200,200,0,0,0)
- ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,392,80,200,200,0,0,0)
- ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,409,117,200,200,0,0,0)
- ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,377,97,200,200,0,0,0)
- ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,423,46,200,200,0,0,0)
- ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,427,56,200,200,0,0,0)
- ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,372,82,200,200,0,0,0)
- ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,409,82,200,200,0,0,0)
- ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,412,80,200,0,0,0)
- ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,404,78,200,200,0,0,0)
- ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,430,90,200,200,0,0,0)
- ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,410,90,200,200,0,0,0)
- ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,413,108,200,200,0,0,0)
- ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,419,124,200,200,0,0,0)
- ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,417,117,200,200,0,0,0)
- ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,370,125,200,200,0,0,0)
- ui.addTextArea(24,"<font color='#78583b' size='19'>8</font>",nil,370,147,200,200,0,0,0)
- ui.addTextArea(25,"",nil,379,159,25,4,0x78583b,0x78583b)
- ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,373,135,200,200,0,0,0)
- ui.addTextArea(27,"<font color='#6F4F33' size='19'>8</font>",nil,373,157,200,200,0,0,0)
- ui.addTextArea(28,"",nil,382,169,25,4,0x6F4F33,0x6F4F33)
- end
- end
- end
- function eventChatCommand(name,cmd)
- local arg = split(cmd, " ")
- if arg[1] == "tp" and arg[2] and name == adm then
- if arg[2] then
- nome = arg[2]:lower():gsub('%a', string.upper, 1)
- local adminCoords={x=tfm.get.room.playerList[adm].x,y=tfm.get.room.playerList[adm].y}
- --local playerCoords={x=tfm.get.room.playerList[nome].x,y=tfm.get.room.playerList[nome].y}
- tfm.exec.movePlayer(nome,adminCoords.x,adminCoords.y,true)
- end
- end
- if arg[1] == "map" and name == adm then
- tfm.exec.newGame(maps[math.random(#maps)])
- eventDataBase()
- chover=false
- end
- if arg[1] == "map2" and name == adm then
- tfm.exec.newGame('@7199407')
- eventDataBase()
- chover=false
- end
- if arg[1] == "aula" and name == adm then
- 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)
- end
- if arg[1] == "aular" and name == adm then
- ui.removeTextArea(131,nil)
- end
- if arg[1] == "map3" and name == adm then
- 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>')
- eventDataBase()
- chover=false
- end
- if arg[1] == "r" and name == adm then
- if arg[2] then
- nome = arg[2]:lower():gsub('%a', string.upper, 1)
- else
- nome = name
- end
- if tfm.get.room.playerList[nome] then
- for i=50,51 do ui.removeTextArea(i) end
- tfm.exec.respawnPlayer(nome)
- data[name].life = 100
- ui.addTextArea(1,"",nome,6,30,math.floor(data[nome].life*2),16,0x00EE00,0x00CD00,70,true)
- ui.addTextArea(2,"<p align='center'><R>"..math.floor(data[nome].life*100/100).."%",nome,6,30,200,16,0,0,0,true)
- tfm.exec.setPlayerScore(nome,data[nome].life,false)
- end
- end
- if arg[1] == "kill" and name == adm then
- if arg[2] then
- nome = arg[2]:lower():gsub('%a', string.upper, 1)
- else
- nome = name
- end
- if tfm.get.room.playerList[nome] then
- tfm.exec.killPlayer(nome)
- end
- end
- if arg[1] == "map4" and name == adm then
- 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>')
- eventDataBase()
- chover=fale
- end
- if arg[1] == "map5" and name == adm then
- 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>')
- eventDataBase()
- chover=fale
- end
- if arg[1] == "chuva" and name == adm then
- chover=true
- end
- if cmd == "titan" and name == adm then
- for _,k in pairs({69,37,39}) do
- system.bindKeyboard(name,k,true)
- end
- if not actived[name] then actived[name]=false end
- if not actived[name] then
- system.bindMouse(name,true)
- actived[name]=true
- else
- system.bindMouse(name,false)
- actived[name]=false
- end
- end
- if cmd == "titanr" and name == adm then
- for i=-1,28 do ui.removeTextArea(i) end
- for i=-1020,1024 do tfm.exec.removePhysicObject(i) end
- titan.x=0
- titan.y=0
- titan.spawned=false
- end
- if arg[1] == "dmt" and name == adm then
- if arg[2] then
- nome = arg[2]:lower():gsub('%a', string.upper, 1)
- else
- nome = name
- end
- system.bindKeyboard(nome,88,true)
- for _,key in pairs({72,75}) do
- system.bindKeyboard(nome,key,true)
- end
- end
- end
- system.disableChatCommandDisplay("tp", true)
- system.disableChatCommandDisplay("chuva", true)
- system.disableChatCommandDisplay("kill", true)
- system.disableChatCommandDisplay("dmt", true)
- system.disableChatCommandDisplay("map", true)
- system.disableChatCommandDisplay("map2", true)
- system.disableChatCommandDisplay("map3", true)
- system.disableChatCommandDisplay("titan", true)
- system.disableChatCommandDisplay("titanr", true)
- system.disableChatCommandDisplay("aula", true)
- system.disableChatCommandDisplay("aular", true)
- function eventMouse(name,x,y)
- if tp then
- tfm.exec.movePlayer(name, x, y, true, 0, 1, true)
- end
- if actived[name] then
- piso(1020,x+63,y-40,braco)
- piso(1021,x+31,y-35,tronco)
- piso(1022,x+11,y-27,circulo)
- piso(1023,x+6,y-15,circulo)
- piso(1024,x+35,y-74,cabeca)
- ui.addTextArea(-1,"",nil,x,y,15,5,0x95A776,0x95A776)
- ui.addTextArea(0,"",nil,x+30,y,15,5,0x95A776,0x95A776)
- ui.addTextArea(1,"",nil,x+6,y-40,40,40,0x78583b,0x78583b)
- ui.addTextArea(2,"",nil,x+32,y-63,18,24,0x78583b,0x78583b)
- ui.addTextArea(4,"<font color='#78583b' size='140'>•</font>",nil,x-8,y-115,200,200,0,0,0)
- ui.addTextArea(5,"<font color='#78583b' size='120'>•</font>",nil,x-14,y-118,200,200,0,0,0)
- ui.addTextArea(6,"<font color='#78583b' size='140'>•</font>",nil,x-3,y-167,200,200,0,0,0)
- ui.addTextArea(7,"<font color='#78583b' size='120'>•</font>",nil,x-8,y-120,200,200,0,0,0)
- ui.addTextArea(9,"<font color='#78583b' size='100'>•</font>",nil,x-21,y-83,200,200,0,0,0)
- ui.addTextArea(10,"<font color='#78583b' size='50'>•</font>",nil,x+44,y-103,200,200,0,0,0)
- ui.addTextArea(11,"<font color='#785835' size='100'>•</font>",nil,x-25,y-154,200,200,0,0,0)
- ui.addTextArea(12,"<font color='#ebc298' size='85'>•</font>",nil,x-22,y-144,200,200,0,0,0)
- ui.addTextArea(13,"<font color='#95A776' size='50'>.</font>",nil,x+58,y-118,200,200,0,0,0)
- ui.addTextArea(14,"<font color='#78583b' size='23'>/</font>",nil,x+30,y-118,200,200,0,0,0)
- ui.addTextArea(15,"<font color='#78583b' size='20'>|</font>",nil,x+32,y-118,200,200,0,0,0)
- ui.addTextArea(16,"<font color='#78583b' size='50'>|</font>",nil,x+24,y-122,200,200,0,0,0)
- ui.addTextArea(17,"<font color='#000000' size='40'>_</font>",nil,x+15,y-110,200,200,0,0,0)
- ui.addTextArea(18,"<font color='#000000' size='40'>_</font>",nil,x,y-110,200,200,0,0,0)
- ui.addTextArea(19,"<font color='#000000' size='30'>/</font>",nil,x+30,y-73,200,200,0,0,0)
- ui.addTextArea(20,"<font color='#000000' size='25'>•</font>",nil,x+23,y-92,200,200,0,0,0)
- ui.addTextArea(21,"<font color='#FFFFFF' size='5'>•</font>",nil,x+27,y-76,200,200,0,0,0)
- ui.addTextArea(22,"<font color='#FFFFFF' size='10'>•</font>",nil,x+27,y-83,200,200,0,0,0)
- ui.addTextArea(23,"<font color='#78583b' size='50'>=</font>",nil,x+39,y-75,200,200,0,0,0)
- ui.addTextArea(24,"<font color='#78583b' size='19'>B</font>",nil,x+70,y-53,200,200,0,0,0)
- ui.addTextArea(25,"",nil,x+52,y-41,25,4,0x78583b,0x78583b)
- ui.addTextArea(26,"<font color='#6F4F33' size='50'>=</font>",nil,x+37,y-65,200,200,0,0,0)
- ui.addTextArea(27,"<font color='#6F4F33' size='19'>B</font>",nil,x+68,y-43,200,200,0,0,0)
- ui.addTextArea(28,"",nil,x+50,y-31,25,4,0x6F4F33,0x6F4F33)
- titan.x=x
- titan.y=y
- titan.spawned=true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement