Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print([[<ROSE>[~Tribu] <N>Lua launched successfully! <J>##]]);
- system.disableChatCommandDisplay([[report]])
- system.disableChatCommandDisplay([[mort]])
- system.disableChatCommandDisplay([[help]])
- system.disableChatCommandDisplay([[msg]], true)
- tfm.exec.disableAutoNewGame(false)
- tfm.exec.disableAutoShaman(false)
- port = 0
- alive = 0
- time = os.time()
- msgs = {};
- txtChat = "<VP><B>[~Bot]</B> <N>Bem vindo ao Painel Admin!";
- ads = {[[<bv>Concurso: "Meu pequeno Script"<br><j>Dia: 15/01/2014 - 16:30<br>Usuários interessados em participar comparecer no cafofo na data e horário!<br><br><v>Prêmio: Cargo exclusivo!]],[[<BV>Campeonato de #fight<br><j>Dia: 16/01/2014 - 16:00<br><v>Prêmio: Um beijo Meu<br><br><r>By: Squalleze]]}
- log = [[<ROSE>[~Log] <N>Lua Carregado com sucesso!]]
- players = {};
- banneds = {};
- master = {Theapps = true, YourName = true}
- admins = {Theapps = true, YourName = true};
- info = {}
- Reportados = {}
- currentMaplist = [[alert]]
- temp1 = [[]]
- maps = {["alert"] = {[[If the total of 2,000 characters pass the maps can not be edited here!]]}, ["vanilla"] = {}, ["default"] = {[[@3078]],[[@8679]],[[@82090]],[[@127419]],[[@129835]],[[@142101]],[[@142738]],[[@146364]],[[@146615]],[[@147437]]}, ["defilante"] = {[[@767142]],[[@1299415]],[[@1408349]],[[@2067212]],[[@2350333]],[[@2391874]],[[@2403601]],[[@2724523]],[[@2828653]],[[@3360371]]}, ["racing"] = {[[@1471124]],[[@1694602]],[[@1644638]],[[@1542736]],[[@1495344]]}, ["art"] = {[[@129420]],[[@154859]],[[@202952]],[[@224120]],[[@230970]],[[@235931]],[[@238162]],[[@247992]],[[@256797]],[[@257777]],}, ["mecanic"] = {[[@49101]],[[@60303]],[[@113235]],[[@119308]],[[@121043]],[[@121494]],[[@123777]],[[@124969]],[[@126151]],[[@127440]]}, ["survivor"] = {[[@276534]],[[@279689]],[[@280120]],[[@280159]],[[@281431]],[[@281479]],[[@281492]],[[@281649]],[[@289932]],[[@289964]]}, ["vampire"] = {[[@258972]],[[@334445]],[[@423793]],[[@615791]],[[@760329]],[[@812007]],[[@946893]],[[@955523]],[[@1296883]],[[@1542025]]}}
- Rotating = false
- Vanilla = false
- Vampire = false
- Defilante = false
- Bootcamp = false
- Racing = false
- Art = false
- Mecanic = false
- Survivor = false
- NameFlashing = false
- Fly = false
- Jump = false
- Teleport = false
- TeleJump = false
- Speed = false
- Ads = false
- for x = 0, 143 do
- table.insert(maps["vanilla"], x)
- end
- for x = 200, 210 do
- table.insert(maps["vanilla"], x)
- end
- for x = 1, 100 do
- table.insert(Reportados, #Reportados+1, [[-]])
- end
- function concatedMaps()
- local ret = [[]]
- for i, map in pairs(maps[currentMaplist]) do
- ret = ret..[[<N><a href='event:deletemap_]]..map..[['>]]..map..[[</a><br>]]
- end
- return ret
- end
- function concatedLists()
- local ret = [[]]
- for list,_ in pairs(maps) do
- ret = ret..[[<br> - ]]..list
- end
- return ret
- end
- function eventReportsLog(v)
- ui.addTextArea(51, [[]], p, 50, 60, 700, 290, 768, 768, 0.8, true);
- ui.addTextArea(52, [[<B>Lista de Reportados:]], p, 50, 60, 300, 25, 768, 768, 0, true);
- ui.addTextArea(53, [[]]..(1+v)..[[. ]]..Reportados[1+v]..[[]], p, 50, 85, 300, 25, 768, 768, 0, true);
- ui.addTextArea(54, [[]]..(2+v)..[[. ]]..Reportados[2+v]..[[]], p, 50, 110, 300, 25, 768, 768, 0, true);
- ui.addTextArea(55, [[]]..(3+v)..[[. ]]..Reportados[3+v]..[[]], p, 50, 135, 300, 25, 768, 768, 0, true);
- ui.addTextArea(56, [[]]..(4+v)..[[. ]]..Reportados[4+v]..[[]], p, 50, 160, 300, 25, 768, 768, 0, true);
- ui.addTextArea(57, [[]]..(5+v)..[[. ]]..Reportados[5+v]..[[]], p, 50, 185, 300, 25, 768, 768, 0, true);
- ui.addTextArea(58, [[]]..(6+v)..[[. ]]..Reportados[6+v]..[[]], p, 50, 210, 300, 25, 768, 768, 0, true);
- ui.addTextArea(59, [[]]..(7+v)..[[. ]]..Reportados[7+v]..[[]], p, 50, 235, 300, 25, 768, 768, 0, true);
- ui.addTextArea(60, [[]]..(8+v)..[[. ]]..Reportados[8+v]..[[]], p, 50, 260, 300, 25, 768, 768, 0, true);
- ui.addTextArea(61, [[]]..(9+v)..[[. ]]..Reportados[9+v]..[[]], p, 50, 285, 300, 25, 768, 768, 0, true);
- ui.addTextArea(62, [[]]..(10+v)..[[. ]]..Reportados[10+v]..[[]], p, 50, 310, 300, 25, 768, 768, 0, true);
- ui.addTextArea(63, [[]]..(11+v)..[[. ]]..Reportados[11+v]..[[]], p, 400, 85, 300, 25, 768, 768, 0, true);
- ui.addTextArea(64, [[]]..(12+v)..[[. ]]..Reportados[12+v]..[[]], p, 400, 110, 300, 25, 768, 768, 0, true);
- ui.addTextArea(65, [[]]..(13+v)..[[. ]]..Reportados[13+v]..[[]], p, 400, 135, 300, 25, 768, 768, 0, true);
- ui.addTextArea(66, [[]]..(14+v)..[[. ]]..Reportados[14+v]..[[]], p, 400, 160, 300, 25, 768, 768, 0, true);
- ui.addTextArea(67, [[]]..(15+v)..[[. ]]..Reportados[15+v]..[[]], p, 400, 185, 300, 25, 768, 768, 0, true);
- ui.addTextArea(68, [[]]..(16+v)..[[. ]]..Reportados[16+v]..[[]], p, 400, 210, 300, 25, 768, 768, 0, true);
- ui.addTextArea(69, [[]]..(17+v)..[[. ]]..Reportados[17+v]..[[]], p, 400, 235, 300, 25, 768, 768, 0, true);
- ui.addTextArea(70, [[]]..(18+v)..[[. ]]..Reportados[18+v]..[[]], p, 400, 260, 300, 25, 768, 768, 0, true);
- ui.addTextArea(71, [[]]..(19+v)..[[. ]]..Reportados[19+v]..[[]], p, 400, 285, 300, 25, 768, 768, 0, true);
- ui.addTextArea(72, [[]]..(20+v)..[[. ]]..Reportados[20+v]..[[]], p, 400, 310, 300, 25, 768, 768, 0, true);
- ui.addTextArea(73, [[<p align='right'><a href='event:close'><b>Close</b></a></p>]], p, 700, 333, 50, 25, 768, 768, 0, true);
- ui.addTextArea(74, [[<a href='event:alert'>Alertar</a> ~ <a href='event:ban'>Banir</a> ~ <a href='event:unban'>Desbanir</a>]], p, 50, 333, 200, 25, 768, 768, 0, true);
- ui.addTextArea(75, [[<p align='right'><a href='event:reset'><b>Limpar</b></a></p>]], p, 700, 60, 50, 25, 768, 768, 0, true);
- if (port > 20) and (port < 40) then
- ui.addTextArea(76, [[<p align='center'><font color='#C2C2DA'><a href='event:log'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log2'><b>•</b></a></font>]], p, 380, 60, 40, 25, 768, 768, 0, true);
- elseif (port > 40) and (port < 60) then
- ui.addTextArea(76, [[<p align='center'><font color='#C2C2DA'><a href='event:log'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log2'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log3'><b>•</b></a></font>]], p, 370, 60, 60, 25, 768, 768, 0, true);
- elseif (port > 60) and (port < 80) then
- ui.addTextArea(76, [[<p align='center'><font color='#C2C2DA'><a href='event:log'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log2'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log3'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log4'><b>•</b></a></font>]], p, 360, 60, 80, 25, 768, 768, 0, true);
- elseif (port > 80) then
- ui.addTextArea(76, [[<p align='center'><font color='#C2C2DA'><a href='event:log'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log2'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log3'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log4'><b>•</b></a></font> <font color='#C2C2DA'><a href='event:log5'><b>•</b></a></font>]], p, 350, 60, 100, 25, 768, 768, 0, true);
- end
- end
- function eventGiveAdmin(o)
- if master[o] then
- admins[o] = true
- tfm.exec.setNameColor(o, 0xEB1D51)
- ui.addTextArea(1,[[<BR><p align='center'><a href='event:chat'><b>Chat</b></a></p>]],o,602,10,33,30, 0x300, 0x300, 0.8, true);
- ui.addTextArea(2,[[<BR><p align='center'><a href='event:panel'><b>Panel</b></a></p>]],o,657,10,40,30, 0x300, 0x300, 0.8, true);
- ui.addTextArea(3,[[<BR><p align='center'><a href='event:logs'><b>Log</b></a></p>]],o,757,10,27,30, 0x300, 0x300, 0.8, true);
- elseif not master[o] then
- admins[o] = true
- tfm.exec.setNameColor(o, 0x2F7FCC)
- ui.addTextArea(1,[[<BR><p align='center'><a href='event:chat'><b>Chat</b></a></p>]],o,602,10,33,30, 0x300, 0x300, 0.8, true);
- ui.addTextArea(2,[[<BR><p align='center'><a href='event:panel'><b>Panel</b></a></p>]],o,657,10,40,30, 0x300, 0x300, 0.8, true);
- ui.addTextArea(3,[[<BR><p align='center'><a href='event:logs'><b>Log</b></a></p>]],o,757,10,27,30, 0x300, 0x300, 0.8, true);
- end
- end
- function eventAds(p)
- if info[p].ads == true then
- ui.addTextArea(14, [[]], p, -1500, -1500, 3000, 3000, 6976661, 6976661, 1.1, true);
- ui.addTextArea(15, [[<font face='Comic Sans MS' size='30'><p align='center'><br><b><r>Aviso!</ch></font><br><font face='Comic Sans MS' size='25'><j>]]..info[p].text..[[</p><br><font size="10"><j><ESCREVA AQUI(POUCA COISA)</j></font>]], p, 5, 5, 790, 590, 768, 768, 0.3, true);
- ui.addTextArea(16, [[<font face='Comic Sans MS' size="15">Você poderá jogar em ]]..info[p].count..[[ </font>]], p, 625, 320, 300, nil, 768, 768, 0.3, true);
- ui.addTextArea(17, [[]], p, 805, 5, 3000, 690, 6976661, 6976661, 1.1, true);
- end
- end
- function eventAdsExit(p)
- if info[p].ads == true then
- ui.addTextArea(16, [[<font face='Comic Sans MS' size="15"><a href='event:close'>Jogar ! » </a></font>]], p, 700, 320, 300, nil, 768, 768, 0.3, true);
- ui.addTextArea(17, [[]], p, 805, 5, 3000, 690, 6976661, 6976661, 1.1, true);
- end
- end
- function eventNewGame()
- alive = 0
- if Bootcamp == false then
- tfm.exec.disableAfkDeath(false)
- tfm.exec.disableAutoTimeLeft(false)
- elseif Bootcamp == true then
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoTimeLeft(true)
- end
- for p in pairs(tfm.get.room.playerList) do
- alive = alive+1
- if banneds[p] == true then
- tfm.exec.killPlayer(p)
- ui.addTextArea(-1, [[]], p, -1000, -1000, 2800, 2800, 768, 768, 1.1, true);
- end
- end
- end
- function eventLoop(tp,tr)
- if Rotating == true then
- if tr <= 0 or alive == 0 then
- tfm.exec.newGame(maps.default[math.random(#maps.default)])
- end
- elseif Vanilla then
- if tr <= 0 or alive == 0 then
- tfm.exec.newGame(maps.vanilla[math.random(#maps.vanilla)])
- end
- elseif Defilante == true then
- if tr <= 0 or alive == 0 then
- tfm.exec.newGame(maps.defilante[math.random(#maps.defilante)])
- end
- elseif Bootcamp == true then
- if tr <= 0 or alive == 0 then
- tfm.exec.newGame(maps.bootcamp[math.random(#maps.bootcamp)])
- tfm.exec.setGameTime([[360]])
- elseif time < os.time()-5000 then
- time = os.time()
- for p in pairs(tfm.get.room.playerList) do
- tfm.exec.respawnPlayer(p)
- end
- end
- elseif Racing == true then
- if tr <= 0 or alive == 0 then
- tfm.exec.newGame(maps.racing[math.random(#maps.racing)])
- tfm.exec.setGameTime([[63]])
- end
- elseif Art == true then
- if tr <= 0 or alive == 0 then
- tfm.exec.newGame(maps.art[math.random(#maps.art)])
- end
- elseif Mecanic == true then
- if tr <= 0 or alive == 0 then
- tfm.exec.newGame(maps.mecanic[math.random(#maps.mecanic)])
- end
- elseif Survivor == true then
- if tr <= 0 or alive == 0 then
- tfm.exec.newGame(maps.survivor[math.random(#maps.survivor)])
- end
- elseif Vampire == true then
- if tr <= 0 or alive == 0 then
- tfm.exec.newGame(maps.vampire[math.random(#maps.vampire)])
- end
- elseif NameFlashing == true then
- for i=1,100 do
- for p in pairs(tfm.get.room.playerList) do
- tfm.exec.setNameColor(p, randomColor());
- end
- end
- end
- for p in pairs(tfm.get.room.playerList) do
- if Ads == true then
- if info[p].adstime < os.time()-1000 and info[p].count > 0 and not info[p].ads == false then
- info[p].adstime = os.time()
- info[p].count = info[p].count-1
- eventAds(p)
- elseif info[p].count == 0 and not info[p].ads == false then
- eventAdsExit(p)
- end
- end
- end
- end
- function eventPlayerRespawn(p)
- if not Bootcamp == true then
- alive = alive+1
- end
- if banneds[p] == true then
- tfm.exec.killPlayer(p)
- ui.addTextArea(-1, [[]], p, -1000, -1000, 2800, 2800, 768, 768, 1.1, true);
- end
- end
- function randomColor()
- return "0x" .. string.format("%X", math.random(0x000000, 0xFFFFFF))
- end
- function eventPlayerWon(p)
- if not Bootcamp == true then
- alive = alive-1
- end
- end
- function nextRound()
- if Rotating == true then
- tfm.exec.newGame(maps[default][math.random(#maps.default)])
- elseif Vanilla == true then
- tfm.exec.newGame(maps.vanilla[math.random(#maps.vanilla)])
- elseif Defilante== true then
- tfm.exec.newGame(maps.defilante[math.random(#maps.defilante)])
- elseif Bootcamp == true then
- tfm.exec.newGame(maps.bootcamp[math.random(#maps.bootcamp)])
- tfm.exec.setGameTime([[360]])
- elseif Racing == true then
- tfm.exec.newGame(maps.racing[math.random(#maps.racing)])
- tfm.exec.setGameTime([[63]])
- elseif Art == true then
- tfm.exec.newGame(maps.art[math.random(#maps.art)])
- elseif Mecanic == true then
- tfm.exec.newGame(maps.mecanic[math.random(#maps.mecanic)])
- elseif Survivor == true then
- tfm.exec.newGame(maps.survivor[math.random(#maps.survivor)])
- elseif Vampire == true then
- tfm.exec.newGame(maps.vampire[math.random(#maps.vampire)])
- end
- end
- function eventPlayerDied(p)
- if not Bootcamp == true then
- alive = alive-1
- end
- end
- translations={
- EN={
- help={
- [[<font size='18'><b><p align='center'>Bem-vindo(a) ao Cafofo</p></b></font><br>Seu objetivo é se divertir e fazer amigos(as).<br>Use as teclas direcionais (←, ↑, →, ↓ ou, W, A , S, D) para se movimentar]],
- [[<font size='18'><b><p align='center'>Comandos/Regras</p></b></font><br><font size='11'><b>Comandos:</b></font><br>!mort - faz você morrer.<br>!report - reporta um usuário aos administradores.<br><br><font size='11'><b>Regras:</b></font><br>- Não peça cargo de administrador ou você poderá ser punido(a).<br>- O uso de Hacker é proibido, o usuário que for pego usando será expulso da tribo.<br><br><font size='11'><b>Observações:</b></font><br>- Os administradores podem ser identificados pelo nome azul e os masters pelo nome vermelho.<br>- O abuso do comando !report pode causar consequências.]],
- [[<font size='18'><b><p align='center'>Créditos</p></b></font><br><bv><b>Squalleze</b><n> - criar a Tribo, adicionar sistema de administração e etc.<br><br><b>Anônimo</b> - criar o sistema de lista de mapas.<br><br><b>Joaovictors</b> - criar o sistema de chat para admins.<br><br><b>Brenower</b> - ajudar a criar o painel administrativo.<br><br><b>Fluffyshine</b> - ajudar na criação do sistema de desbanimento.]],
- }
- }
- }
- function newMsg(p, msg)
- if #msgs <= 20 then
- table.insert(msgs, #msgs+1, "\n<ROSE>["..p.."]: <N>"..msg)
- txtChat = txtChat.."\n<ROSE>["..p.."]: <N>"..msg
- else
- table.remove(msgs, 1)
- table.insert(msgs, #msgs+1, "\n<ROSE>["..p.."]: <N>"..msg)
- txtChat = ""
- for i,v in pairs(msgs) do
- txtChat = txtChat..msgs[i]
- end
- end
- eventTextAreaCallback(t, p, [[chat]])
- end
- function eventNewPlayer(p)
- players[p]={helpid=1}
- table.insert(players,p)
- tfm.exec.bindKeyboard(p,32,true)
- tfm.exec.bindKeyboard(p,77,true)
- system.bindMouse(p, true)
- ui.addTextArea(0,[[<BR><p align='center'><a href='event:help'><V><b>?</b></a></p>]],p,719,10,16,30,0x300,0x300,0.8, true);
- if admins[p] == true then
- eventGiveAdmin(p)
- elseif banneds[p] == true then
- ui.addTextArea(-1, [[Oi]], p, -1000, -1000, 2800, 2800, 768, 768, 1.1, true);
- elseif not admins[p] then
- table.insert(admins, #admins+1, p)
- table.insert(banneds, #banneds+1, p)
- end
- if not info[p] then
- data = {
- ["time"] = os.time();
- ["ads"] = true;
- ["adstime"] = os.time();
- ["count"] = 5;
- ["text"] = ads[math.random(#ads)];
- }
- info[p] = data
- elseif info[p] and Ads == true then
- info[p].text = ads[math.random(#ads)]
- info[p].count = 5
- info[p].adstime = os.time()
- end
- end
- for p in pairs(tfm.get.room.playerList) do
- eventNewPlayer(p)
- end
- function doTranslate(message)
- if translations[tfm.get.room.community] and translations[tfm.get.room.community][message] then
- return translations[tfm.get.room.community][message]
- else
- return translations.EN[message]
- end
- end
- function eventChatCommand(p,c)
- if (c == [[help]]) then
- ui.addTextArea(4,doTranslate([[help]])[players[p].helpid],p,250,50,300,300,0x300,0x300,0.8, true);
- ui.addTextArea(5,[[<p align='center'><a href='event:previous'><b>«</b></a></p>]],p,500,365,16,16,0x300,0x300,0.8, true);
- ui.addTextArea(6,[[<p align='center'><a href='event:next'><b>»</b></a></p>]],p,532,365,16,16,0x300,0x300,0.8, true);
- ui.addTextArea(7,[[<p align='center'><a href='event:close'><b>Close</b></a></p>]],p,442,365,42,16,0x300,0x300,0.8, true);
- ui.addTextArea(8,[[<p align='center'>]]..players[p].helpid..[[/]]..#doTranslate([[help]])..[[</p>]],p,250,365,42,16,0x300,0x300,0.8, true);
- elseif (c == [[mort]]) then
- tfm.exec.killPlayer(p)
- elseif (c:sub(0,6) == [[report]]) and not banneds[p] == true then
- for str,num in pairs(tfm.get.room.playerList) do
- if (str == c:sub(8)) then
- port=port+1
- table.insert(Reportados,port,[[<BV>]]..p..[[ <N>Reportou <R>]]..str..[[]])
- end
- end
- elseif c:sub(0,3) == [[msg]] and admins[p] == true then
- newMsg(p, c:sub(5))
- end
- end
- function eventTextAreaCallback(t,p,c)
- if c == [[help]]then
- eventChatCommand(p,c)
- elseif c == [[close]] then
- players[p].helpid = 1
- if t == 7 then
- for i = 4,8 do
- ui.removeTextArea(i,p)
- end
- elseif t == 24 then
- for i = 23,25 do
- ui.removeTextArea(i,p)
- end
- elseif t == 16 then
- for i = 14,17 do
- ui.removeTextArea(i,p)
- end
- elseif t == 73 then
- for i = 51, 76 do
- ui.removeTextArea(i,p)
- end
- elseif t == 9 then
- ui.removeTextArea(9,p)
- end
- elseif c == [[addmapa]] then
- ui.addPopup(21, 2, [[Code map:]], p, 300, 200, 200, true)
- elseif c == [[mudarlist]] then
- ui.addPopup(22, 2, [[Maplist available:]]..concatedLists(), p, 300, 100, 200, true)
- elseif c == [[addlist]] then
- ui.addPopup(23, 2, [[Name of list:]], p, 300, 200, 200, true)
- elseif c == [[fecharlistademapaes]] then
- for i = 18, 22 do
- ui.removeTextArea(i, p)
- end
- elseif c:sub(1,10) == [[deletemap_]] then
- ui.addPopup(24, 1, [[Do you really want to delete the map]]..c:sub(11)..[[ of maplist? o.Õ]], p, 300, 200, 200, true)
- temp1 = c:sub(11)
- elseif c == [[next]] and players[p].helpid<#doTranslate([[help]]) then
- players[p].helpid=(players[p].helpid)+1
- ui.updateTextArea(4,doTranslate([[help]])[players[p].helpid],p);
- ui.updateTextArea(8,[[<p align='center'>]]..players[p].helpid..[[/]]..#doTranslate([[help]])..[[</p>]],p);
- elseif c == [[previous]] and players[p].helpid>1 then
- players[p].helpid=players[p].helpid-1
- ui.updateTextArea(4,doTranslate([[help]])[players[p].helpid],p);
- ui.updateTextArea(8,[[<p align='center'>]]..players[p].helpid..[[/]]..#doTranslate([[help]])..[[</p>]],p);
- elseif c == [[panel]] then
- ui.addTextArea(9,[[<br><b>Functions:</b><br><a href='event:administer'>Administer</a><br><a href='event:mapconf'>Configure map</a><br><a href='event:playerconf'>Configure users</a><br><a href='event:maps'>Rotating</a><br><a href='event:skill'>Skills</a><br><b><a href='event:close'><p align='right'>Close</p></a></b>]], p, 481 ,10, 100, nil, 0x300, 0x300, 0.8, true);
- elseif c == [[maps]] then
- ui.addTextArea(9, [[<br><b>Categories:</b><br><a href='event:rotating'>Aleatory</a><br><a href='event:rotatingart'>Art</a><br><a href='event:rotatingbootcamp'>Bootcamp</a><br><a href='event:rotatingdefilante'>Defilante</a><br><a href='event:rotatingmecanic'>Mecanic</a><br><a href='event:rotatingracing'>Racing</a><br><a href='event:rotatingsurvivor'>Survivor</a><br><a href='event:rotatingvampire'>Vampire</a><br><a href='event:rotatingvanilla'>Vanilla</a><br><br><b>Maps:</b><br><a href='event:mapsconf'>Settings</a><br><b><a href='event:panel'><p align='right'>Return</p></a><b>]], p, 481, 10, 100, nil, 0x300, 0x300, 0.8, true);
- elseif c == [[skill]] then
- ui.addTextArea(9, [[<br><b>Skills:</b><br><a href='event:fly'>Fly</a><br><a href='event:jump'>Jump</a><br><a href='event:nameflashing'>Name Flashing</a><br><a href='event:speed'>Speed</a><br><a href='event:teleport'>Teleport</a><br><a href='event:telejump'>TeleJump</a><br><b><a href='event:panel'><p align='right'>Return</p></a><b>]], p, 481, 10, 100, nil, 0x300, 0x300, 0.8, true);
- elseif c == [[administer]] then
- if master[p] == true then
- ui.addTextArea(9, [[<br><b>Administer:</b><br><a href='event:ban'>Ban</a><br><a href='event:unban'>Unban</a><br><a href='event:addadmin'>Give Admin.</a><br><a href='event:removeadmin'>Remove Admin.</a><br><a href='event:alert'>Alert</a><br><a href='event:disconnect'>Disconnect Lua</a><br><b><a href='event:panel'><p align='right'>Return</p></a><b>]], p, 481, 10, 100, nil, 0x300, 0x300, 0.8, true);
- elseif not master[p] then
- ui.addTextArea(9, [[<br><b>Administer:</b><br><a href='event:ban'>Ban</a><br><a href='event:unban'>Unban</a><br><a href='event:alert'>Alert</a><br><b><a href='event:panel'><p align='right'>Return</p></a><b>]], p, 481, 10, 100, nil, 0x300, 0x300, 0.8, true);
- end
- elseif c == [[playerconf]] then
- ui.addTextArea(9, [[<br><b>Settings:</b><br><a href='event:cheese'>Cheese</a><br><a href='event:hole'>Hole</a><br><a href='event:kill'>Kill</a><br><a href='event:meep'>Meep</a><br><a href='event:respawn'>Respawn</a><br><a href='event:score'>Score</a><br><a href='event:sha'>Shaman</a><br><a href='event:vamp'>Vampire</a><br><a href='event:win'>Win</a><br><b><a href='event:panel'><p align='right'>Return</p></a><b>]], p, 481, 10, 100, nil, 0x300, 0x300, 0.8, true);
- elseif c == [[mapconf]] then
- ui.addTextArea(9, [[<br><b>Settings:</b><br><a href='event:mapname'>Map name</a><br><a href='event:neige'>Neige</a><br><a href='event:np'>Np</a><br><a href='event:shaname'>Shaman name</a><br><a href='event:time'>Time</a><br><b><a href='event:panel'><p align='right'>Return</p></a><b>]], p, 481, 10, 100, nil, 0x300, 0x300, 0.8, true);
- elseif c == [[mapsconf]] then
- ui.addTextArea(18, [[<N>Maps: <br>]]..concatedMaps(), p, 240, 50, 320, 255, 768, 768, 0.8, true)
- ui.addTextArea(19, [[<N><p align='center'><a href='event:addmapa'>New map</a>]], p, 240, 320, 100, 20, 768, 768, 0.8, true)
- ui.addTextArea(20, [[<N><p align='center'><a href='event:mudarlist'>Change list</a>]], p, 355, 320, 90, 20, 768, 768, 0.8, true)
- ui.addTextArea(21, [[<N><p align='center'><a href='event:addlist'>New maplist</a>]], p, 460, 320, 100, 20, 768, 768, 0.8, true)
- ui.addTextArea(22, [[<N><p align='center'><a href='event:fecharlistademapaes'>Close</a>]], p, 240, 355, 320, 20, 768, 768, 0.8, true)
- elseif c == [[logs]] then
- ui.addTextArea(9, [[<br><b>Logs:</b><br><a href='event:actions'>Actions</a><br><a href='event:log'>Reports</a><br><b><a href='event:close'><p align='right'>Close</p></a><b>]], p, 481, 10, 100, nil, 0x300, 0x300, 0.8, true);
- elseif c == [[log]] then
- eventReportsLog(0)
- elseif c == [[log2]] then
- eventReportsLog(20)
- elseif c == [[log3]] then
- eventReportsLog(40)
- elseif c == [[log4]] then
- eventReportsLog(60)
- elseif c == [[log5]] then
- eventReportsLog(80)
- elseif c == [[actions]] then
- ui.addTextArea(23, log, p, 50, 60, 700, 290, 768, 768, 0.8, true);
- ui.addTextArea(24, [[<p align='right'><a href='event:close'><b>Close</b></a></p>]], p, 700, 333, 50, 25, 768, 768, 0, true);
- ui.addTextArea(25, [[<p align='right'><a href='event:reset'><b>Clear</b></a></p>]], p, 700, 60, 50, 25, 768, 768, 0, true);
- elseif c == [[reset]] then
- if t == 75 then
- port =0
- for i = 1, 100 do
- table.insert(Reportados,i,[[-]])
- end
- for i = 51, 76 do
- ui.removeTextArea(i,p)
- end
- elseif t == 25 then
- log = [[<ROSE>[~Log] <N>Log reset by ]]..p..[[]]
- for i = 23, 25 do
- ui.removeTextArea(i,p)
- end
- end
- elseif c == [[kill]] then
- ui.addPopup(0,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[cheese]] then
- ui.addPopup(1,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[meep]] then
- ui.addPopup(2,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[sha]] then
- ui.addPopup(3,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[vamp]] then
- ui.addPopup(4,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[neige]] then
- tfm.exec.snow(30, 10)
- ui.addPopup(5,3,[[Neve ativado com Sucesso!]],p,300,160,200, true);
- elseif c == [[time]] then
- ui.addPopup(6,2,[[Digite o tempo]],p,300,160,200, true);
- elseif c == [[np]] then
- ui.addPopup(7,2,[[Digite o Mapa]],p,300,160,200, true);
- elseif c == [[hole]] then
- ui.addPopup(8,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[respawn]] then
- ui.addPopup(9,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[score]] then
- ui.addPopup(10,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[mapname]] then
- ui.addPopup(11,2,[[Digite o texto]],p,300,160,200, true);
- elseif c == [[shaname]] then
- ui.addPopup(12,2,[[Digite o texto]],p,300,160,200, true);
- elseif c == [[disconnect]] then
- ui.addPopup(13,0,[[Lua Disconectado com Sucesso!]],p,300,160,200, true);
- system.exit()
- elseif c == [[win]] then
- ui.addPopup(14,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[maxp]] then
- ui.addPopup(15,2,[[Digite a quantidade]],p,300,160,200, true);
- elseif c == [[alert]] then
- ui.addPopup(16,2,[[Digite o texto]],p,300,160,200, true);
- elseif c == [[closet]] then
- ui.removeTextArea(9,p);
- elseif c == [[closeur]] then
- ui.removeTextArea(94,p);
- elseif c == [[addadmin]] then
- ui.addPopup(17,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[removeadmin]] then
- ui.addPopup(18,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[ban]] then
- ui.addPopup(19,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[unban]] then
- ui.addPopup(20,2,[[Digite o usuário]],p,300,160,200, true);
- elseif c == [[teleport]] then
- if Teleport == false then
- Teleport = true
- TeleJump = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Teleport Ativado.]]
- elseif Teleport == true then
- Teleport = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Teleport Desativado.]]
- end
- elseif c == [[speed]] then
- if Speed == false then
- Speed = true
- Jump = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Speed Ativado.]]
- elseif Speed == true then
- Speed = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Speed Ativado.]]
- end
- elseif c == [[fly]] then
- if Fly == false then
- Fly = true
- Jump = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Fly Ativado.]]
- elseif Fly == true then
- Fly = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Fly Desativado.]]
- end
- elseif c == [[jump]] then
- if Jump == false then
- Jump = true
- Fly = false
- Speed = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Jump Ativado.]]
- elseif Jump == true then
- Jump = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Jump Desativado.]]
- end
- elseif c == [[telejump]] then
- if TeleJump == false then
- TeleJump = true
- Teleport = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ TeleJump Ativado.]]
- elseif TeleJump == true then
- TeleJump = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ TeleJump Desativado.]]
- end
- elseif c == [[nameflashing]] then
- if NameFlashing == false then
- NameFlashing = true
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Nome Piscando Ativado.]]
- elseif NameFlashing == true then
- NameFlashing = false
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ Nome Piscando Desativado.]]
- end
- elseif c == [[closechat]] then
- for i = 10,13 do
- ui.removeTextArea(i, p)
- end
- elseif c == [[resetchat]] then
- txtChat = "<VP><B>[~Bot]</B> <N>Bem vindo ao painel Admin!";
- ui.updateTextArea(10, txtChat, p)
- ui.updateTextArea(11, " X", p)
- ui.addTextArea(12, [[<p align='right'><a href='event:closechat'><b>Close</b></a></p>]], p, 700, 333, 50, 25, 768, 768, 0, true);
- ui.addTextArea(13, [[<p align='right'><a href='event:resetchat'><b>Clear</b></a></p>]], p, 700, 60, 50, 25, 768, 768, 0, true);
- elseif c == [[chat]] then
- ui.addTextArea(10, txtChat, p, 50, 60, 700, 290, 768, 768, 0.8, true)
- ui.addTextArea(12, [[<p align='right'><a href='event:closechat'><b>Close</b></a></p>]], p, 700, 333, 50, 25, 768, 768, 0, true);
- ui.addTextArea(13, [[<p align='right'><a href='event:resetchat'><b>Clear</b></a></p>]], p, 700, 60, 50, 25, 768, 768, 0, true);
- elseif c == [[Rotação]] then
- if Rotating == false then
- Rotating = true
- Vanilla = false
- Defilante = false
- Bootcamp = false
- Racing = false
- Art = false
- Mecanic = false
- Survivor = false
- Vampire = false
- nextRound()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(false)
- tfm.exec.disableAfkDeath(false)
- tfm.exec.disableAutoTimeLeft(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ activated rotation maps.]]
- elseif Rotating == true then
- Rotating = false
- tfm.exec.disableAutoNewGame(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ deactivated rotation maps.]]
- end
- elseif c == [[rotatingvanilla]] then
- if Vanilla == false then
- Rotating = false
- Vanilla = true
- Defilante = false
- Bootcamp = false
- Racing = false
- Art = false
- Mecanic = false
- Survivor = false
- Vampire = false
- nextRound()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(false)
- tfm.exec.disableAfkDeath(false)
- tfm.exec.disableAutoTimeLeft(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ activated rotation maps vanilla.]]
- elseif Vanilla == true then
- Vanilla = false
- tfm.exec.disableAutoNewGame(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ deactivated rotation maps vanilla.]]
- end
- elseif c == [[rotatingart]] then
- if Art == false then
- Rotating = false
- Vanilla = false
- Defilante = false
- Bootcamp = false
- Racing = false
- Art = true
- Mecanic = false
- Survivor = false
- Vampire = false
- nextRound()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(false)
- tfm.exec.disableAfkDeath(false)
- tfm.exec.disableAutoTimeLeft(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ activated rotation maps art.]]
- elseif Art == true then
- Art = false
- tfm.exec.disableAutoNewGame(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ deactivated rotation maps art.]]
- end
- elseif c == [[rotatingdefilante]] then
- if Defilante == false then
- Rotating = false
- Vanilla = false
- Defilante = true
- Bootcamp = false
- Racing = false
- Art = false
- Mecanic = false
- Survivor = false
- Vampire = false
- nextRound()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(false)
- tfm.exec.disableAfkDeath(false)
- tfm.exec.disableAutoTimeLeft(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ activated rotation maps defilante.]]
- elseif Defilante == true then
- Defilante = false
- tfm.exec.disableAutoNewGame(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ deactivated rotation maps defilante.]]
- end
- elseif c == [[rotatingbootcamp]] then
- if Bootcamp == false then
- Rotating = false
- Vanilla = false
- Defilante = false
- Bootcamp = true
- Racing = false
- Art = false
- Mecanic = false
- Survivor = false
- Vampire = false
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoTimeLeft(true)
- nextRound()
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ activated rotation maps bootcamp.]]
- elseif Bootcamp == true then
- Bootcamp = false
- tfm.exec.disableAutoShaman(false)
- tfm.exec.disableAutoNewGame(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ deactivated rotation maps bootcamp.]]
- end
- elseif c == [[rotatingracing]] then
- if Racing == false then
- Rotating = false
- Vanilla = false
- Defilante = false
- Bootcamp = false
- Racing = true
- Art = false
- Mecanic = false
- Survivor = false
- Vampire = false
- nextRound()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(false)
- tfm.exec.disableAfkDeath(false)
- tfm.exec.disableAutoTimeLeft(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ activated rotation maps racing.]]
- elseif Racing == true then
- Racing = false
- tfm.exec.disableAutoNewGame(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ deactivated rotation maps racing.]]
- end
- elseif c == [[rotatingmecanic]] then
- if Mecanic == false then
- Rotating = false
- Vanilla = false
- Defilante = false
- Bootcamp = false
- Racing = false
- Art = false
- Mecanic = true
- Survivor = false
- Vampire = false
- nextRound()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(false)
- tfm.exec.disableAfkDeath(false)
- tfm.exec.disableAutoTimeLeft(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ activated rotation maps mecanic.]]
- elseif Mecanic == true then
- Mecanic = false
- tfm.exec.disableAutoNewGame(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ deactivated rotation maps mecanic.]]
- end
- elseif c == [[rotatingsurvivor]] then
- if Survivor == false then
- Rotating = false
- Vanilla = false
- Defilante = false
- Bootcamp = false
- Racing = false
- Art = false
- Mecanic = false
- Survivor = true
- Vampire = false
- nextRound()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(false)
- tfm.exec.disableAfkDeath(false)
- tfm.exec.disableAutoTimeLeft(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ activated rotation maps survivor.]]
- elseif Survivor == true then
- Survivor = false
- tfm.exec.disableAutoNewGame(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ deactivated rotation maps survivor.]]
- end
- elseif c == [[rotatingvampire]] then
- if Vampire == false then
- Rotating = false
- Vanilla = false
- Defilante = false
- Bootcamp = false
- Racing = false
- Art = false
- Mecanic = false
- Survivor = false
- Vampire = true
- nextRound()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(false)
- tfm.exec.disableAfkDeath(false)
- tfm.exec.disableAutoTimeLeft(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ activated rotation maps vampire.]]
- elseif Vampire == true then
- Vampire = false
- tfm.exec.disableAutoNewGame(false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ deactivated rotation maps vampire.]]
- end
- end
- end
- function eventPopupAnswer(pi,p,a)
- for a in pairs(tfm.get.room.playerList) do
- if (l == a) then
- if pi == 0 then
- tfm.exec.killPlayer(l)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ killed ]]..l..[[.]]
- elseif pi == 1 then
- tfm.exec.giveCheese(l)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ gave cheese to ]]..l..[[.]]
- elseif pi == 2 then
- tfm.exec.giveMeep(l)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ gave to meep ]]..l..[[.]]
- elseif pi == 3 then
- tfm.exec.setShaman(l)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ gave shaman to ]]..l..[[.]]
- elseif pi == 4 then
- tfm.exec.setVampirePlayer(l)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ gave vampire to ]]..l..[[.]]
- elseif pi == 5 then
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ connected/disconnected the snow.]]
- elseif pi == 8 then
- tfm.exec.playerVictory(l)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ gave hole to ]]..l..[[.]]
- elseif pi == 9 then
- tfm.exec.respawnPlayer(l)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ resurrected ]]..l..[[.]]
- elseif pi == 10 then
- tfm.exec.setPlayerScore(l,0,false)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ restarted the score ]]..l..[[ for 0 points.]]
- elseif pi == 13 then
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ disconnect the Lua.]]
- elseif pi == 14 then
- tfm.exec.giveCheese(l)
- tfm.exec.playerVictory(l)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ gave cheese and hole to ]]..l..[[.]]
- elseif pi == 17 then
- eventGiveAdmin(l)
- log = log..[[<br><ROSE>[~Alert] <N>]]..p..[[ gave adminitrador to ]]..l..[[]]
- elseif pi == 18 then
- admins[l] = false
- tfm.exec.setNameColor(l, 0x0)
- for i in pairs({1,2,3,9}) do
- ui.removeTextArea(i,a)
- end
- log = log..[[<br><ROSE>[~Alert] <N>]]..p..[[ removed adminitrador of ]]..l..[[]]
- elseif pi == 19 then
- banneds[l] = true
- tfm.exec.killPlayer(l)
- log = log..[[<br><ROSE>[~Alert] <N>]]..p..[[ banned ]]..l..[[]]
- ui.addTextArea(452, [[Oi]], l, -1000, -1000, 2800, 2800, 768, 768, 1.1);
- elseif pi == 20 then
- banneds[l] = false
- log = log..[[<br><ROSE>[~Alert] <N>]]..p..[[ desbanned ]]..l..[[]]
- ui.removeTextArea(452, l);
- end
- end
- end
- if pi == 6 then
- tfm.exec.setGameTime(a)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ change the time to ]]..a..[[s.]]
- elseif pi == 7 then
- tfm.exec.newGame(a)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ changed the map to ]]..a..[[.]]
- elseif pi == 15 then
- tfm.exec.setRoomMaxPlayers(a)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ changed the limit of peoples to ]]..a..[[.]]
- elseif pi == 16 then
- ui.addPopup(16,0,[[<font color='#ED67EA'>[~]]..p..[[] </font>]]..a..[[]],nil,300,160,200);
- log = log..[[<br><ROSE>[~Alert] <N>]]..p..[[ sent the message: ]]..a..[[.]]
- elseif pi == 11 then
- tfm.exec.setUIMapName(a)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ changed the name of the map to ]]..a..[[.]]
- elseif pi == 12 then
- tfm.exec.setUIShamanName(a)
- log = log..[[<br><ROSE>[~Log] <N>]]..p..[[ changed the name of the shaman to ]]..a..[[.]]
- elseif pi == 21 then
- if a:find([[@]]) then
- if tonumber(a:sub(2)) ~= nil then
- table.insert(maps[currentMaplist], a)
- end
- else
- if tonumber(a) ~= nil then
- table.insert(maps[currentMaplist], a)
- end
- end
- ui.addTextArea(18, [[<N>Mapas: <br>]]..concatedMaps(), p, 240, 50, 320, 255, 768, 768, 0.8, true)
- elseif pi == 23 then
- if not a:find([[ ]]) then
- maps[a] = {[[0]]}
- ui.addTextArea(18, [[<N>Mapas: <br>]]..concatedMaps(), p, 240, 50, 320, 255, 768, 768, 0.8, true)
- end
- elseif pi == 22 then
- for list,_ in pairs(maps) do
- if list:lower() == a:lower() then
- currentMaplist = a
- break;
- end
- end
- ui.updateTextArea(18, [[<N>Mapas: <br>]]..concatedMaps(), p)
- elseif pi == 24 then
- if a:lower() == [[yes]] or a:lower() == [[sim]] then
- for i,map in pairs(maps[currentMaplist]) do
- if maps[currentMaplist][i] == temp1 then
- table.remove(maps[currentMaplist], i)
- ui.addTextArea(18, [[<N>Mapas: <br>]]..concatedMaps(), p, 240, 50, 320, 255, 768, 768, 0.8, true)
- break;
- end
- end
- end
- end
- end
- function eventKeyboard(p,k,d,x,y)
- if Fly == true then
- if k == 32 then
- tfm.exec.movePlayer(p,0,-1,true,0,-49,false)
- end
- elseif Jump == true then
- if k == 32 and tfm.get.room.playerList[p].isJumping == false and info[p].time < os.time()-2500 then
- info[p].time = os.time()
- tfm.exec.movePlayer(p, 0, 0, false, 0, -100, false)
- end
- elseif Speed == true then
- if k == 32 and tfm.get.room.playerList[p].isFacingRight == true and info[p].time < os.time()-1500 then
- info[p].time = os.time()
- tfm.exec.movePlayer(p,0,0,true,100,0,false)
- elseif k == 32 and tfm.get.room.playerList[p].isFacingRight == false and info[p].time < os.time()-1500 then
- info[p].time = os.time()
- tfm.exec.movePlayer(p,0,0,true,-100,0,false)
- end
- elseif k == 77 and admins[p] == true then
- eventTextAreaCallback(t,p,[[log]])
- end
- end
- function eventMouse(p, x, y)
- if Teleport == true then
- tfm.exec.movePlayer(p, x, y, false, vx, vy, false)
- elseif TeleJump == true then
- tfm.exec.movePlayer(p, x, y, false, 0, -100, false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment