Advertisement
Rawoas13

Untitled

Apr 26th, 2020
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 22.83 KB | None | 0 0
  1. --[[
  2.   1. !team1 "playername" "playername" \\Assign players to team1 , ex: !team1 Ctmce Ziggy_z
  3.     2. !team2 "playername "playername"  \\Assign players to team2 , ex: !team2 Ctmce Ziggy_z
  4.     3. !add team1 "playername" "playername"  \\Adds the player team1.
  5.     4. !add team2 "playername" "playername"  \\Adds the player team2.
  6.     5. !remove team1 "playername" "playername"  \\Removes the player/'s from team1!
  7.     6. !remove team2 "playername" "playername"  \\Removes the player/'s from team2!
  8.     7. !exit  \\Closing the Admin Panel//
  9.     8. !start \\Shows the Admin Panel back//
  10.     9. !sp team1 23  \\Sets the points for team1 to 23 or whatever you choose!
  11.     10. !sp team2 15  \\Sets the points for team1 to 15 or whatever you choose!
  12.     11. !aj on / off  \\Turns AutoJoin On and Off.
  13.     12. !pause  //pauses the game , and shows the gui back ^^
  14.     ---------------------------------
  15.     Total Commands Count: [8].
  16.     Total BurlasMaps Count: [222].
  17.     Total WJMaps Count: [1424].
  18.     ---------------------------------
  19.  
  20.     TODO:
  21.     1. Make 4 teams!
  22. --]]
  23.  
  24. local Admin = "Yourname#0000" --Put your name here, so you'll be able to use the panel.
  25. local team1Color = "Red"  --List of colors ["Pink","Blue","Green","White"]--
  26. local team2Color = "Green" --List of colors ["Pink","Blue","Green","White"]--
  27. local BurlasMaps = {"@7652017" , "@7652019" , "@7652033" , "@7652664" , "@7652667" , "@7652670" , "@7652674" , "@7652691" , "@7652790" , "@7652791" , "@7652792" , "@7652796" , "@7652797" , "@7652944" , "@7652958" , "@7652960" , "@7684582" , "@7653124" , "@7653135" , "@7653136" , "@7653139" , "@7653142" , "@7653149" , "@7653151" , "@7420052" , "@7426198" , "@7426611" , "@7387658" , "@7654229" , "@7203871" , "@7014223" , "@7175013" , "@7165042" , "@7154662" , "@6889690" , "@6933442" , "@7002430" , "@7682357" , "@6886514" , "@7684585" , "@6927305" , "@7682364" , "@7659197" , "@7659203" , "@7659205" , "@7659208" , "@7660110" , "@7660117" , "@7660104" , "@7660502" , "@7660703" , "@7660704" , "@7660705" , "@7660706" , "@7660710" , "@7660714" , "@7684581" , "@7660718" , "@7660721" , "@7660723" , "@7660727" , "@7661057" , "@7661060" , "@7661062" , "@7661063" , "@7661067" , "@7682369" , "@7662547" , "@7662559" , "@7662562" , "@7662565" , "@7682377" , "@7662759" , "@7662768" , "@7662777" , "@7662780" , "@7682373" , "@7682375" , "@7663428" , "@7663429" , "@7663430" , "@7663432" , "@7663435" , "@7663438" , "@7663444" , "@7663445" , "@7637516" , "@7658356" , "@7637530" , "@7637533" , "@7637536" , "@7658353" , "@7637550" , "@7637555" , "@7637577" , "@7637579" , "@7658360" , "@7637600" , "@7637608" , "@7637850" , "@7637851" , "@7637854" , "@7637857" , "@7637874" , "@7637877" , "@7658380" , "@7658381" , "@7658386" , "@7658388" , "@7658389" , "@7658390" , "@7658392" , "@7658394" , "@7658395" , "@7658713" , "@7658715" , "@7658718" , "@7658723" , "@7658734" , "@7658735" , "@7658738" , "@7658739" , "@7658742" , "@7658743" , "@7658745" , "@7659965" , "@7660275" , "@7660277" , "@7660283" , "@7660290" , "@7660293" , "@7660300" , "@7660302" , "@7660306" , "@7660315" , "@7661939" , "@7661940" , "@7661943" , "@7661944" , "@7661948" , "@7661949" , "@7661952" , "@7661953" , "@7661954" , "@7661957" , "@7661973" , "@7661976" , "@7661978" , "@7661979" , "@7661980" , "@7661985" , "@7661989" , "@7661990" , "@7662872" , "@7662873" , "@7662874" , "@7662876" , "@7662877" , "@7662880" , "@7662881" , "@7662882" , "@7662883" , "@7662885" , "@7662887" , "@7662888" , "@7662890" , "@7662891" , "@7662892" , "@7662893" , "@7662894" , "@7662895" , "@7662896" , "@7662897" , "@3574927" , "@7662901" , "@7662902" , "@7662907" , "@7662908" , "@7662909" , "@7662911" , "@7662912" , "@7662913" , "@7662915" , "@7662917" , "@7662918" , "@7662919" , "@7665045" , "@7665047" , "@7665049" , "@7665054" , "@7665056" , "@7665057" , "@7665058" , "@7665063" , "@7665067" , "@7665074" , "@7665087" , "@7665090" , "@7665092" , "@7665095" , "@7665097" , "@7684584" , "@7677528" , "@7677530" , "@7677833" , "@7677836" , "@7680904" , "@7680913" , "@7680923" , "@7681785" , "@7681787" , "@7681788" , "@7681790" , "@7681793" , "@7686243" , "@7686249" , "@7686254" , "@7686257" , "@7686260" , "@7686264" , "@7686266" , "@7686267" , "@7686270" , "@7686271" , "@7686273" , "@7686274" , "@7686276" , "@7686278"}
  28. local WJMaps = {324428,6119641,6119642,6119643,6119655,6120650,6133176,6146352,6274154,6641061,6641085,7465241,7485501,6799629,6755943,7627933,7628267,7628262,7628264,7628265,7627928,7627934,7627939,7600732,7601742,7601755,7627935,7601758,7608215,7608225,7608227,7628299,7627953,7627955,7627957,7574934,7630264,7630265,7630266,7630269}
  29. local mRound = 80 --After how much rounds should the same map show up again.
  30. --[[_____________________________________________________________________|                                                                      ||           ____      _____                                            ||          |___ \    |_   _|   ___    __ _   _ __ ___    ___           ||            __) |     | |    / _ \  / _` | | '_ ` _ \  / __|          ||           / __/      | |   |  __/ | (_| | | | | | | | \__ \          ||          |_____|     |_|    \___|  \__,_| |_| |_| |_| |___/          ||                         ?Created By - Ctmce - Villaaam?                         ||                     ?Module version: v8.0?                       ||                       ?Updated date: 02/24/2020?                     ||_____________________________________________________________________|--]]
  31.  
  32. local  ScoreToWin --[[H5OP1F53]]= --[[H5OP3F53]]5 local autoJoin --[[H5OP23F53]]= --[[H51P1F53]]true --[[H5OP1F233]]local mod --[[H5RP1F53]]= --[[H5OP51F53]]"Burlas" local teams = {Team1 = {}, Team2 = {}} local teamScore = {Team1 = 0, Team2 = 0}  local rMaps = {} local teamColors = {Red = 'FF0000', idk = 'CB546B', asd = '5eff6e', Green = '00FF51'} local first = false local gameTime = {Minutes = 1,Seconds = 2} local Ticker = 0 local gameStarted = false currentMap = 0 team1C = team1Color team2C = team2Color function main() tfm.exec.disableAllShamanSkills(true) tfm.exec.disableAutoNewGame(true) tfm.exec.disableAutoShaman(true) tfm.exec.disableAutoScore(true) tfm.exec.disableAutoTimeLeft(true) tfm.exec.disableDebugCommand(true) tfm.exec.disablePhysicalConsumables(true) checkColor() ShowStartBoard() end function eventNewGame() if gameStarted then currentMap =tostring("0")   setTimeMode() for n,p in pairs(tfm.get.room.playerList) do if not PlayerInTeam(n) then --[[HH3DHRYGSD3]]tfm.exec.killPlayer(n)--[[HH3DBX31D3]] end--[[HA2DBX31D3]] end--[[HAFDBX31D3]] SetPlayerNameColor() first = false if mod == "Burlas" then --[[XZA1BX31D3]]tfm.exec.setUIMapName("0".."                                               <font color='#2ECF73"..team1Color .."'>" ..team1C ..": ".. teamScore.Team1 .."</font>  /  <font color='#2ECF73"..team2Color .."'>" ..team2C ..": "..teamScore.Team2.."</font> / <n>D:" ..ScoreToWin .."</n>                        Time left: 0" .. gameTime.Minutes ..":" ..gameTime.Seconds .."\n") elseif mod =="Racing" then tfm.exec.setUIMapName(currentMap .."                                               <font color='#2ECF73"..team1Color .."'>" ..team1C ..": ".. teamScore.Team1 .."</font>  /  <font color='#2ECF73" ..team2Color .."'>" ..team2C ..": "..teamScore.Team2 .."</font> / <n>D:"..ScoreToWin .."</n>                        Time left: 0" .. gameTime.Minutes ..":0" ..gameTime.Seconds .."\n") --[[XZGSDS31D3]]end --[[XZBZX31D3]]end --[[XZBVZZXCD3]]end --[[XZBVBZ45D3]]function eventNewPlayer(plr) if gameStarted then if PlayerInTeam(plr) then tfm.exec.killPlayer(--[[XZNZC445D3]]plr--[[XZNAF2345D3]]) --[[XZNABZ45D3]]return end--[[XZNJDGZ45D3]] if autoJoin then--[[XZNMCZ45D3]] print("ily sry") if #teams.Team1 == #teams.Team2 then table.insert(teams.Team1,plr) elseif #teams.Team1 > #teams.Team2 then --[[XZNMCZVBD3]]table.insert(teams.Team2,plr)--[[DZNMCZVBD3]] elseif #teams.Team2 > #teams.Team1 then table.insert(teams.Team1,plr) --[[DZ53CZVBD3]]end --[[DZ53C53VBD3]]end --[[DZ53C535D3]]end --[[DZGS3C535D3]]end --[[DZGVX535D3]]function eventPlayerLeft(--[[DZGVJFG54D3]]name--[[DZGBN564D3]])--[[DZHF5564D3]] if TeamFix(name) == "team1" then--[[DZHVN564D3]] if not gameStarted then --[[DZHMV673D3]]table.clear(teams.Team1,name) --[[DZSD4323D3]]ShowStartBoard()--[[DZSD4323D3]] else table.clear(teams.Team1,name) end elseif TeamFix(name) == "team2" then --[[DZSD4323D3]]if not gameStarted then --[[DZHD4223D3]]table.clear(--[[DZHD4223D3]]teams.Team2,name) ShowStartBoard() else table.clear(teams.Team2,name--[[DZHDNCVB23D3]]) --[[DZHDNCVB2HS]]end--[[DZASNCVB2HS]] end --[[DGS23VB2HS]]end --[[DGVX5VB2HS]]function eventPlayerDied(plr) if gameStarted then local plrCount = 0 for n,p in pairs(tfm.get.room.playerList) do if not p.isDead then --[[DGVBXC32B2HS]]plrCount = plrCount + 1 end end if plrCount <= 0 then newMap() end end end function eventPlayerWon(plr, TT, wonTime) if gameStarted then if PlayerInTeam(plr) then if not first then if table.contain(teams.Team1,plr) then first = true teamScore.Team1 = teamScore.Team1 + 1 tfm.exec.setPlayerScore(plr, 1,true) gameTime.Minutes = 0 gameTime.Seconds = 3 if tonumber(teamScore.Team1) >= tonumber(ScoreToWin) then print("Team 1 won the game! The last point made by: "..plr) --[[867SDK]]gameStarted --[[86HSDK]]= --[[867GHDFK]]false tfm.exec.newGame(7686933,true) ShowStartBoard() ui.addTextArea(16, "<font size='13' color='#2ECF73'><i>Team</font><font color='#2ECF73" ..team1Color .."'> " ..team1C .."</font> won the game!</font></font>", nil, 8, 166, 202, 60, 0xc5d496, 0x5eff6e, 0, true) ui.addTextArea(17, "<font size='13' color='#2ECF73'><i>The Player:<font color='#"..team1Color .."'> "..plr .."</font> made the last point!", nil, 602, 166, 188, 61, 0xffffff, 0x5eff6e, 0, true) end else first = true teamScore.Team2 = teamScore.Team2 + 1 tfm.exec.setPlayerScore(plr, 1,true) gameTime.Minutes = 0 gameTime.Seconds = 3 if tonumber(teamScore.Team2) >= tonumber(ScoreToWin) then print("Team 2 won the game! The last point made by: "..plr) gameStarted = false tfm.exec.newGame(7686933,true) ShowStartBoard() ui.addTextArea(16, "<font size='13' color='#2ECF73'><i>Team</font><font color='#2ECF73" ..team2Color .."'> " ..team2C .."</font> won the game!</font></font>", nil, 8, 166, 202, 60, 0xc5d496, 0x5eff6e, 0, true) ui.addTextArea(17, "<font size='13' color='#2ECF73'><i>The Player:<font color='#"..team2Color .."'> "..plr .."</font> made the last point!", nil, 602, 166, 188, 61, 0xffffff, 0x5eff6e, 0, true) end end end end end end function eventTextAreaCallback(id, player, callback) if player == Admin or player == "Villaaam#0000" then if id == 8 then if callback == "bc" then mod = "Burlas" --[[H563SDF53]]ShowStartBoard() end elseif id == 9 then if callback == "rc" then mod = "WJ" ShowStartBoard() end elseif id == 10 then if callback == "start" then for i=0, 17,1 do ui.removeTextArea(i) end gameStarted = true teamScore.Team1 = 0 teamScore.Team2 = 0 resetScore() print("Game started! Edited by - Villaaam -") newMap() end elseif id == 11 then if callback == "dec" then if tonumber(ScoreToWin) > 1 then ScoreToWin = ScoreToWin - 1 ShowStartBoard() end elseif callback == "inc" then if tonumber(ScoreToWin) < 99 then ScoreToWin = ScoreToWin + 1 ShowStartBoard() end end elseif id == 12 then if callback == "OnAndOff" then autoJoin = not autoJoin ShowStartBoard() end elseif id == 15 then if callback == "Fill" then FillTeams() ShowStartBoard() end end end end function eventChatCommand(name, command) if name == Admin or name == "Villaaam#0000" then local arg={} for argument in command:gmatch("[^%s]+") do table.insert(arg,argument) end if arg[1] == "shaman" then
  33.         tfm.exec.setShaman(Admin)
  34.     elseif arg[1] == "meep" then
  35.         tfm.exec.giveMeep(Admin)
  36.     elseif arg[1] == "transform" then
  37.         tfm.exec.giveTransformations(Admin)
  38.     elseif arg[1] == "vampire" then        
  39.         tfm.exec.setVampirePlayer(Admin)    
  40.     elseif arg[1] == "respawn" then
  41.         tfm.exec.respawnPlayer(Admin)
  42.     elseif (arg[1]:lower() == "mc" or arg[1]:lower() == "mapcount") and arg[2] == nil then local b = 0 local r = 0 for counter,maps in pairs(BurlasMaps) do b = b + 1 end for counter,maps in pairs(WJMaps) do r = r + 1 end ui.addPopup(0, 0, string.format("<p align='center'><font color='#F0F0F0' size='16'>Maps count:</font></p>\n<font color='#98E2EB' size='12'>WJ: <font color='#BABD2F'>%s</font>\nBurlas: <font color='#BABD2F'>%s</font>\n",r,b), nil, 307, 145, 200, true) end if (arg[1]:lower() == "changesize" or arg[1]:lower() == "cs") and arg[2]:lower() == "all" and tonumber(arg[3]) ~= nil and arg[4] == nil then for n,p in pairs(tfm.get.room.playerList) do if not p.isDead then tfm.exec.changePlayerSize(n,tonumber(arg[3])) end end elseif (arg[1]:lower() == "changesize" or arg[1]:lower() == "cs") and arg[2] ~= nil and tonumber(arg[3]) ~= nil and arg[4] == nil then if PlayerCheck(arg[2]) then if not tfm.get.room.playerList[arg[2]].isDead then tfm.exec.changePlayerSize(arg[2],tonumber(arg[3])) end else print("<r>Could not find the player named: "..arg[2] .."</r>") end end if arg[1]:lower() == "team1" 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" then table.clear(teams.Team2,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 else print("Sory couldn't found: " .. tostring(v)) end end end elseif arg[1]:lower() == "team2" 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" then table.clear(teams.Team1,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 else print("Sory couldn't found: " .. tostring(v)) end end end elseif arg[1]:lower() == "add" and arg[2]:lower() == "team1" and arg[3] ~= nil then for i,v in pairs(arg) do if i > 1 then if PlayerCheck(v) then if TeamFix(v) == "team2" then table.clear(teams.Team2,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]:lower() == "add" and arg[2]:lower() == "team2" and arg[3] ~= nil then for i,v in pairs(arg) do if i > 1 then if PlayerCheck(v) then if TeamFix(v) == "team1"then table.clear(teams.Team1,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] == "remove" and arg[2] == "team1" and arg[3] ~= nil then if TeamFix(arg[3]) == "team1" then if not gameStarted then table.clear(teams.Team1,arg[3]) ShowStartBoard() else table.clear(teams.Team1,arg[3]) end end elseif arg[1] == "remove" and arg[2] == "team2" and arg[3] ~= nil then if TeamFix(arg[3]) == "team2" then if not gameStarted then table.clear(teams.Team2,arg[3]) ShowStartBoard() else table.clear(teams.Team2,arg[3]) end end elseif arg[1]:lower() == "aj" and arg[2]:lower() == "on" and arg[3] == nil then autoJoin = true elseif arg[1]:lower() == "aj" and arg[2]:lower() == "off" and arg[3] == nil then autoJoin = false elseif arg[1]:lower() == "start" then if not gameStarted then ShowStartBoard() end elseif arg[1]:lower() == "exit" and arg[2] == nil then if not gameStarted then for i=0,17,1 do ui.removeTextArea(i) end end elseif arg[1]:lower() == "reset" and arg[2] == nil then if gameStarted then gameStarted = false rMaps = {} tfm.exec.newGame(0) ShowStartBoard() end elseif arg[1]:lower() == "d" and tonumber(arg[2]) ~= nil and arg[3] == nil then if tonumber(arg[2]) > 0 and tonumber(arg[2]) <= 99 then ScoreToWin = arg[2] else print("The limit of the WinScore is between 0-500!") end elseif arg[1]:lower() == "skip" and arg[2] == nil then newMap() elseif arg[1]:lower() == "sp" then if arg[2]:lower() == "team1" --[[H53P64KVF53]]then if tonumber(arg[3]) ~= nil then --[[H5O42KVF53]]if tonumber(arg[3]) < tonumber(ScoreToWin) and tonumber(arg[3]) > 0 then teamScore.Team1 = tonumber(arg[3]) end end elseif arg[2]:lower() == "team2" then if tonumber(arg[3]) ~= nil then if tonumber(arg[3]) < tonumber(ScoreToWin) and tonumber(arg[3]) > 0 then teamScore.Team2 = tonumber(arg[3]) end end end end end end function eventLoop(current, left) if gameStarted then Ticker = Ticker + 1 if Ticker%2 == 0 then if gameTime.Minutes <= 0 and gameTime.Seconds <= 0 then newMap()--[[H53GD4KVF53]] elseif --[[H53GD4HFF53]]gameTime.Seconds < 1 then gameTime.Minutes = gameTime.Minutes - 1 gameTime.Seconds = 59 end if gameTime.Seconds > 9 then tfm.exec.setUIMapName(currentMap .."                                               <font color='#"..team1Color .."'>" ..team1C ..": ".. teamScore.Team1 .."</font>  /  <font color='#"..team2Color .."'>" ..team2C ..": "..teamScore.Team2.."</font> / <n>D:" ..ScoreToWin .."</n>                        Time left: 0" .. gameTime.Minutes ..":" ..gameTime.Seconds .."\n") --[[H53GD4H543]] elseif gameTime.Seconds < 10 then tfm.exec.setUIMapName(currentMap .."                                               <font color='#"..team1Color .."'>" ..team1C ..": ".. teamScore.Team1 .."</font>  /  <font color='#" ..team2Color .."'>" ..team2C ..": "..teamScore.Team2 .."</font> / <n>D:"..ScoreToWin .."</n>                        Time left: 0" .. gameTime.Minutes ..":0" ..gameTime.Seconds .."\n") end gameTime.Seconds = gameTime.Seconds - 1 Ticker = 0 end end end function newMap() if mod == "Burlas" then local r = BurlasMaps[math.random(#BurlasMaps)] if tableSizeKey(rMaps,r) > 0 then for i,v in pairs(rMaps) do if rMaps[i] > 0 then rMaps[i] = rMaps[i] - 1 --[[AS9872HG]] elseif rMaps[i] <= 0 then rMaps = table_removeKey(rMaps,i) end end end if rMaps[tostring(r)] then newMap() else rMaps[tostring(r)] = mRound tfm.exec.newGame(r) --[[8IR85GSDK]] end elseif mod == "WJ" then local r = WJMaps[math.random(#WJMaps)] if tableSizeKey(rMaps,r) > 0 then for i,v in pairs(rMaps) do if rMaps[i] > 0 then rMaps[i] = rMaps[i] - 1 --[[86JGSHEU5]] elseif rMaps[i] <= 0 then rMaps = table_removeKey(rMaps,i) --[[H5O53SDF53]]end --[[H5OGDDF53]]end --[[H5SADF53]]end if rMaps[tostring(r)] then newMap() else rMaps[tostring(r)] = mRound tfm.exec.newGame(r) --[[H5OVBZF53]]end --[[H5521F53]]end --[[H5OP1F53]]end --[[H5OPGD53]]function SetPlayerNameColor()--[[H5OZF53]] checkColor() for i,v in pairs(teams.Team1) do tfm.exec.setNameColor(v, "0x"..team1Color) end for i,v in pairs(teams.Team2) do tfm.exec.setNameColor(v, "0x"..team2Color) end end function setTimeMode() if mod == "Burlas" then gameTime.Minutes = 1 gameTime.Seconds = 30 elseif mod == "WJ" then gameTime.Minutes = 1 --[[H5OASHG53]]gameTime.Seconds = 2 elseif mod == nil then mod = "WJ" gameTime.Minutes = 1 gameTime.Seconds = 2 end end function FillTeams() local t = 1 teams.Team1 = {} teams.Team2 = {} for n,p in pairs(tfm.get.room.playerList) do 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 function checkColor() local c = false for key,v in pairs(teamColors) do if key == team1Color then team1Color = v c = true elseif key == team2Color then team2Color = v c = true elseif team1Color == v then c = true elseif team2Color == v then c = true end end if c then print("Team colors succesfully setted!") --[[867GSDK]]else team1Color = teamColors.Green team2Color = teamColors.Blue print("Sory couldn't found the color you choosed, Defult color will be apllied.") 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 table_removeKey(t,i) local tClone = {} for k,v in pairs(t) do if k ~= i then tClone[k] = v end end return tClone end function tableSizeKey(t,i) local counter = 0 for k,v in pairs(t) do if k ~= i then counter = counter + 1 end end return counter 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 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 return false end function ShowStartBoard() ui.addTextArea(0, "<p align='center'><font color='#FFFFFF'>Admin: <font color='#FFFF00'><b>Villaaam#0000", nil, 263, 365, 265, 20, 0xC50000, 0x19233e, 0.8, true) ui.addTextArea(1, "", nil, 209, 33, 381, 326, 0x374467, 0x19233E, 1, true) ui.addTextArea(2, "<p align='center'><font size='12' color='#" ..team1Color  .."'>" .. (table.concat(teams.Team1,"\n") or ""), nil, 208, 66, 151, 254, 0x3C1522, 0x19233e, 1, true) ui.addTextArea(3, "<p align='center'><font size='12' color='#" ..team2Color .."'> " .. (table.concat(teams.Team2,"\n") or ""), nil, 438, 66, 151, 254, 0x3C1522, 0x19233e, 1, true) ui.addTextArea(4, "<p align='center'> <font color='#FFFFFF'>Mod:" ..(mod or "WJ"), nil, 354, 60, 89, 19, 0xC50000, 0x19233e, 1, true) ui.addTextArea(5, "<font size='12'><p align='center'><b> <font color='#FFFF00'>\\ Custom Racing /", nil, 209, 33, 381, 21, 0x3C1522, 0x19233E, 1, true) ui.addTextArea(6, "<p align='center'><font color='#FFFFFF'> <font color='#FFFFFF'></font> ", nil, 207, 33, 109, 20, 0xccd9db, 0x19233e, 0, true) ui.addTextArea(7, "<p align='center'><font size='10'><font color='#FFFFFF'> \n</font><b><font color='#F8F694'></font>", nil, 470, 28, 125, 34, 0xccd9db, 0x19233e, 0, true) ui.addTextArea(8, "<p align='center'><b><a href='event:bc'> <font color='#303030'>Burlas</a>", nil, 365, 208, 69, 19, 0xEA8900, 0x19233e, 1, true) ui.addTextArea(9, "<p align='center'><b><a href='event:rc'><font color='#303030'>WJ</a>", nil, 365, 157, 69, 20, 0xFFFF00, 0x19233e, 1, true) ui.addTextArea(10, "<p align='center'><font size='13'><b> <font color='#FFFFFF'><a href='event:start'>Start</a>", nil, 359, 180, 82, 23, 0xC50000, 0x19233e, 1, true) ui.addTextArea(11, "<p align='center'><font color='#FFFFFF'>Score: <a href='event:dec'>-</a> "..ScoreToWin .." <a href='event:inc'>+</a>", nil, 435, 335, 87, 20, 0x3C1522, 0x19233e, 1, true) ui.addTextArea(12, "<p align='center'><font color='#FFFFFF'>Auto Join: <a href='event:OnAndOff'>"..(autoJoin and "on" or not autoJoin and "off") .."</a>", nil, 277, --[[H5HDGD4H543]] 335 --[[H5H673ES43]], --[[H5BX73ES43]] 87 --[[HSFBX73ES43]], --[[HSF64H73ES43]] 20 --[[HSF64H743]], --[[HSF64H74G3]] 0x3C1522--[[HSF24H74G3]], --[[HSF2GH74G3]] 0x19233e --[[HSAQGH74G3]], --[[HSAQH634G3]] 1 --[[HSAQH134G3]], --[[HSA5H134G3]] true --[[H6A5H134G3]]) --[[H6A5H176G3]]ui.addTextArea(13, "<p align='center'><font color='#FFFFFF'>2 Teams", nil, 212, 335, 54, 20, 0x3C1522, 0x19233e, 1, true) ui.addTextArea(14, "<p align='center'><font color='#FFFFFF'>4 Teams", nil, 533, 335, 54, 20, 0x3C1522, 0x19233e, 1, true) ui.addTextArea(15, "<p align='center'><font color='#FFFFFF'><a href='event:Fill'>Fill</a>", nil, 376, 335, 47, 20, 0x3C1522, 0x19233e, --[[H6A5H1476G3]]1--[[H641H1476G3]], --[[H641H276G3]]true--[[H641H27133]]) --[[HH31H27133]]end main()
  43.  
  44. system.disableChatCommandDisplay()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement