Академический Документы
Профессиональный Документы
Культура Документы
function main()
system.disableChatCommandDisplay("tp", true)
system.disableChatCommandDisplay("notp", true)
system.disableChatCommandDisplay("puntos", true)
system.disableChatCommandDisplay("tamaño", true)
system.disableChatCommandDisplay("transformacion", true)
system.disableChatCommandDisplay(nil)
for _,k in pairs({"AfkDeath", "DebugCommand", "AutoNewGame",
"AutoShaman","AutoScore","AutoTimeLeft","PhysicalConsumables"}) do
tfm.exec["disable"..k]() end
tfm.exec.newGame('<C><P /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="800" o="0"
X="400" H="1330" Y="1030" T="12" /><S P="0,0,0,0,0,0,0,0" L="2400" o="0" X="2000"
H="3000" Y="200" T="12" /><S P="0,0,0,0,0,0,0,0" L="3000" o="0" X="-1500" H="3000"
Y="200" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="800" o="0" X="400" H="1320" Y="-640"
T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" X="0" H="10" Y="0" T="0"
i="5,0,17e36e9a6ec.png"/></S><D /><O /></Z></C>') tfm.exec.setGameTime(99999)
SetMapName() checkColor() ShowStartBoard()
for _,admins in pairs(admin) do ui.addTextArea(99999, "<a
href='event:ce'>Command", admins, 20, -25, 0, 10, 0x000000, 0x15D5A3) end
for name in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end
end
function establecerEquipos()
teams.Team1 = {}
teams.Team2 = {}
teams.Team3 = {}
teams.Team4 = {}
local equipo = 1
local jugadoresTotal = {}
for name, p in pairs(tfm.get.room.playerList) do
table.insert(jugadoresTotal, name)
end
for i = 1, #jugadoresTotal do
numJugador = math.random(#jugadoresTotal)
agregarJugador = jugadoresTotal[numJugador]
table.remove(jugadoresTotal, numJugador)
if fourteams then
if equipo == 1 then
table.insert(teams.Team1, agregarJugador)
equipo = 2
elseif equipo == 2 then
table.insert(teams.Team2, agregarJugador)
equipo = 3
elseif equipo == 3 then
table.insert(teams.Team3, agregarJugador)
equipo = 4
elseif equipo == 4 then
table.insert(teams.Team4, agregarJugador)
equipo = 1
end
else
if equipo == 1 then
table.insert(teams.Team1, agregarJugador)
equipo = 2
elseif equipo == 2 then
table.insert(teams.Team2, agregarJugador)
equipo = 1
end
end
end
end
function eventNewGame()
ui.removeTextArea (40, name)
ui.removeTextArea(41, name)
ui.removeTextArea(50, name)
for k in pairs(mice_info) do mice_info[k].adv = 0 end
if gameStarted then
if antiLevevn then
antiLevevn = false
elseif antiLeverc then
antiLeverc = false
elseif np then
np = false
end
setTimeMode()
SetMapName()
for n,p in pairs(tfm.get.room.playerList) do
if not PlayerInTeam(n) then
tfm.exec.killPlayer(n)
end
end
for _,k in pairs(ban) do table.clear(teams.Team1,k)
table.clear(teams.Team2,k) table.clear(teams.Team3,k) table.clear(teams.Team4,k)
end
SetPlayerNameColor()
first = false
if mod == "Burlas" then
tfm.exec.disableMinimalistMode(minamalist)
tfm.exec.disableAfkDeath(false)
elseif mod =="Racing" then
tfm.exec.disableMinimalistMode(minimalist)
tfm.exec.disableAfkDeath(false)
elseif mod =="RCP1" then
tfm.exec.disableMinimalistMode(minimalist)
tfm.exec.disableAfkDeath(false)
elseif mod =="revers" then
tfm.exec.disableMinimalistMode(minimalist)
tfm.exec.disableAfkDeath(false)
elseif mod =="Def" then
tfm.exec.disableMinimalistMode(minimalist)
tfm.exec.disableAfkDeath(false)
elseif mod =="Mix" then
tfm.exec.disableMinimalistMode(minimalist)
tfm.exec.disableAfkDeath(false)
elseif mod =="end" then
tfm.exec.disableMinimalistMode(false)
tfm.exec.disableAfkDeath(true)
end
end
end
function eventNewPlayer(plr, y)
local info = {}
for key in next, macro_keys do
info[key] = {0, os_time() + macro_time, false, false}
system.bindKeyboard(plr, key, true, true)
end
macro_info[plr] = info
mice_info[plr] = {adv = 0}
if gameStarted then
if PlayerInTeam(plr) then tfm.exec.killPlayer(plr) return end
if autoJoin then
if fourteams then
if #teams.Team1 < #teams.Team2 and #teams.Team1 <
#teams.Team3 and #teams.Team1 < #teams.Team4 or #teams.Team1 == #teams.Team2 and
#teams.Team1 == #teams.Team3 and #teams.Team1 == #teams.Team4 or #teams.Team2 >
#teams.Team1 and #teams.Team2 > #teams.Team3 and #teams.Team2 > #teams.Team4 and
#teams.Team1 == #teams.Team3 and #teams.Team1 == #teams.Team4 and #teams.Team3 ==
#teams.Team4 or #teams.Team2 > #teams.Team1 and #teams.Team2 > #teams.Team3 and
#teams.Team3 > #teams.Team1 and #teams.Team2 > #teams.Team4 and #teams.Team1 ==
#teams.Team4 then table.insert(teams.Team1,plr)
elseif #teams.Team2 < #teams.Team1 and #teams.Team2 <
#teams.Team3 and #teams.Team2 < #teams.Team4 or #teams.Team3 > #teams.Team1 and
#teams.Team3 > #teams.Team2 and #teams.Team4 > #teams.Team1 and #teams.Team4 >
#teams.Team2 and #teams.Team1 == #teams.Team2 or #teams.Team1 > #teams.Team2 and
#teams.Team1 > #teams.Team4 and #teams.Team3 > #teams.Team2 and #teams.Team3 >
#teams.Team4 and #teams.Team2 == #teams.Team4 or #teams.Team1 > #teams.Team2 and
#teams.Team1 > #teams.Team3 and #teams.Team1 > #teams.Team4 and #teams.Team2 ==
#teams.Team3 and #teams.Team2 == #teams.Team4 and #teams.Team3 == #teams.Team4 then
table.insert(teams.Team2,plr)
elseif #teams.Team3 < #teams.Team1 and #teams.Team3 <
#teams.Team2 and #teams.Team3 < #teams.Team4 or #teams.Team4 > #teams.Team1 and
#teams.Team4 > #teams.Team2 and #teams.Team4 > #teams.Team3 and #teams.Team1 ==
#teams.Team2 and #teams.Team1 == #teams.Team3 and #teams.Team2 == #teams.Team3 or
#teams.Team1 > #teams.Team2 and #teams.Team1 > #teams.Team3 and #teams.Team4 >
#teams.Team2 and #teams.Team4 > #teams.Team3 and #teams.Team2 == #teams.Team3 or
#teams.Team2 > #teams.Team1 and #teams.Team2 > #teams.Team3 and #teams.Team4 >
#teams.Team1 and #teams.Team4 > #teams.Team3 and #teams.Team1 == #teams.Team3 then
table.insert(teams.Team3,plr)
elseif #teams.Team4 < #teams.Team1 and #teams.Team4 <
#teams.Team2 and #teams.Team4 < #teams.Team3 or #teams.Team1 == #teams.Team2 and
#teams.Team1 == #teams.Team3 and #teams.Team1 == #teams.Team4 and #teams.Team2 ==
#teams.Team3 and #teams.Team2 == #teams.Team4 and #teams.Team3 == #teams.Team4 or
#teams.Team3 > #teams.Team1 and #teams.Team3 > #teams.Team2 and #teams.Team3 >
#teams.Team4 and #teams.Team1 == #teams.Team2 and #teams.Team1 == #teams.Team4 and
#teams.Team2 == #teams.Team4 or #teams.Team1 > #teams.Team3 and #teams.Team1 >
#teams.Team4 and #teams.Team2 > #teams.Team3 and #teams.Team2 > #teams.Team4 and
#teams.Team3 == #teams.Team4 then table.insert(teams.Team4,plr)
else table.insert(teams.Team4,plr)
end
else
if #teams.Team1 == #teams.Team2 then
table.insert(teams.Team1,plr)
elseif #teams.Team1 > #teams.Team2 then
table.insert(teams.Team2,plr)
end
end
end
else tfm.exec.respawnPlayer(plr)
end
for _,k in pairs(ban) do ui.addTextArea(666, "<p align='center'><font
size='100'><r>\nBAN</r></font>", k, 0, 0, 800, 400, 0x15D5A3, 0x15D5A3, 16, true)
end
end
function eventPlayerDied(plr)
if gameStarted then
local plrCount = 0
for n,p in pairs(tfm.get.room.playerList) do
if not p.isDead then
plrCount = plrCount + 1
end
end
if plrCount <= 0 then
newMap()
end
end
end
ui.addTextArea(46, "<p align='center'><font color='#FFFFFF' size='15'><b><a
href='event:'><font color='#10FF67' size='12' >i</a>", nil, 1, -25, 0, 10,
0x000000, 0xFFFFFF, 1, false)
first = true
p.T1 = p.T1 + 1
tfm.exec.setPlayerScore(plr, 1,true)
tfm.exec.setGameTime(3)
gt.m = 0
gt.s = 4
tfm.exec.setGameTime(5)
SetMapName()
if tonumber(p.T1) >= tonumber(win) then
tfm.exec.newGame('<C><P /><Z><S><S
P="E,6,F.F,0.0" L="800" o="0" X="400" H="1330" Y="1030" T="12" /><S P="E,6,F.F,0.0"
L="2400" o="0" X="2000" H="3000" Y="200" T="12" /><S P="E,6,F.F,0.0" L="3000" o="0"
X="-1500" H="3000" Y="200" T="12" /><S P="E,6,F.F,0.0" L="800" o="0" X="400"
H="1320" Y="-640" T="12" /><S P="E,6,F.F,0.0" L="10" X="0" H="10" Y="0" T="0"
i="5,0,17e36e9a6ec.png"/></S><D /><O /></Z></C>')
for i,n in pairs(teams.Team2) do
tfm.exec.killPlayer(n) end
for i,b in pairs(teams.Team3) do
tfm.exec.killPlayer(b) end
for i,m in pairs(teams.Team4) do
tfm.exec.killPlayer(m) end
ui.addTextArea(16, "<font size='50'
face='IMPACT'><p align='center'><i><font color='#"..t1C.."'> "..t1N.."</font><font
color='#ffffff'> won the game!", nil, 140, 140, 800, 60, 0x000000, 0x5eff6e, 0,
true)
ui.addTextArea(17, "<font size='30'
face='IMPACT'><p align='center'><i><font color='#"..t1C.."'> "..plr.."</font><font
color='#ffffff'> made the last point!", nil, 140, 190, 800, 60, 0xffffff, 0x5eff6e,
0, true)
ui.addTextArea(18, "<font size='30'
face='IMPACT'><p align='center'><i></font><font color='#"..t2C.."'> "..
(timeElapsedSinceRespawn/100).." S", nil, 140, 240, 800, 60, 0xffffff, 0x5eff6e, 0,
true)
mod = "end"
end
end
if table.contain(teams.Team2,plr) then
first = true
p.T2 = p.T2 + 1
tfm.exec.setPlayerScore(plr, 1,true)
gt.m = 0
gt.s = 4
tfm.exec.setGameTime(5)
SetMapName()
if tonumber(p.T2) >= tonumber(win) then
tfm.exec.newGame('<C><P /><Z><S><S
P="0,0,0.3,0.2,0,0,0,0" L="800" o="0" X="400" H="1330" Y="1030" T="12" /><S
P="0,0,0,0,0,0,0,0" L="2400" o="0" X="2000" H="3000" Y="200" T="12" /><S
P="0,0,0,0,0,0,0,0" L="3000" o="0" X="-1500" H="3000" Y="200" T="12" /><S
P="0,0,0.3,0.2,0,0,0,0" L="800" o="0" X="400" H="1320" Y="-640" T="12" /><S
P="0,0,0.3,0.2,0,0,0,0" L="10" X="0" H="10" Y="0" T="0"
i="5,0,17e36e9a6ec.png"/></S><D /><O /></Z></C>')
for i,v in pairs(teams.Team1) do
tfm.exec.killPlayer(v) end
for i,b in pairs(teams.Team3) do
tfm.exec.killPlayer(b) end
for i,m in pairs(teams.Team4) do
tfm.exec.killPlayer(m) end
ui.addTextArea(16, "<font size='50'
face='IMPACT'><p align='center'><i><font color='#"..t2C.."'> "..t2N.."</font><font
color='#ffffff'> won the game!", nil, 140, 140, 800, 60, 0x000000, 0x5eff6e, 0,
true)
ui.addTextArea(17, "<font size='30'
face='IMPACT'><p align='center'><i><font color='#"..t2C.."'> "..plr.."</font><font
color='#ffffff'> made the last point!", nil, 140, 190, 800, 60, 0xffffff, 0x5eff6e,
0, true)
ui.addTextArea(18, "<font size='30'
face='IMPACT'><p align='center'><i></font><font color='#"..t2C.."'> "..
(timeElapsedSinceRespawn/100).." S", nil, 140, 240, 800, 60, 0xffffff, 0x5eff6e, 0,
true)
mod = "end"
end
end
if table.contain(teams.Team3,plr) then
first = true
ui.addTextArea(40, "", nil, 0, 0, 800, 400, 0x000001, 0xFFFFFF, 0.2, true)
ui.addTextArea(41, "<p align='center'><font color='#FFFFFF' size='60'
face='IMPACT'>➝ "..plr.." ←", nil, 7, 100, 800, 100, 0x324650, 0x000000, 0, true)
p.T3 = p.T3 + 1
tfm.exec.setPlayerScore(plr, 1,true)
gt.m = 0
gt.s = 4
tfm.exec.setGameTime(5)
SetMapName()
if tonumber(p.T3) >= tonumber(win) then
tfm.exec.newGame('<C><P /><Z><S><S
P="0,0,0.3,0.2,0,0,0,0" L="800" o="0" X="400" H="1330" Y="1030" T="12" /><S
P="0,0,0,0,0,0,0,0" L="2400" o="0" X="2000" H="3000" Y="200" T="12" /><S
P="0,0,0,0,0,0,0,0" L="3000" o="0" X="-1500" H="3000" Y="200" T="12" /><S
P="0,0,0.3,0.2,0,0,0,0" L="800" o="0" X="400" H="1320" Y="-640" T="12" /><S
P="0,0,0.3,0.2,0,0,0,0" L="10" X="0" H="10" Y="0" T="0"
i="5,0,17e36e9a6ec.png/></S><D /><O /></Z></C>')
for i,v in pairs(teams.Team1) do
tfm.exec.killPlayer(v) end
for i,n in pairs(teams.Team2) do
tfm.exec.killPlayer(n) end
for i,m in pairs(teams.Team4) do
tfm.exec.killPlayer(m) end
ui.addTextArea(16, "<font size='35'
face='IMPACT'><p align='center'><i><font color='#"..t3C.."'> "..t3N.."</font><font
color='#ffffff'> won the game!", nil, 140, 140, 800, 60, 0x000000, 0x5eff6e, 0,
true)
ui.addTextArea(17, "<font size='15'
face='IMPACT'><p align='center'><i><font color='#"..t3C.."'> "..plr.."</font><font
color='#ffffff'> made the last point!", nil, 140, 190, 800, 60, 0xffffff, 0x5eff6e,
0, true)
ui.addTextArea(18, "<font size='30'
face='IMPACT'><p align='center'><i></font><font color='#"..t2C.."'> "..
(timeElapsedSinceRespawn/100).." S", nil, 140, 240, 800, 60, 0xffffff, 0x5eff6e, 0,
true)
mod = "end"
end
end
if table.contain(teams.Team4,plr) then
ui.addTextArea(40, "", nil, 0, 0, 800, 400, 0x000001, 0xFFFFFF, 0.2, true)
ui.addTextArea(41, "<p align='center'><font color='#FFFFFF' size='60'
face='IMPACT'>➝ "..plr.." ←", nil, 7, 100, 800, 100, 0x324650, 0x000000, 0, true)
first = true
p.T4 = p.T4 + 1
tfm.exec.setPlayerScore(plr, 1,true)
gt.m = 0
gt.s = 4
tfm.exec.setGameTime(5)
SetMapName()
if tonumber(p.T4) >= tonumber(win) then
tfm.exec.newGame('<C><P /><Z><S><S
P="0,0,0.3,0.2,0,0,0,0" L="800" o="0" X="400" H="1330" Y="1030" T="12" /><S
P="0,0,0,0,0,0,0,0" L="2400" o="0" X="2000" H="3000" Y="200" T="12" /><S
P="0,0,0,0,0,0,0,0" L="3000" o="0" X="-1500" H="3000" Y="200" T="12" /><S
P="0,0,0.3,0.2,0,0,0,0" L="800" o="0" X="400" H="1320" Y="-640" T="12" /><S
P="0,0,0.3,0.2,0,0,0,0" L="10" X="0" H="10" Y="0" T="0"
i="5,0,17e36e9a6ec.png"/></S><D /><O /></Z></C>')
for i,v in pairs(teams.Team1) do
tfm.exec.killPlayer(v) end
for i,n in pairs(teams.Team2) do
tfm.exec.killPlayer(n) end
for i,b in pairs(teams.Team3) do
tfm.exec.killPlayer(b) end
ui.addTextArea(16, "<font size='50'
face='IMPACT'><i><font color='#"..t4C.."'> "..t4N.."</font><font color='#ffffff'>
won the game!", nil, 0, 140, 800, 60, 0x000000, 0x5eff6e, 0, true)
ui.addTextArea(17, "<font size='30'
face='IMPACT'><i><font color='#"..t4C.."'> "..plr.."</font><font color='#ffffff'>
made the last point!", nil, 0, 190, 800, 60, 0xffffff, 0x5eff6e, 0, true)
ui.addTextArea(18, "<font size='30'
face='IMPACT'><p align='center'><i></font><font color='#"..t2C.."'> "..
(timeElapsedSinceRespawn/100).." S", nil, 140, 240, 800, 60, 0xffffff, 0x5eff6e, 0,
true)
mod = "end"
end
end
end
end
end
end
elseif id == 28 then
if callback == "WJ" then
mod = "WJ"
ShowStartBoard()
end
elseif id == 18 then
if callback == "RCP1" then
mod = "RCP1"
ShowStartBoard()
end
elseif id == 30 then
if callback == "Bootcamp" then
mod = "Bootcamp"
ShowStartBoard()
end
elseif id == 29 then
if callback == "rcold" then
mod = "rcold"
ShowStartBoard()
end
elseif id == 31 then
if callback == "Rp7" then
mod = "Rp7"
ShowStartBoard()
end
elseif id == 20 then
if callback == "Def" then
mod = "Def"
ShowStartBoard()
end
elseif id == 8 then
if callback == "Burlas" then
mod = "Burlas"
ShowStartBoard()
end
elseif id == 23 then
if callback == "revers" then
mod = "revers"
ShowStartBoard()
end
elseif id == 21 then
if callback == "mix" then
mod = "MIX"
ShowStartBoard()
end
elseif id == 48 then
ui.removeTextArea(48, player)
ui.removeTextArea(47, player)
elseif id == 10 then
if callback == "start" then if #teams.Team1 > 0 or #teams.Team2 >
0 or #teams.Team3 > 0 or #teams.Team3 > 0 then
math.randomseed(os.time())
for i=0, 33,1 do
ui.removeTextArea(i)
end
gameStarted = true
p.T1 = 0
p.T2 = 0
p.T3 = 0
p.T4 = 0
resetScore()
newMap() else print("<R>[ERROR]: You can't start the game,
all the teams are empty!</R>") end
end
elseif id == 11 then
if callback == "dec" then
if tonumber(win) > 1 then
win = win - 1
ShowStartBoard()
end
elseif callback == "inc" then
if tonumber(win) < 999 then
win = win + 1
ShowStartBoard()
end
end
elseif id == 12 then
if callback == "OnAndOff" then
autoJoin = not autoJoin
ShowStartBoard()
end
elseif id == 15 then
if callback == "Misturar" then
establecerEquipos()
ShowStartBoard()
end
elseif id == 19 then
if callback == "nteams" then
fourteams = not fourteams
ShowStartBoard()
end
elseif id == 1002 then
ui.removeTextArea(1001, player)
ui.removeTextArea(1002, player)
elseif id == 675 then for i=667,675 do ui.removeTextArea(i, player) end
elseif id == 99999 then ui.addTextArea(1001, "<p
align='center'>Commands:</p>\n\n!team1/2/3/4 [name] [name] <R>or</R> !t1/2/3/4
[name] [name] - asignar jugadores al equipo.\n!add team1/2/3/4 [name] [name]
<R>or</R> !a t1/2/3/4 [name] [name] - añadir jugadores al equipo.\n!remove [name]
[name] <R>or</R> !r [name] [name] - eliminar jugadores de un equipo.\n!sp
team1/2/3/4 [p] <R>or</R> !sp t1/2/3/4 [p] - cambiar puntos de un equipo.\n!name
t1/2/3/4 <R>or</R> !n t1/2/3/4 - establecer un nombre para el equipo seleccionado.\
n!aj on <R>or</R> !aj off - estado de autojoin.\n!minimalist on <R>or</R> !
minamlist off - estado del modo minimalista. \n!skip <R>or</R> !s - cambiar de
mapa.\n!antirc <R>or</R> !antiBurlas - el próximo mapa será antileve rc = racing or
Burlas = Burlas.\n!repeat <R>or</R> !rt - repetir el mapa actual.\n!np [map] - sólo
poner el número de mapa, no . Ejemplo: !np 0\n!macro on/off - activar/desactivar
AntiMacro\n!ban [name] [reason] - banear el jugador seleccionado (mostrar caja
negra al jugador).\n!unban [name] - desbanear jugador seleccionado.\n!banlist -
mostrar una lista de jugadores baneados.\n!admin [name] - Elegir jugador a la lista
de admin.\n!noadmin [name] - remover admin.\n!vote on/result/end - iniciar
votacion, mostrar resultado y finalizar votacion.\n!finish script\n\n", player,
125, 50, 550, 300, 0x324650, 0x212F36, 16, true)
ui.addTextArea(1002, "<p
align='center'><a href='event:cerrar'>CLOSE</p>", player, 350, 345, 95, 18,
0x324650, 0x212F36, 16, true)
end
end
if id == 35 then
if callback == "mrc" then
vote.racing = vote.racing + 1
ui.removeTextArea(35, player)
elseif callback == "mbr" then
vote.burlas = vote.burlas + 1
ui.removeTextArea(35, player)
elseif callback == "mbc" then
vote.bootcamp = vote.bootcamp + 1
ui.removeTextArea(35, player)
elseif callback == "mRCP1" then
vote.RCP1 = vote.RCP1 + 1
ui.removeTextArea(35, player)
elseif callback == "mvn" then
vote.vanilla = vote.vanilla + 1
ui.removeTextArea(35, player)
end
end
end
function eventChatCommand(name, command)
if if_admin(name) then
local arg={}
for argument in command:gmatch("[^%s]+") do
table.insert(arg,argument)
end
if arg[1] == "team1" and arg[2] ~= nil or arg[1] == "t1" and arg[2] ~=
nil then
teams.Team1 = {}
for i,v in pairs(arg) do
if i > 1 then
if PlayerCheck(v) then
if TeamFix(v) == "team2" or TeamFix(v) ==
"team3" or TeamFix(v) == "team4" then
table.clear(teams.Team2,v)
table.clear(teams.Team3,v) table.clear(teams.Team4,v) table.insert(teams.Team1,v)
if not gameStarted then ShowStartBoard()
end
else
table.insert(teams.Team1,v)
if not gameStarted then ShowStartBoard()
end
end
end
end
end
elseif arg[1] == "team2" and arg[2] ~= nil or arg[1] == "t2" and arg[2]
~= nil then
teams.Team2 = {}
for i,v in pairs(arg) do
if i > 1 then
if PlayerCheck(v) then
if TeamFix(v) == "team1" or TeamFix(v) ==
"team3" or TeamFix(v) == "team4" then
table.clear(teams.Team1,v)
table.clear(teams.Team3,v) table.clear(teams.Team4,v) table.insert(teams.Team2,v)
if not gameStarted then ShowStartBoard()
end
else
table.insert(teams.Team2,v)
if not gameStarted then ShowStartBoard()
end
end
end
end
end
elseif arg[1] == "team3" and arg[2] ~= nil and fourteams or arg[1] ==
"t3" and arg[2] ~= nil and fourteams then
teams.Team3 = {}
for i,v in pairs(arg) do
if i > 1 then
if PlayerCheck(v) then
if TeamFix(v) == "team1" or TeamFix(v) ==
"team2" or TeamFix(v) == "team3" then
table.clear(teams.Team1,v)
table.clear(teams.Team2,v) table.clear(teams.Team4,v) table.insert(teams.Team3,v)
if not gameStarted then ShowStartBoard()
end
else
table.insert(teams.Team3,v)
if not gameStarted then ShowStartBoard()
end
end
end
end
end
elseif arg[1] == "team4" and arg[2] ~= nil and fourteams or arg[1] ==
"t4" and arg[2] ~= nil and fourteams then
teams.Team4 = {}
for i,v in pairs(arg) do
if i > 1 then
if PlayerCheck(v) then
if TeamFix(v) == "team1" or TeamFix(v) ==
"team2" or TeamFix(v) == "team3" then
table.clear(teams.Team1,v)
table.clear(teams.Team2,v) table.clear(teams.Team3,v) table.insert(teams.Team4,v)
if not gameStarted then ShowStartBoard()
end
else
table.insert(teams.Team4,v)
if not gameStarted then ShowStartBoard()
end
end
end
end
end
elseif arg[1] == "add" and arg[2] == "team1" and arg[3] ~= nil or
arg[1] == "a" and arg[2] == "t1" and arg[3] ~= nil then
for i,v in pairs(arg) do
if i > 1 then
if PlayerCheck(v) then
if TeamFix(v) == "team2" or TeamFix(v) ==
"team3" or TeamFix(v) == "team4" then
table.clear(teams.Team2,v)
table.clear(teams.Team3,v) table.clear(teams.Team4,v) table.insert(teams.Team1,v)
if not gameStarted then ShowStartBoard()
end
else
table.insert(teams.Team1,v)
if not gameStarted then ShowStartBoard()
end
end
end
end
end
elseif arg[1] == "add" and arg[2] == "team2" and arg[3] ~= nil or
arg[1] == "a" and arg[2] == "t2" and arg[3] ~= nil then
for i,v in pairs(arg) do
if i > 1 then
if PlayerCheck(v) then
if TeamFix(v) == "team1" or TeamFix(v) ==
"team3" or TeamFix(v) == "team4" then
table.clear(teams.Team1,v)
table.clear(teams.Team3,v) table.clear(teams.Team4,v) table.insert(teams.Team2,v)
if not gameStarted then ShowStartBoard()
end
else
table.insert(teams.Team2,v)
if not gameStarted then ShowStartBoard()
end
end
end
end
end
elseif arg[1] == "add" and arg[2] == "team3" and arg[3] ~= nil and
fourteams or arg[1] == "a" and arg[2] == "t3" and arg[3] ~= nil and fourteams then
for i,v in pairs(arg) do
if i > 1 then
if PlayerCheck(v) then
if TeamFix(v) == "team1" or TeamFix(v) ==
"team2" or TeamFix(v) == "team4" then
table.clear(teams.Team1,v)
table.clear(teams.Team2,v) table.clear(teams.Team4,v) table.insert(teams.Team3,v)
if not gameStarted then ShowStartBoard()
end
else
table.insert(teams.Team3,v)
if not gameStarted then ShowStartBoard()
end
end
end
end
end
elseif arg[1] == "add" and arg[2] == "team4" and arg[3] ~= nil and
fourteams or arg[1] == "a" and arg[2] == "t4" and arg[3] ~= nil and fourteams then
for i,v in pairs(arg) do
if i > 1 then
if PlayerCheck(v) then
if TeamFix(v) == "team1" or TeamFix(v) ==
"team2" or TeamFix(v) == "team3" then
table.clear(teams.Team1,v)
table.clear(teams.Team2,v) table.clear(teams.Team3,v) table.insert(teams.Team4,v)
if not gameStarted then ShowStartBoard()
end
else
table.insert(teams.Team4,v)
if not gameStarted then ShowStartBoard()
end
end
end
end
end
elseif arg[1] == "remove" and arg[2] ~= nil or arg[1] == "r" and
arg[2] ~= nil then
if TeamFix(arg[2]) == "team1" or TeamFix(arg[2]) == "team2" or
TeamFix(arg[2]) == "team3" or TeamFix(arg[2]) == "team4"then
if not gameStarted then table.clear(teams.Team1,arg[2])
table.clear(teams.Team2,arg[2]) table.clear(teams.Team3,arg[2])
table.clear(teams.Team4,arg[2])
ShowStartBoard()
else
table.clear(teams.Team1,arg[2])
table.clear(teams.Team2,arg[2]) table.clear(teams.Team3,arg[2])
table.clear(teams.Team4,arg[2])
end
end
elseif arg[1] == "aj" and arg[2] == "on" and arg[3] == nil then
autoJoin = true
elseif arg[1] == "aj" and arg[2] == "off" and arg[3] == nil then
autoJoin = false
elseif arg[1] == "finish" and arg[2] == "script" then
system.exit()
elseif arg[1] == "reset" and arg[2] == nil then
if gameStarted then
gameStarted = false
tfm.exec.addImage("17c13951400.jpg", "!1", 1, 1)
ShowVot()
ui.removeTextArea(2)
ui.removeTextArea(3)
ui.removeTextArea(36)
ui.removeTextArea(26)
ui.removeTextArea(27)
ui.removeTextArea(22)
ui.removeTextArea(33)
ui.removeTextArea(24)
ui.removeTextArea(25)
tfm.exec.addImage("17c1358fb3a.jpg", "!3", 1, 1)
ui.removeTextArea(36)
ui.removeTextArea(40)
ui.removeTextArea(41)
ui.removeTextArea(42)
ui.removeTextArea(43)
ui.removeTextArea(44)
ui.removeTextArea(57)
ui.removeTextArea(71)
ui.removeTextArea(72)
ui.removeTextArea(50)
ui.removeTextArea(51)
ui.removeTextArea(52)
ui.removeTextArea(54)
ui.removeTextArea(55)
ui.removeTextArea(53)
ui.removeTextArea(70)
ui.removeTextArea(99)
end
elseif arg[1] == "admin" and arg[2] ~= nil then
table.insert(admin,arg[2]) print(" • "..arg[2].." is now admin thanks to "..name)
ui.addTextArea(99999, "<a href='event:ce'>Commands", arg[2],20, -25, 0, 10,
0x000000, 0x15D5A3)
elseif arg[1] == "noadmin" and arg[2] ~= nil then if arg[2]==roomloader
then print("<R>"..name.." tried remove you from admins.") else
table.clear(admin,arg[2]) print(" • "..name.." remove admin to "..arg[2])
ui.removeTextArea(99999, arg[2]) end
elseif arg[1] == "ban" and arg[2] ~= nil then
if table.contain(ban,arg[2]) then print("<R>• The player
"..arg[2].." is already banned.</R>")
elseif table.contain(admin,arg[2]) then print("<R>• You can't ban
an admin.</R>", name) else
if #ban1 < 24 then table.insert(ban1,arg[2]) elseif #ban1 >
23 and #ban2 < 48 then table.insert(ban2,arg[2]) elseif #ban2 > 47 then
table.insert(ban3,arg[2]) end
local t = command:find('%s')
local reason = command:sub(t+1)
tfm.exec.killPlayer(arg[2])
table.insert(ban,arg[2])
table.clear(teams.Team1,arg[2])
table.clear(teams.Team2,arg[2]) table.clear(teams.Team3,arg[2])
table.clear(teams.Team4,arg[2])
ui.addTextArea(666, "<p align='center'><font
size='100'><r>\nBAN</r></font>\n<font color='#15D5A3'><font size='30'>"..reason,
arg[2], 0, 0, 800, 400, 0x000001, 0x000001, 1, true)
print(" • "..name.." has banned -"..reason)
end
elseif arg[1] == "unban" and arg[2] ~= nil then
ui.removeTextArea(666,arg[2])
table.clear(ban1,arg[2]) table.clear(ban2,arg[2])
table.clear(ban3,arg[2]) table.clear(ban,arg[2])
print(" • "..name.." has unban "..arg[2])
if gameStarted and autoJoin then
if fourteams then
if #teams.Team1 < #teams.Team2 and #teams.Team1 <
#teams.Team3 and #teams.Team1 < #teams.Team4 or #teams.Team1 == #teams.Team2 and
#teams.Team1 == #teams.Team3 and #teams.Team1 == #teams.Team4 or #teams.Team2 >
#teams.Team1 and #teams.Team2 > #teams.Team3 and #teams.Team2 > #teams.Team4 and
#teams.Team1 == #teams.Team3 and #teams.Team1 == #teams.Team4 and #teams.Team3 ==
#teams.Team4 or #teams.Team2 > #teams.Team1 and #teams.Team2 > #teams.Team3 and
#teams.Team3 > #teams.Team1 and #teams.Team2 > #teams.Team4 and #teams.Team1 ==
#teams.Team4 then table.insert(teams.Team1,arg[2])
elseif #teams.Team2 < #teams.Team1 and #teams.Team2 <
#teams.Team3 and #teams.Team2 < #teams.Team4 or #teams.Team3 > #teams.Team1 and
#teams.Team3 > #teams.Team2 and #teams.Team4 > #teams.Team1 and #teams.Team4 >
#teams.Team2 and #teams.Team1 == #teams.Team2 or #teams.Team1 > #teams.Team2 and
#teams.Team1 > #teams.Team4 and #teams.Team3 > #teams.Team2 and #teams.Team3 >
#teams.Team4 and #teams.Team2 == #teams.Team4 or #teams.Team1 > #teams.Team2 and
#teams.Team1 > #teams.Team3 and #teams.Team1 > #teams.Team4 and #teams.Team2 ==
#teams.Team3 and #teams.Team2 == #teams.Team4 and #teams.Team3 == #teams.Team4 then
table.insert(teams.Team2,arg[2])
elseif #teams.Team3 < #teams.Team1 and #teams.Team3 <
#teams.Team2 and #teams.Team3 < #teams.Team4 or #teams.Team4 > #teams.Team1 and
#teams.Team4 > #teams.Team2 and #teams.Team4 > #teams.Team3 and #teams.Team1 ==
#teams.Team2 and #teams.Team1 == #teams.Team3 and #teams.Team2 == #teams.Team3 or
#teams.Team1 > #teams.Team2 and #teams.Team1 > #teams.Team3 and #teams.Team4 >
#teams.Team2 and #teams.Team4 > #teams.Team3 and #teams.Team2 == #teams.Team3 or
#teams.Team2 > #teams.Team1 and #teams.Team2 > #teams.Team3 and #teams.Team4 >
#teams.Team1 and #teams.Team4 > #teams.Team3 and #teams.Team1 == #teams.Team3 then
table.insert(teams.Team3,arg[2])
elseif #teams.Team4 < #teams.Team1 and #teams.Team4 <
#teams.Team2 and #teams.Team4 < #teams.Team3 or #teams.Team1 == #teams.Team2 and
#teams.Team1 == #teams.Team3 and #teams.Team1 == #teams.Team4 and #teams.Team2 ==
#teams.Team3 and #teams.Team2 == #teams.Team4 and #teams.Team3 == #teams.Team4 or
#teams.Team3 > #teams.Team1 and #teams.Team3 > #teams.Team2 and #teams.Team3 >
#teams.Team4 and #teams.Team1 == #teams.Team2 and #teams.Team1 == #teams.Team4 and
#teams.Team2 == #teams.Team4 or #teams.Team1 > #teams.Team3 and #teams.Team1 >
#teams.Team4 and #teams.Team2 > #teams.Team3 and #teams.Team2 > #teams.Team4 and
#teams.Team3 == #teams.Team4 then table.insert(teams.Team4,arg[2])
else table.insert(teams.Team4,arg[2])
end
else
if #teams.Team1 == #teams.Team2 then
table.insert(teams.Team1,arg[2])
elseif #teams.Team1 > #teams.Team2 then
table.insert(teams.Team2,arg[2])
end
end
end
elseif arg[1] == "banlist" then
ui.addTextArea(667, "<p align='center'><font size='16'>Banned
players", name, 100, 35, 600, 350, 0x1e3d42, 0x8d5b3e, 1, true) ui.addTextArea(668,
(table.concat(ban1,"\n") or ""), name, 100, 65, 190, 320, 0x000000, 0x000000, 0,
true) ui.addTextArea(669, (table.concat(ban2,"\n") or ""), name, 300, 65, 190, 320,
0x000000, 0x000000, 0, true) ui.addTextArea(670, (table.concat(ban3,"\n") or ""),
name, 500, 65, 190, 320, 0x000000, 0x000000, 0, true)
ui.addTextArea(675, "<R><font size='24'><a
href='event:cerrar'>X</a></font></R>", name, 708, 35, 20, 30, 0x1e3d42, 0x8d5b3e,
1, true)
elseif arg[1] == "help" or arg[1] == "commands" or arg[1] == "cmds" or
arg[1] == "cmd" then
ui.addTextArea(1001, "<p align='center'>Commands:</p>\n\n!
team1/2/3/4 [name] [name] <R>or</R> !t1/2/3/4 [name] [name] - assign players to
team.\n!add team1/2/3/4 [name] [name] <R>or</R> !a t1/2/3/4 [name] [name] - add
players to team.\n!remove [name] [name] <R>or</R> !r [name] [name] - remove players
from a team.\n!sp team1/2/3/4 [p] <R>or</R> !sp t1/2/3/4 [p] - change points from a
team.\n!name t1/2/3/4 <R>or</R> !n t1/2/3/4 - set a name to team selected.\n!aj on
<R>or</R> !aj off - status of autojoin.\n!minimalist on <R>or</R> !minamlist off -
status of minimalist mode\n!skip <R>or</R> !s - change map.\n!antirc <R>or</R> !
antivn - the next map will be antileve rc = racing or vn = vn.\n!repeat <R>or</R> !
rt - repeat the current map.\n!np [map] - only put the number of map, no @.
Example: !np 0\n!macro on/off - active/deactivate AntiMacro\n!ban [name] [reason] -
ban player selected (show black box to player).\n!unban [name] - unban player
selected.\n!banlist - show a list of players banned.\n!admin [name] - add player to
admins list.\n!noadmin [name] - remove admin.\n!vote on/result/end - start vote,
show result and end.\n!finish script\n\n", name, 125, 50, 550, 300, 0x324650,
0x212F36, 1, true)
ui.addTextArea(1002, "<p align='center'><a
href='event:cerrar'>CLOSE</p>", name, 350, 345, 95, 18, 0x324650, 0x212F36, 1,
true)
elseif arg[1] == "macro" then if arg[2] == "on" then macroON = true
print("<R>[AntiMacro] activated.</R>") elseif arg[2] == "off" then macroON = false
print("<R>[AntiMacro] desactivated.</R>") end
end
end
end
function SetPlayerNameColor()
checkColor()
for i,v in pairs(teams.Team1) do
tfm.exec.setNameColor(v, "0x"..t1C)
end
for i,n in pairs(teams.Team2) do
tfm.exec.setNameColor(n, "0x"..t2C)
end
for i,b in pairs(teams.Team3) do
tfm.exec.setNameColor(b, "0x"..t3C)
end
for i,m in pairs(teams.Team4) do
tfm.exec.setNameColor(m, "0x"..t4C)
end
end
function setTimeMode()
if mod == "Vanilla" then
gt.m = 1
gt.s = 43
tfm.exec.setGameTime(110)
elseif mod == "Burlas" then
gt.m = 1
gt.s = 43
tfm.exec.setGameTime(110)
elseif mod == "Racing" then
gt.m = 0
gt.s = 59
tfm.exec.setGameTime(110)
elseif mod == "WJ" then
gt.m = 1
gt.s = 43
tfm.exec.setGameTime(110)
elseif mod == "rcold" then
gt.m = 1
gt.s = 43
tfm.exec.setGameTime(110)
elseif mod == "Rp7" then
gt.m = 1
gt.s = 43
tfm.exec.setGameTime(110)
elseif mod == "RCP1" then
gt.m = 1
gt.s = 43
tfm.exec.setGameTime(110)
elseif mod == "Bootcamp" then
gt.m = 1
gt.s = 43
tfm.exec.setGameTime(110)
elseif mod == "Def" then
gt.m = 0
gt.s = 59
tfm.exec.setGameTime(63)
elseif mod == "revers" then
gt.m = 0
gt.s = 59
tfm.exec.setGameTime(63)
elseif mod == "MIX" then
gt.m = 1
gt.s = 43
tfm.exec.setGameTime(110)
elseif mod == "end" then
gt.m = 0
gt.s = 13
tfm.exec.setGameTime(13)
elseif mod == nil then
mod = "Racing"
gt.m = 0
gt.s = 59
tfm.exec.setGameTime(63)
end
end
function SetMapName()
local npN4 = "<font color='#FFFFFF'>"..t1N..": "..p.T1.."</font>/<font
color='#0700FF'>"..t2N..": "..p.T2.."</font>/<font color='#FFFFFF'>"..t3N..":
"..p.T3.."</font>/<font color='#E6FF00'>"..t4N..": "..p.T4.."</font>/<n><font
color='#FF0024'>D "..win.."</n>"
local npN2 = "<font color='#FFFFFF'> By Zaszaskass <bv> <font
color='#"..t1C .."'>" ..t1N ..": ".. p.T1 .."</font> | <font
color='#" ..t2C .."'>" ..t2N ..": "..p.T2.."</font> | <n>D: " ..win.."</n>"
if gameStarted then
if fourteams then tfm.exec.setUIMapName(npN4)
else tfm.exec.setUIMapName(npN2)
end
else
tfm.exec.setUIMapName("<font color='#FFFFFF'>By Zaszaskass")
end
end
function MisturarTeams()
local t = 1
teams.Team1 = {}
teams.Team2 = {}
teams.Team3 = {}
teams.Team4 = {}
for n,p in pairs(tfm.get.room.playerList) do
if fourteams then
if t == 1 then
table.insert(teams.Team1,n)
t = 2
elseif t == 2 then
table.insert(teams.Team2,n)
t = 3
elseif t == 3 then
table.insert(teams.Team3,n)
t = 4
elseif t == 4 then
table.insert(teams.Team4,n)
t = 1
end
else
if t == 1 then
table.insert(teams.Team1,n)
t = 2
elseif t == 2 then
table.insert(teams.Team2,n)
t = 1
end
end
end
end
function checkColor()
local c = false
for key,v in pairs(teamColors) do
if key == t1C then
t1C = v
c = true
elseif key == t2C then
t2C = v
c = true
elseif key == t3C then
t3C = v
c = true
elseif key == t4C then
t4C = v
c = true
elseif t1C == v then
c = true
elseif t2C == v then
c = true
elseif t3C == v then
c = true
elseif t4C == v then
c = true
end
end
end
function table.clear(t,obj)
for i,v in ipairs(t) do
if v==obj then
table.remove(t,i)
end
end
end
function table.contain(t,obj)
for i,v in pairs(t) do
if v==obj then
return true
end
end
return false
end
function resetScore()
for n,p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(n, 0,false)
end
end
function TeamFix(plr)
local char = plr
for i,v in pairs(teams.Team1) do
if v == char then
return "team1"
end
end
for i,n in pairs(teams.Team2) do
if n == char then
return "team2"
end
end
for i,b in pairs(teams.Team3) do
if b == char then
return "team3"
end
end
for i,m in pairs(teams.Team4) do
if m == char then
return "team4"
end
end
return false
end
function PlayerCheck(plr)
local playerToSerch = plr
for n,p in pairs(tfm.get.room.playerList) do
if n == plr then
return true
end
end
return false
end
function PlayerInTeam(plr)
local player = plr
for i,v in pairs(teams.Team1) do
if v == player then
return true
end
end
for i,n in pairs(teams.Team2) do
if n == player then
return true
end
end
if fourteams then
for i,b in pairs(teams.Team3) do
if b == player then
return true
end
end
for i,m in pairs(teams.Team4) do
if m == player then
return true
end
end
end
return false
end
function ShowVot()
vote = {racing = 0, burlas = 0, bootcamp = 0, vanilla = 0, mix = 0, RCP1 = 0,
revers = 0, Def = 0, WJ = 0}
ui.addTextArea(35, "<p align='center'><font size='18'>Vote</font></p>\n<p
align='center'><font size='18'><a href='event:mrc'>Racing</a>\n<a
href='event:mRCP1'>P1</a>\n<a href='event:mbr'>Burlas</a>\n<a
href='event:mbc'>Bootcamp</a>\n<a href='event:mWJ'>WJ</a>\n<a
href='event:mDef'>Def</a>\n<a href='event:mrevers'>Revers</a>\n<a
href='event:mvn'>Vanilla</a>\n<a href='event:mmix'>Mix</a></font>", nil, 200, 80,
460, 300, 0x000001, 0x0064FF, 14, true)
end
function ShowStartBoard()
ui.removeTextArea(26)
ui.removeTextArea(27)
ui.removeTextArea(22)
ui.removeTextArea(24)
ui.removeTextArea(33)
ui.removeTextArea(25)
ui.addTextArea(1, "", nil, 0, 0, 800, 400, 0x000001, 0xFFFFFF, 0.3, true)
ui.addTextArea(0, "<p align='center'>Admin: <font color='#D90E76'><b>"..admin[1],
nil, 130,376, 265, 21, 0x000001, 0xD90E76, 0, true)
ui.addTextArea(2, "<p align='center'><font color='#FFEF00' size='14' > "..
(table.concat(teams.Team1,"\n") or ""), nil, 207, 50, 151, 280, 0x000000, 0xECFF00,
0.6, true)
ui.addTextArea(3, "<p align='center'><font color='#FD00FF' size='14' > "..
(table.concat(teams.Team2,"\n") or ""), nil, 441, 50, 151, 280, 0x000000, 0xFD00FF,
0.6, true)
if fourteams then
ui.removeTextArea(2)
ui.removeTextArea(3)
ui.addTextArea(22, "<p align='center'><font color='#FFEF00' size='14' > "..
(table.concat(teams.Team1,"\n") or ""), nil, 207, 50, 151, 280, 0x000000, 0xECFF00,
0.6, true)
ui.addTextArea(33, "<p align='center'><font color='#FD00FF' size='14' > "..
(table.concat(teams.Team2,"\n") or ""), nil, 441, 50, 151, 280, 0x000000, 0xFD00FF,
0.6, true)
ui.addTextArea(24, "<p align='center'><font color='#FFFFFF' size='14' > "..
(table.concat(teams.Team3,"\n") or ""), nil, 30, 50, 151, 280, 0x000000, 0xFFFFFF,
0.6, true)
ui.addTextArea(25, "<p align='center'><font color='#FFBF00' size='14' > "..
(table.concat(teams.Team4,"\n") or ""), nil, 620, 50, 151, 280, 0x000000, 0xE6FF00,
0.6, true)
ui.addTextArea(26, "<font color='#"..t3C.."'><font size='10' ><p
align='center'><b>"..t3N.."</b></p>/font>", nil, 10, 32, 125, 15, 0x000001,
0xFFFFFF, 0, true)
ui.addTextArea(27, "<font color='#"..t4C.."'><font size='10' ><p
align='center'><b>"..t4N.."</b></p>/font>", nil, 640, 32, 125, 15, 0x000001,
0xFFFFFF, 0, true)
end
ui.addTextArea(4, "<p align='center'><font color='#FFFFFF' size='15'> Modo <font
color='#00DCFF'> "..(mod or "Racing"), nil, 420, 373, 205, 25, 0x000000, 0x000000,
0, true)
ui.addTextArea(6, "<font color='#"..t1C.."'><font size='10'><p
align='center'><b>"..t1N.."</b></p>/font>", nil, 210, 32, 125, 15, 0x000001,
0xFFFFFF, 0, true)
ui.addTextArea(7, "<font color='#"..t2C.."'><font size='10'><p
align='center'><b>"..t2N.."</b></p>/font>", nil, 456, 32, 125, 15, 0x000001,
0xFFFFFF, 0, true)
ui.addTextArea(9, "<p align='center'><font color='#FFFFFF' size='14'><b><a
href='event:rc'>Rac<r>ing</a>", nil, 365, 134, 69, 20, 0x000000, 0xFFFFFF, 0.6,
true)
ui.addTextArea(18, "<p align='center'><font color='#FFFFFF' size='15'><b><a
href='event:RCP1'>P<r>1</a>", nil, 365, 162, 69, 20, 0x000000, 0xFFFFFF, 0.6, true)
ui.addTextArea(28, "<p align='center'><font color='#FFFFFF' size='14'><b><a
href='event:WJ'>W<r>J</a>", nil, 365, 300, 69, 18, 0x000000, 0xFFFFFF, 0.6, true)
ui.addTextArea(20, "<p align='center'><font color='#FFFFFF' size='12'><b><a
href='event:Def'>Defi<r>lante</a>", nil, 365, 190, 69, 20, 0x000000, 0xFFFFFF, 0.6,
true)
ui.addTextArea(29, "<p align='center'><font color='#FFFFFF' size='14'><b><a
href='event:rcold'>Rc<r>_<r>old</a>", nil, 365, 53, 69, 19, 0x000000, 0xFFFFFF,
0.6, true)
ui.addTextArea(8, "<p align='center'><font color='#FFFFFF' size='15'><b><a
href='event:Burlas'>Bur<r>las</a>", nil, 365, 79, 69, 20, 0x000000, 0xFFFFFF, 0.6,
true)
ui.addTextArea(14, "<p align='center'><font color='#FFFFFF' size='15'><b><a
href='event:vn'>Van<r>illa</a>", nil, 365, 218, 69, 20, 0x000000, 0xFFFFFF, 0.6,
true)
ui.addTextArea(21, "<p align='center'><font color='#FFFFFF' size='15'><b><a
href='event:mix'>MI<r>X</a>", nil, 365, 246, 69, 20, 0x000000, 0xFFFFFF, 0.6, true)
ui.addTextArea(23, "<p align='center'><font color='#FFFFFF' size='15'><b><a
href='event:revers'>rev<r>ers</a>", nil, 365, 273, 69, 20, 0x000000, 0xFFFFFF, 0.6,
true)
ui.addTextArea(30, "<p align='center'><font color='#FFFFFF' size='12'><b><a
href='event:Bootcamp'>Boo<r>tcamp</a>", nil, 365, 107, 69, 20, 0x000000, 0xFFFFFF,
0.6, true)
ui.addTextArea(31, "<p align='center'><font color='#FFFFFF' size='12'><b><a
href='event:Rp7'>p<r>7</a>", nil, 365, 325, 69, 19, 0x000000, 0xFFFFFF, 0.6, true)
ui.addTextArea(10, "<p align='center'><font color='#FFFFFF' size='15'><b><a
href='event:start'>St<font color='#FFCE5A'>art</a>", nil, 353, 353,100, 25,
0x000000, 0x00FF7B, 0.6, true)
ui.addTextArea(11, "<p align='center'><font color='#FFFFFF' size='15'>Pontos: <a
href='event:dec'>-</a><font color='#FFB814'> "..win.."<font color='#FFFFFF' ><a
href='event:inc'>+</a>", nil, 210,353, 120, 20, 0x0000000, 0x00FF7B, 0, true)
ui.addTextArea(12, "<p align='center'><font color='#FFFFFF' size='14'>Auto Join: <a
href='event:OnAndOff'>"..(autoJoin and "<font color='#00FF45'>ON</font>" or not
autoJoin and "<font color='#FF6493'>OFF</font>") .."</a>", nil, 210, 335, 120, 20,
0x000000, 0x001DD9,0, true)
ui.addTextArea(15, "<p align='center'><font color='#FFFFFF' size='15'><a
href='event:Misturar'>Misturar</a>", nil, 452, 335, 90, 20, 0x000000, 0x00FF7B, 0,
true)
ui.addTextArea(19, "<p align='center'><font color='#FFFFFF' size='15'>Teams: <a
href='event:nteams'>"..(not fourteams and "<font color='#F8FF19'>2 (or 4)" or
fourteams and "<font color='#FD1FFF'>4 (or 2)") .."</a>", nil, 450,353, 177, 20,
0x000001, 0x00FF7B, 0, true)
end
main()