Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admins = {Tocutoeltuco = true, Baulinmg = true}
- activadovanilla = false
- activadonormal = false
- activadopuno = false
- activadopcuatro = false
- activadopcinco = false
- activadopseis = false
- activadopsiete = false
- activadopocho = false
- activadopnueve = false
- mapasvanilla = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210}
- mapasnormales = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210,154859,3790673,5707285,4365311,1796467,2621331,1799015,4973378,1334402,5555555,2066584,457558,3420648,923485,334288,248644,387149,387149,3965601,141827,220999,3765910,3197968,2969368,505722,5226524,165808,1190826,1190826,1563226,5547549,2589845,1429444,3425103,4140588,1864676,1566067,1262791,869865,1733791,4903937,4696244,4783875,4929330,4628279,4638968,4667932,4916531,1951139,1615397,357214,504166,1564378,4872938,5605031,1728174,2462668,1871593,5089993,1360297,452773,251052,422305,1452753,149514,212956,2476452,4940118,3296027,3265149,1912644,3165231,2989211,257008,5578313,631342,5529776,3937231,1311201,5592547,2899026,876556,2386468,1338514}
- mapaspuno = {1566067,1262791,869865,1733791,4903937,4696244,4783875,4929330,4628279,4638968,4667932,4916531,1951139}
- mapaspcuatro = {1615397,357214,504166,1564378,4872938,5605031,1728174,2462668,1871593,5089993,1360297,452773,251052}
- mapaspcinco = {154859,3790673,5707285,4365311,1796467,2621331,1799015,4973378,1334402,5555555,2066584,457558,3420648}
- mapaspseis = {923485,334288,248644,387149,387149,3965601,141827,220999,3765910,3197968}
- mapaspsiete = {2969368,505722,5226524,165808,1190826,1190826,1563226,5547549,2589845,1429444,3425103,4140588,1864676}
- mapaspocho = {422305,1452753,149514,212956,2476452,4940118,3296027,3265149,1912644,3165231,2989211}
- mapaspnueve = {257008,5578313,631342,5529776,3937231,1311201,5592547,2899026,876556,2386468,1338514}
- function nuevaPartida()
- if activadovanilla==true then
- tfm.exec.newGame(mapasvanilla[math.random(#mapasvanilla)])
- end
- if activadonormal==true then
- tfm.exec.newGame(mapasnormales[math.random(#mapasnormales)])
- end
- if activadopuno==true then
- tfm.exec.newGame(mapaspuno[math.random(#mapaspuno)])
- end
- if activadopcuatro==true then
- tfm.exec.newGame(mapaspcuatro[math.random(#mapaspcuatro)])
- end
- if activadopcinco==true then
- tfm.exec.newGame(mapaspcinco[math.random(#mapaspcinco)])
- end
- if activadopseis==true then
- tfm.exec.newGame(mapaspseis[math.random(#mapaspseis)])
- end
- if activadopsiete==true then
- tfm.exec.newGame(mapaspsiete[math.random(#mapaspsiete)])
- end
- if activadopocho==true then
- tfm.exec.newGame(mapaspocho[math.random(#mapaspocho)])
- end
- if activadopnueve==true then
- tfm.exec.newGame(mapaspnueve[math.random(#mapaspnueve)])
- end
- end
- function eventLoop(a,timeLeft)
- if timeLeft <= 0 then
- nuevaPartida()
- end
- end
- function eventNewGame()
- if tfm.get.room.currentMap=="@0" then
- tfm.exec.setUIMapName("<font color='#38FF00'>Ahora mismo no hay ninguna rotación activa.</font>")
- nuevaPartida()
- end
- if activadovanilla==true then
- tfm.exec.setUIMapName("<font color='#38FF00'>Rotación </font><rose>VANILLA <font color='#38FF00'>activada.")
- end
- if activadonormal==true then
- tfm.exec.setUIMapName("<font color='#38FF00'>Rotación </font><rose>NORMAL <font color='#38FF00'>activada.")
- end
- if activadopuno==true then
- tfm.exec.setUIMapName("<font color='#38FF00'>Rotación </font><rose>P1 <font color='#38FF00'>activada.")
- end
- if activadopcuatro==true then
- tfm.exec.setUIMapName("<font color='#38FF00'>Rotación </font><rose>P4 <font color='#38FF00'>activada.")
- end
- if activadopcinco==true then
- tfm.exec.setUIMapName("<font color='#38FF00'>Rotación </font><rose>P5 <font color='#38FF00'>activada.")
- end
- if activadopseis==true then
- tfm.exec.setUIMapName("<font color='#38FF00'>Rotación </font><rose>P6 <font color='#38FF00'>activada.")
- end
- if activadopsiete==true then
- tfm.exec.setUIMapName("<font color='#38FF00'>Rotación </font><rose>P7 <font color='#38FF00'>activada.")
- end
- if activadopocho==true then
- tfm.exec.setUIMapName("<font color='#38FF00'>Rotación </font><rose>P8 <font color='#38FF00'>activada.")
- end
- if activadopnueve==true then
- tfm.exec.setUIMapName("<font color='#38FF00'>Rotación </font><rose>P9 <font color='#38FF00'>activada.")
- end
- end
- for a in pairs(tfm.get.room.playerList) do
- eventNewGame()
- end
- function eventChatCommand(n, cmd)
- if admins[n] then
- if cmd == "rotacionvanilla" then
- activadovanilla = true
- activadonormal = false
- activadopuno = false
- activadopcuatro = false
- activadopcinco = false
- activadopseis = false
- activadopsiete = false
- activadopocho = false
- activadopnueve = false
- tfm.exec.newGame(mapasvanilla[math.random(#mapasvanilla)])
- end
- end
- if admins[n] then
- if cmd == "rotacionnormal" then
- activadovanilla = false
- activadonormal = true
- activadopuno = false
- activadopcuatro = false
- activadopcinco = false
- activadopseis = false
- activadopsiete = false
- activadopocho = false
- activadopnueve = false
- tfm.exec.newGame(mapasnormales[math.random(#mapasnormales)])
- end
- end
- if admins[n] then
- if cmd == "rotacionp1" then
- activadovanilla = false
- activadonormal = false
- activadopuno = true
- activadopcuatro = false
- activadopcinco = false
- activadopseis = false
- activadopsiete = false
- activadopocho = false
- activadopnueve = false
- tfm.exec.newGame(mapaspuno[math.random(#mapaspuno)])
- end
- end
- if admins[n] then
- if cmd == "rotacionp4" then
- activadovanilla = false
- activadonormal = false
- activadopuno = false
- activadopcuatro = true
- activadopcinco = false
- activadopseis = false
- activadopsiete = false
- activadopocho = false
- activadopnueve = false
- tfm.exec.newGame(mapaspcuatro[math.random(#mapaspcuatro)])
- end
- end
- if admins[n] then
- if cmd == "rotacionp5" then
- activadovanilla = false
- activadonormal = false
- activadopuno = false
- activadopcuatro = false
- activadopcinco = true
- activadopseis = false
- activadopsiete = false
- activadopocho = false
- activadopnueve = false
- tfm.exec.newGame(mapaspcinco[math.random(#mapaspcinco)])
- end
- end
- if admins[n] then
- if cmd == "rotacionp6" then
- activadovanilla = false
- activadonormal = false
- activadopuno = false
- activadopcuatro = false
- activadopcinco = false
- activadopseis = true
- activadopsiete = false
- activadopocho = false
- activadopnueve = false
- tfm.exec.newGame(mapaspseis[math.random(#mapaspseis)])
- end
- end
- if admins[n] then
- if cmd == "rotacionp7" then
- activadovanilla = false
- activadonormal = false
- activadopuno = false
- activadopcuatro = false
- activadopcinco = false
- activadopseis = false
- activadopsiete = true
- activadopocho = false
- activadopnueve = false
- tfm.exec.newGame(mapaspsiete[math.random(#mapaspsiete)])
- end
- end
- if admins[n] then
- if cmd == "rotacionp8" then
- activadovanilla = false
- activadonormal = false
- activadopuno = false
- activadopcuatro = false
- activadopcinco = false
- activadopseis = false
- activadopsiete = false
- activadopocho = true
- activadopnueve = false
- tfm.exec.newGame(mapaspocho[math.random(#mapaspocho)])
- end
- end
- if admins[n] then
- if cmd == "rotacionp9" then
- activadovanilla = false
- activadonormal = false
- activadopuno = false
- activadopcuatro = false
- activadopcinco = false
- activadopseis = false
- activadopsiete = false
- activadopocho = false
- activadopnueve = true
- tfm.exec.newGame(mapaspnueve[math.random(#mapaspnueve)])
- end
- end
- if admins[n] then
- if cmd == "sinrotacion" then
- activadovanilla = false
- activadonormal = false
- activadopuno = false
- activadopcuatro = false
- activadopcinco = false
- activadopseis = false
- activadopsiete = false
- activadopocho = false
- activadopnueve = false
- tfm.exec.setUIMapName("<font color='#38FF00'>Ahora no habrá ninguna rotación.</font>")
- end
- end
- end
- system.disableChatCommandDisplay("rotacionvanilla")
- system.disableChatCommandDisplay("rotacionnormal")
- system.disableChatCommandDisplay("rotacionp1")
- system.disableChatCommandDisplay("rotacionp4")
- system.disableChatCommandDisplay("rotacionp5")
- system.disableChatCommandDisplay("rotacionp6")
- system.disableChatCommandDisplay("rotacionp7")
- system.disableChatCommandDisplay("rotacionp8")
- system.disableChatCommandDisplay("rotacionp9")
- system.disableChatCommandDisplay("sinrotacion")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement