Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adm="Blood#3565"
- tfm.exec.setNameColor("Blood#3565", 0xCA2411)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoShaman()
- tfm.exec.disableAutoNewGame()
- tfm.exec.disableAutoTimeLeft()
- tfm.exec.disablePhysicalConsumables()
- tfm.exec.disableAutoScore()
- tfm.exec.newGame(7589151)
- system.disableChatCommandDisplay("mapa", true)
- local gameRunning = false
- local teams = {
- [1] = {},
- [2] = {},
- }
- local points = {
- [1] = 0,
- [2] = 0,
- }
- local colors = {
- [1] = "e54427",
- [2] = "0a98db",
- }
- local maps = {7623375, 7618265, 7598750}
- function newMap()
- local mapcode = maps[math.random(#maps)]
- tfm.exec.newGame(mapcode)
- end
- function eventChatCommand(playerName, command)
- if command == "mapa" then
- newMap()
- end
- end
- ui.addTextArea(16, "<p align='center'><V><a href='event:iniciarJuego'>Iniciar", ADMINISTRADOR, 375, 203, 40, 18, 0x324650, 0x324650, 1, true)
- function eventTextAreaCallback(id, player, callback)
- if callback == 'iniciarJuego' then
- gameRunning = true
- for i = 1, 20 do
- ui.removeTextArea(i)
- end
- for i = 26, 60 do
- ui.removeTextArea(i)
- end
- newMap()
- tfm.exec.setGameTime(1080)
- contarJugadores()
- end
- end
- function eventPlayerDied (playerName)
- tfm.exec.respawnPlayer(playerName)
- tfm.exec.setNameColor("Blood#3565", 0xCA2411)
- end
- jugadoresEnSala = 0
- function jugadores()
- for name in pairs(tfm.get.room.playerList) do
- jugadoresEnSala = jugadoresEnSala +1
- end
- function eventPlayerLeft()
- jugadoresEnSala = jugadoresEnSala -1
- end
- end
- jugadores()
- function establecerEquipos()
- for k in pairs(tfm.get.room.playerList) do
- if jugadoresEnSala % 2 == 0 then
- else
- end
- end
- end
- establecerEquipos()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement