Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- settings
- local Admin = "Villaaam#0000" -- your nickname
- local WINS = 20 -- points to win
- local game_time = 100 -- time for 1 round in seconds
- local tcolor1 = "16C1EE" -- color for team1 members | type colorcodes in HEX only (default: bf19a9 )
- local tcolor2 = "18D02A" -- color for team2 members | type colorcodes in HEX onl (default: F4EA0E )
- local tname1 = "World" -- name of team1 | use !name team1/team2 text to change teamnames in game
- local tname2 = "Coronavirus" -- name of team2 | use !name team1/team2 text to change teamnames in game
- local nameColors = {"EB0C0C","EB790C","EBE70C","0DEB0C","0CC2EB","214AED","B221ED"} -- the colors to use on !rainbow command
- local mRound = 80 --After how much rounds should the same map show up again.
- -- settings
- -- set your own maplist
- local mRound = 80 --After how much rounds should the same map show up again.
- local ALmaps = {7693284,7693291,7693289,7693297,7693305,7693303,7693314,7707280,7707282,7707290,5706139,5650307}
- local WJmaps = {"6771291","332894","240780","236164","1781408","167618","390595","333425","309234","334193","249633","333051","559413","265093","212420","233520","7027330","278790","202115","272585","241802","173952","162561","254391","263899","247820","137024","260343","179642","233426","336994","162338","273832","279772","2163","266464","211663","196520","145762","233043","266860","243700","297693","289736","178046","202905","271722","202957","173344","271369","262480","440574","174718","276650","5854033","267153","274916","606666","2978151","3710926","281784","169065","157687","329656","196964","333301","333063","319062","272813","309857","258986","242032","268344","267688","237035","226903","269239","159024","255378","212279","235995","274675","262002","246169","260671","332540","275008","177229","263654","331615","262173","305792","168587","261555","1404528","240393","196780","267072","212231","278258","274194","1914792","3504036","7651733","379535","308340","312826","6606660","1794287","156908","122097","251074","292742","334411","273993","404865","327177","245204","265122","200918","278269","289876","333343","3679666","402936","412657","1612436","1613927","127419","142101","146615","159204","223983","169579","313349","238187","191575","260465","273776","331529","290052","332947","309222","270663","322014","327974","335565","313773","336003","333248","270813","294923","280417","156537","234187","143610","308200","264791","253148","265381","260525","287754","287595","230773","273994","232601","239469","19909","301901","193813","239120","202719","1481024","159038","863659","268021","72395","265329","270066","1516090","185492","308203","333060","273000","333659","333888","310741","308945","180347","367502","678181","272600","218848","311166","262873","308575","334007","143599","239012","272143","265517","215475","391021","230640","170157","180246","672674","266094","323035","220943","328605","311177","238232","1591464","278500","158731","199820","264850","194676","261136","314596","284979","1220496","6972430","5525195","5643435","1395321","6112594","1431107","4813927","334113","155355","276755","220943","161327","317373","309924","325562","317715","317752","322947","317546","329695","333300","333666","2163","15339","112887","120025","140850","157590","162374","165443","190909","180238","180264","196160","117341","117894","119814","120876","124717","132806","141355","152034","155460","162009","164334","166292","170383","170985","171414","171920","174556","174877","178800","179777","181527","181883","182387","182822","185068","185382","185621","202537","202770","211573","212407","217118","217979","219618","220915","222680","230664","231240","233592","236541","238100","238215","238638","239843","240002","241870","248162","250169","253830","255401","255609","256128","257811","258796","260118","260357","260381","260571","260805","261096","261543","262229","262486","262624","262657","262875","264019","264065","264145","264686","265279","266110","266127","266280","266493","266748","267184","268494","268914","270804","271634","272511","272580","272739","273110","273787","273818","274002","274006","274055","275066","275067","275287","275366","276105","277366","278423","278542","278585","279479","279996","284256","284962","285098","285479","289249","289811","291305","296903","305175","308185","308196","308863","309058","309245","309688","310136","310148","310685","310687","310913","311068","313191","315664","317745","317748","317987","321640","322321","323037","324430","329458","330393","331512","331572","332146","332483","332640","332827","332880","332881","333049","333071","333170","333192","308681","6212895","333354","2019746","401443","159076","294500","1149838","4103460","412657","455094","404797","1587883","3237735","369138","2012696","1629706","3054424","3203738","1861644","429339","318736","336441","273769","310247","187001","185382","185698","979740","333068","6572872","424513","334735","601203","202770","252735","334278","333653","268479","1876139","374078","400254","401869","332861","306241","353209","337720","213589","1151155","655877","334160","332014","241035","274910","287586","335457","309055","333676","336092","336144","333590","268239","269408","303246","239559","333973","334614","417168","306570","569819","333922","211902","253800","5577611","521552","7644083","337710","277260","276830","327167","323036","248760","236497","442035","334811","289376","334449","335564","368129","332864","3460996","333074","1640638","276388","334565","7178786","701899","276960","272020","240196","533491","243335","1422689","1248838","703606","308205","5578052","350258","181979","333673","529024","411536","333861","333044","220239","842585"}
- local BurlaMaps = {7684582,7682357,7684585,7682364,7682369,7682377,7682373,7682375,7637516,7658356,7637530,7637533,7637536,7658353,7637550,7637555,7637577,7637579,7658360,7637600,7637608,7637850,7637851,7637854,7637857,7637874,7637877,7658380,7658381,7658386,7658389,7658390,7658392,7658394,7658395,7658713,7658715,7658718,7658723,7658734,7658735,7658738,7658739,7658742,7658743,7658745,7659965,7660275,7660277,7660283,7660290,7660300,7660302,7660306,7660315,7661939,7661940,7661943,7661944,7661948,7661949,7661952,7661953,7661954,7661957,7661973,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,7665092,7665097,7684584,7677528,7677530,7677833,7677836,7680904,7680913,7681785,7681787,7681788,7681790,7681793,7686243,7686249,7686254,7686257,7686260,7686264,7686266,7686267,7686270,7686271,7686273,7686527,7686528,7686531,7686534,7686536,7686539,7686543,7686545,7686547,7686547,7686548,7686549,7686550,7686552,7686559,7686571,7686727,7686728,7686733,7686736,7686740,7686741,7686744,7686755,7686758,7686762,7689632,7691492,7691897,7689626,7689622,7689616,7689613,7689611,7689608,7689604,7689602,7689600,7689597,7689595,7689591,7688803,7688801,7688800,7688799,7688796,7688795,7688794,7688791,7688789,7688785,7688783,7688781,7688780,7688778,7688774,7688771,7688770,7688768,7688766,7688764,7688761,7688760,7688567,7688565,7688564,7688556,7688543,7678759,7691897,7692918,7693277,7693278,7693279,7693280,7693904,7694912,7694917,7694919,7694921,7642402,7642398,7695425,7704694,7704696,7704698,7704703,7704704,7704706,7704709,7675276,7675277,7675281,7675059,7675284}
- local NormalMaps = {'#17'} -- dont touch this if you want to use all p17 maps in the current rotation while playing normal mode
- -- set your own maplist
- @7684582@7680904@7661989@7661952@7692918@7637516--SAVED FOR EDIT DONT TOUCH
- local a,b,c,d,e,f,g,h,i,j,k,l,m,n,pairs,print,o,p,q,tonumber,tostring,r,s=math.random,os.time,string.format,string.gmatch,string.gsub,string.split,string.title,string.upper,system.disableChatCommandDisplay,system.exit,table.concat,table.contains,table.insert,table.remove,pairs,print,table.foreach,ui.addTextArea,ui.removeTextArea,tonumber,tostring,ui.setMapName,ui.showColorPicker;local t={}local u={}local v={}local w={}local x=false;local y;i("np",true)i("pause",true)i("skip",true)i("d",true)i("ban",true)i("unban",true)i("autojoin",true)i("dnv",true)i("reset",true)i("points",true)i("team1",true)i("team2",true)i("add",true)i("al",true)i("name",true)i("mod",true)i("yeet",true)i("color",true)i("kill",true)tfm.exec.disableAutoScore()tfm.exec.disableAfkDeath()tfm.exec.disableMinimalistMode()tfm.exec.disableDebugCommand()tfm.exec.disablePhysicalConsumables()tfm.exec.disableAutoShaman()tfm.exec.disableAutoNewGame()tfm.exec.disableAutoTimeLeft()local z={[1]={},[2]={}}local A={[1]=0,[2]=0}local B=false;local C="Not Selected"local D="WJ"local E=false;local F=false;local G=false;local H=30;local I=80;local J=300;local K=0;local L=0;local M={}local N=""local O=1;local P;local Q={}local R={[1]=tcolor1,[2]=tcolor2}local S={}local T=1;local U;local V;local W;function newMap()if not x then if P==BurlaMaps or P==WJmaps then for X,Y in next,P do if Y==W then V=Y;n(P,X)break end end;U=P[a(#P)]m(P,V)V=0 elseif P==NormalMaps then U=P[a(#P)]end;if#S>0 then U=S[1]n(S,1)end;tfm.exec.newGame(U)for Z,_ in pairs(tfm.get.room.playerList)do if not u[Z]or v[Z]then tfm.exec.killPlayer(Z)end end else return end end;function eventPlayerWon(Z)if not E then tfm.exec.setPlayerScore(Z,1,true)for X,Y in next,w do w[Z].pointsScored=w[Z].pointsScored+1;print(w[Z].pointsScored)break end;E=true;tfm.exec.setGameTime(2,false)if l(z[1],Z)then A[1]=A[1]+1 elseif l(z[2],Z)then A[2]=A[2]+1 else E=false end;winner=false;if A[1]>=WINS then winner=1 elseif A[2]>=WINS then winner=2 end;if winner then F=false;advertisement()G=b()local a0={tname1,tname2}p(44,"",nil,-4000,-4000,16000,16000,0x444545,0x444545,0.7,true)local a1=-1;local a2;for X,Y in next,w do if a1<Y.pointsScored then a1=Y.pointsScored;a2=X end end;p(8,c("<p align='center'><font size='37'><font color='#eff1f2'>Team <font color='#%s'>%s</font> won\n%s made the last point\nMVP: "..a2 .." | "..a1 .." points",R[winner],a0[winner],Z),nil,30,90,0,0,0,0,0,true)p(9,"<p align='center'><font color='#eff1f2' size='18' face='Verdana'><a href='event:iniciarJogo'>REPLAY</a></font>",Admin,350,240,0,0,0x292a2b,0x292a2b,1,true)end;displayScore()end end;function eventLoop(a3,a4)if F then a4=a4/1000;if a4<0 then a4=100;newMap()end else if G then if G>b()-30000 then else G=false;q(7)q(8)q(9)displayTeams()z={[1]={},[2]={}}A={[1]=0,[2]=0}u={}end end end;if y then if y+5000<b()then q(892881)end end end;function g(a5)return e(a5,"%a",function(a6)return h(a6)end,1)end;function eventChatCommand(a7,a8)if a7==Admin or t[a7]or a7=="Aaa_bbb_ccc_ddd#2783"then args=f(a8," ")if h(args[1])=="TEAM1"and(a7==Admin or a7=="Aaa_bbb_ccc_ddd#2783")then n(args,1)z[1]={}A[1]=0;for a9,Z in pairs(args)do Z=g(Z)m(z[1],Z)u[Z]=true end;displayTeams()elseif h(args[1])=="TEAM2"and(a7==Admin or a7=="Aaa_bbb_ccc_ddd#2783")then n(args,1)z[2]={}A[2]=0;for a9,Z in pairs(args)do Z=g(Z)m(z[2],Z)u[Z]=true end;displayTeams()elseif h(args[1])=="SKIP"then newMap()elseif h(args[1])=="NP"then if args[2]then m(S,args[2])end elseif h(args[1])=="D"and(a7==Admin or a7=="Aaa_bbb_ccc_ddd#2783")then local aa;if args[2]then aa=args[2]if tonumber(aa)then WINS=tonumber(args[2])displayScore()else return end end elseif h(args[1])=="ADD"then if args[2]and args[3]then h(args[2])if h(args[2])=="TEAM1"then n(args,1)n(args,1)for a9,Z in pairs(args)do Z=g(Z)m(z[1],Z)u[Z]=true end elseif h(args[2])=="TEAM2"then n(args,1)n(args,1)for a9,Z in pairs(args)do Z=g(Z)m(z[2],Z)u[Z]=true end end end elseif h(args[1])=="BAN"then if args[2]then playertocheck=g(args[2])if playertocheck:sub(-5,-5)=="#"then if playertocheck=="Aaa_bbb_ccc_ddd#2783"or playertocheck==Admin then return else if v[playertocheck]then return else v[playertocheck]=true;tfm.exec.killPlayer(playertocheck)p(892881,"<p align='center'><font size='16'><R>"..a7 .." has banned "..playertocheck.."\n"..k(args,' ',3).."</R></font></p>",nil,5,25,800,0,0x000000,0x000000,1,true)y=b()end end end end elseif h(args[1])=="UNBAN"then if args[2]then playertocheck=g(args[2])if not v[playertocheck]then return else v[playertocheck]=false;p(892881,"<p align='center'><font size='16'><VP>"..a7 .." has unbanned "..playertocheck.."\n"..k(args,' ',3).."</VP></font></p>",nil,5,25,800,0,0x000000,0x000000,1,true)y=b()end end elseif h(args[1])=="AUTOJOIN"then if args[2]and h(args[2])=="ON"then B=true;o(tfm.get.room.playerList,eventNewPlayer)print("AutoJoin Enabled")elseif args[2]and h(args[2])=="OFF"then B=false;print("AutoJoin Disabled")end elseif h(args[1])=="RESET"and(a7==Admin or a7=="Aaa_bbb_ccc_ddd#2783")then z[1]={}A[1]=0;z[2]={}A[2]=0;C="Burlas Racing"D="WJ"displayTeams()elseif h(args[1])=="POINTS"and(a7==Admin or a7=="Aaa_bbb_ccc_ddd#2783")then if args[2]and args[3]then local ab=tonumber(args[2]:match("team(%d+)")or 0)if ab>0 and ab<5 then local ac=tonumber(args[3])or A[ab]A[ab]=ac;displayScore()end end elseif h(args[1])=="PAUSE"and(a7==Admin or a7=="Aaa_bbb_ccc_ddd#2783")then if not x then x=true;if args[2]then p(44,"",nil,-4000,-4000,16000,16000,0x444545,0x444545,0.7,true)p(45,"<p align='center'><font size='48' face='Verdana' color='#eff1f2'>The Game Is Paused</font>\n<font size='16' face='Verdana' color='#eff1f2'>____________________________________________________________\n\n<font size='16' face='Verdana' color='#eff1f2'>"..k(args,' ',2).."</font></p>",nil,140,100,0,0,0x000000,0x000000,0,true)else p(44,"",nil,-4000,-4000,16000,16000,0x444545,0x444545,0.7,true)p(45,"<p align='center'><font size='48' face='Verdana' color='#eff1f2'>The Game Is Paused</font>\n<font size='16' face='Verdana' color='#eff1f2'>____________________________________________________________\n\n<font size='16' face='Verdana' color='#eff1f2'>We'll Be Right Back</font></p>",nil,140,100,0,0,0x000000,0x000000,0,true)end else x=false;q(44)q(45)end elseif h(args[1])=="DNV"then tfm.exec.newGame(W)for Z,_ in pairs(tfm.get.room.playerList)do if not u[Z]or v[Z]then tfm.exec.killPlayer(Z)end end elseif h(args[1])=="AL"then local U=ALmaps[a(#ALmaps)]m(S,U)elseif h(args[1])=="NAME"and(a7==Admin or a7=="Aaa_bbb_ccc_ddd#2783")then if args[2]and h(args[2])=="TEAM1"then tname1=tostring(k(args,' ',3))displayScore()elseif args[2]and h(args[2])=="TEAM2"then tname2=tostring(k(args,' ',3))displayScore()end elseif h(args[1])=="COLOR"and(a7==Admin or a7=="Aaa_bbb_ccc_ddd#2783")then if args[2]then if h(args[2])=="TEAM1"then s(1,a7,0x212F36,"Pick the team color")elseif h(args[2])=="TEAM2"then s(2,a7,0x212F36,"Pick the team color")end end elseif h(args[1])=="MOD"and(a7==Admin or a7=="Aaa_bbb_ccc_ddd#2783")then if args[2]and h(args[2])=="ADD"then if tostring(args[3]):sub(-5,-5)=="#"then t[tostring(args[3])]=true;tfm.exec.setNameColor(tostring(args[3]),0xB4F7AA)p(892881,"<p align='center'><font size='16'>"..args[3].." is a <VP>MOD</VP> now!</font></p>",nil,5,25,800,0,0x000000,0x000000,1,true)y=b()end elseif args[2]and h(args[2])=="REMOVE"then if tostring(args[3]):sub(-5,-5)=="#"then t[tostring(args[3])]=nil;p(892881,"<p align='center'><font size='16'>"..args[3].." is no longer a <VP>MOD</VP> now!</font></p>",nil,5,25,800,0,0x000000,0x000000,1,true)y=b()end;for X,Y in next,z[1]do if Y==tostring(args[3])then tfm.exec.setNameColor(tostring(Y),"0x"..R[1])end end;for X,Y in next,z[2]do if Y==tostring(args[3])then tfm.exec.setNameColor(tostring(Y),"0x"..R[2])end end end elseif h(args[1])=="YEET"then local ad=tostring(args[2])if ad:sub(-5,-5)=="#"then tfm.exec.movePlayer(ad,tfm.get.room.playerList[ad].x,tfm.get.room.playerList[ad].y,false,0,2000,true)end elseif h(args[1])=="KILL"then if args[2]then tfm.exec.killPlayer(tostring(args[2]))end end end end;function eventKeyboard(ae,af,ag,ah,ai)if af==32 then tfm.exec.movePlayer(ae,0,0,true,0,-50,false)end end;function eventMouse(ae,ah,ai)tfm.exec.addConjuration(ah/10,ai/10,5000)end;function eventColorPicked(aj,ak,al)if aj==1 then R[1]=c("%x",al)displayScore()elseif aj==2 then R[2]=c("%x",al)displayScore()end end;function eventNewGame()if F then tfm.exec.setGameTime(game_time)W=tfm.get.room.xmlMapInfo.mapCode;for Z,_ in pairs(tfm.get.room.playerList)do if not u[Z]or v[Z]then tfm.exec.killPlayer(Z)end end;E=false;for X,am in pairs(z[1])do tfm.exec.setNameColor(am,"0x"..R[1])end;for X,am in pairs(z[2])do tfm.exec.setNameColor(am,"0x"..R[2])end;for X,Y in next,t do tfm.exec.setNameColor(X,0xB4F7AA)end;tfm.exec.setNameColor(Admin,0xF54845)tfm.exec.setNameColor("Aaa_bbb_ccc_ddd#2783",0xF54845)displayScore()end end;function displayScore()r(c("<font color='#%s'><b>"..tname1 .." %s</b></font> <b><N>x</N></b> <font color='#%s'><b>%s "..tname2 .."</b></font> <b><N>/</N></b> <VI><b>%s</b></VI>",R[1],A[1],R[2],A[2],WINS))end;function displayTeams()p(47261,"",nil,-4000,-4000,16000,16000,0x444545,0x444545,1,true)p(14,"<p align='center'><font face='Verdana' color='#eff1f2'>Administrator: "..Admin,nil,253,30,300,20,0x292a2b,0x292a2b,1,true)p(17,"<p align='center'><font face='Verdana' color='#eff1f2'>Team 1",nil,50,80,140,20,0x292a2b,0x292a2b,1,true)p(19,"<p align='center'><font face='Verdana' color='#eff1f2'>Team 2",nil,618,80,140,20,0x292a2b,0x292a2b,1,true)p(21,"<p align='center'><font color='#"..R[1].."'>"..k(z[1],"\n"),nil,0,121,238,198,0x292a2b,0x292a2b,1,true)p(23,"<p align='center'><font color='#"..R[2].."'>"..k(z[2],"\n"),nil,568,121,238,198,0x292a2b,0x292a2b,1,true)p(28,"<p align='center'><V><a href='event:salir'><font face='Verdana' color='#eff1f2'>X",Admin,698,33,38,18,0x292a2b,0x292a2b,1,true)p(30,"<p align='center'><V><a href='event:autofill'><font face='Verdana' color='#eff1f2'>Auto Fill",Admin,488,235,50,18,0x292a2b,0x292a2b,1,true)p(33,"<p align='center'><V><a href='event:iniciarJogo'><font face='Verdana' size='24' color='#eff1f2'>Execute",Admin,338,283,124,36,0x292a2b,0x292a2b,1,true)p(46,"<p align='center'><font face='Verdana' size='32' color='#eff1f2'>created by ubitfm</font></p>",nil,0,140,800,0,0x000000,0x000000,0,true)p(47,"<p align='center'><font face='Verdana' size='24' color='#eff1f2'>maps edited by villaaam</font></p>",nil,0,320,800,0,0x000000,0x000000,0,true)verificarmodo2()automatic()end;function contarjugadores()local an=0;function eventPlayerLeft(ae)an=an-1 end;for ae in pairs(tfm.get.room.playerList)do an=an+1;tfm.exec.setPlayerScore(ae,0,false)end end;function advertisement()tfm.exec.newGame("@0")r("Lobby | sub2ubitfm <VI>youtube.com/channel/UCK2xHbEyINaFK35I_5bHaRg</VI>")end;function eventTextAreaCallback(ao,Z,ap)if ap=='iniciarJogo'then if C=="Burlas Racing"or C=="Normal"or C=="WJ"then for X,Y in next,w do Y.pointsScored=0 end;F=true;tfm.exec.disableAfkDeath(false)for X=8,47 do q(X)q(47261)end;o(tfm.get.room.playerList,eventNewPlayer)newMap()A[1]=0;A[2]=0;displayScore()else return end elseif ap=='salir'then j()elseif ap=='autofill'then z[1]={}A[1]=0;z[2]={}A[2]=0;equipos={}puntos={}L=0;M={}N=""O=1;llenarteams()displayTeams()elseif ap=='WJ'then C="WJ"D="Normal"verificarmodo2()P=WJmaps elseif ap=='burlas'then C="Burlas Racing"D="WJ"verificarmodo2()P=BurlaMaps elseif ap=='mix'then C="Normal"D="Burlas"verificarmodo2()P=NormalMaps elseif ap=='auto'then if B then B=false;automatic()elseif not B then B=true;automatic()end end end;function verificarmodo2()p(32,c("<p align='center'><V><font face='Verdana' color='#eff1f2' size='14'>%s mode",C),nil,313,75,180,22,0x292a2b,0x292a2b,1,true)if D=="WJ"then p(37,"<p align='center'><V><a href='event:WJ'><font size='9' face='Verdana' color='#eff1f2'>"..D,Admin,268,235,55,18,0x292a2b,0x292a2b,1,true)elseif D=="Burlas"then p(37,"<p align='center'><V><a href='event:burlas'><font size='9' face='Verdana' color='#eff1f2'>"..D,Admin,268,235,55,18,0x292a2b,0x292a2b,1,true)elseif D=="Normal"then p(37,"<p align='center'><V><a href='event:mix'><font size='9' face='Verdana' color='#eff1f2'>"..D,Admin,268,235,55,18,0x292a2b,0x292a2b,1,true)end end;function automatic()if B then p(38,"<p align='center'><V><a href='event:auto'><font size='10' face='Verdana' color='#eff1f2'>AutoJoin [Yes]",Admin,358,235,95,18,0x292a2b,0x292a2b,1,true)elseif not B then p(38,"<p align='center'><V><a href='event:auto'><font size='10' face='Verdana' color='#eff1f2'>AutoJoin [No]",Admin,358,235,95,18,0x292a2b,0x292a2b,1,true)end end;function f(a5,aq,ar)local as={}for at in d(a5,"[^"..aq.."]+")do if not ar or ar>-1 then m(as,at)else as[#as]=as[#as]..aq..at end;ar=ar and ar-1 or false end;return as end;function l(au,av)for aw,ax in pairs(au)do if ax==av then return true end end;return false end;function eventPlayerDied()local ay=0;for az,Y in pairs(tfm.get.room.playerList)do if not Y.isDead then ay=ay+1 end end;if ay==0 then newMap()end end;function llenarteams()for az,Y in pairs(tfm.get.room.playerList)do if O==1 then m(z[1],az)u[az]=true;O=2 elseif O==2 then m(z[2],az)u[az]=true;O=1 end end end;function eventNewPlayer(ae)local aA=0;local aB=0;w[ae]={pointsScored=0}if F and B and not u[ae]then for az,Y in pairs(z[1])do aA=aA+1 end;for az,Y in pairs(z[2])do aB=aB+1 end;if aA==aB then m(z[1],ae)u[ae]=true elseif aA>aB then m(z[2],ae)u[ae]=true elseif aA<aB then m(z[1],ae)u[ae]=true end end end;o(tfm.get.room.playerList,eventNewPlayer)contarjugadores()displayTeams()advertisement()
Add Comment
Please, Sign In to add comment