Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ADMIN = "Fulano"
- function eventChatCommand(jogador, comando)
- if comando == "np" and jogador == ADMIN then
- tfm.exec.newGame()
- end
- end
- function eventTextAreaCallback(id, jogador, callback)
- local callbackName, callbackData = table.unpack(string.split(callback, "#"))
- if type(_G["onCallback_"..callbackName]) == "function" then
- _G["onCallback_"..callbackName](id, jogador, table.unpack(string.split(callbackData or "", ",")))
- end
- end
- function string.split(rawString, separator)
- splittedString = {}
- if rawString and separator then
- for str in string.gmatch(rawString, "[^"..separator.."]+") do
- table.insert(splittedString, str)
- end
- end
- return splittedString
- end
- function onCallback_showHelp(id, player, page)
- ui.updateTextArea(id, "Como funciona o gladiator: Um jogador seleciona um outro jogador e se ele ganhar esse duelo ele permanece no jogo, e escolhe outro adversário acaso perca o duelo ele será automaticamente retirado da sala com isso"..page, player)
- end
- ui.addTextArea(1,'<a href="event:showHelp#1">Modo de jogo do gladiator</a>', nil, 10, 20, 200, 100)
- tfm.exec.disablePhysicalConsumables()
- mapas = {"@7401972"}
- tfm.exec.disableAutoShaman() tfm.exec.newGame(mapas[(#mapas)])
- tfm.exec.disableAutoNewGame()
- tfm.exec.disableAutoTimeLeft()
- tfm.exec.disableAfkDeath(true)
- map = {w=800,h=400}
- function checkPlayers()
- for name, i in pairs(tfm.get.room.playerList) do
- if (i.x > map.w) or (i.x < 10) or (i.y > map.h) or (i.y < 20) then
- tfm.exec.killPlayer(name)
- end
- end
- end
- admin = "Fulano"
- function eventChatCommand(jogador, comando)
- if comando:sub(1,2) == "tp" and jogador == admin then
- selecionado = comando:sub(4)
- end
- end
- function eventMouse(jogador, x, y)
- tfm.exec.movePlayer(selecionado, x, y)
- end
- system.bindMouse(admin, true)
- function eventPlayerDied(name)
- tfm.exec.respawnPlayer(name)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement