Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maps={"@6208213","@6209388", "@6209424", "@6209532", "@6209574","@6209582", "@6209596", "@6209645","@6209899", "@6224586"};
- tempo=99999; -- Tempo em segundos
- respawn=1; -- 1 = true 2 = false
- pos=0;
- vivo=0;
- sala=0;
- local tempo=1;
- admins = {Sagazgamer = true, Tectoon = true}
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.setUIMapName("<J>Treino Supa <N>| <CH>Tempo : <V>00:00\n")
- tfm.exec.setNameColor("Sagazgamer", 0x20ABFF)
- tfm.exec.setNameColor("Tectoon", 0xFF3838)
- function eventNewGame()
- tfm.exec.setGameTime(tempo)
- end
- function eventPlayerDied(p)
- if respawn == 1 then
- tfm.exec.respawnPlayer(p)
- tfm.exec.setNameColor("Sagazgamer", 0x20ABFF)
- tfm.exec.setNameColor("Tectoon", 0xFF3838)
- else
- local i = 0;
- for v in pairs(tfm.get.room.playerList) do
- i=i+1;
- end
- if i == 0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.setUIMapName("<J><B>Treino Supa</B> <N>| <CH>Tempo : <V>00:00\n")
- end
- end
- end
- function eventPlayerWon(p)
- if respawn == 1 then
- tfm.exec.respawnPlayer(p)
- tfm.exec.setNameColor("Sagazgamer", 0x20ABFF)
- tfm.exec.setNameColor("Tectoon", 0xFF3838)
- else
- local i = 0;
- for v in pairs(tfm.get.room.playerList) do
- i=i+1;
- end
- if i == 0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.setUIMapName("<J><B>Treino Supa</B> <N>| <CH>Tempo : <V>00:00\n")
- end
- end
- end
- function eventLoop(currentTime, timeRemaining)
- tempo = tempo +0.5
- if (tempo%1 == 0) then
- T = string.format("%.2d:%.2d",tempo/60%999999, tempo%60)
- tfm.exec.setUIMapName("<J><B>Treino Supa</B> <CH>| <N>Tempo Treinado: <V>"..T.."</J>")
- end
- end
- function eventChatCommand(p,c)
- if c==[[skip]] and p==[[Sagazgamer]] then
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.setUIMapName("<J><B>Treino Supa</B> <CH>| <N>Tempo Treinado: <V>"..T.."</J>")
- tfm.exec.setGameTime(tempo)
- tfm.exec.setNameColor("Sagazgamer", 0x20ABFF)
- tfm.exec.setNameColor("Tectoon", 0xFF3838)
- print("<J>Próximo mapa<ch> supa!<n> Mapa carregado com sucesso!")
- elseif c==[[dead]] then
- tfm.exec.killPlayer(p)
- end
- end
- function eventNewPlayer(p)
- tfm.exec.respawnPlayer(p)
- end
- ui.addTextArea(0,"<font color='#5ACDD5' align='center' size='20'><b> <i><s> Projeto Treino Supa </s></i></font><font size='26' color='#068AFF' align='center' face='Soopafresh'><br> Treino Supa V1.0<font face='verdana' size='12'><br><b><J><br><br><b><font size='12'>Ola ratinhos, seu objetivo é treinar <R>supa,<j> o mapa será infinito <j>caso queira mudar de mapa dê <rose>!skip</font><font size='12'><br><j>Caso seu ratinho bug, dê <rose>!dead <j>que você morrerá e renascerá novamente! <j>? <br><font size='10'><j>Bom Jogo a Todos<R> ?? <j> By <V> Tectoon <br><br><ch><font size='12'><j>Criado por Sagazgamer",playerName,200,125,380,170, 0x3E3D3C, 0xF9E1AF, 0.8, true)
- ui.addTextArea(1,"<p align='center'><font color='#4AAEE9'><B><a href='event:close'>X</a>",player,568,112,19,18,0xFF4100,0x313131,1,true)
- function eventTextAreaCallback(textAreaId, player, callback)
- if(callback == "close") then
- ui.removeTextArea(0,player)
- ui.removeTextArea(1,player)
- end
- end
- for i,command in ipairs({"skip","dead"}) do
- system.disableChatCommandDisplay(command)
- end
- print("<J>Treino Supa <ch>V1.0<n> Carregado com sucesso!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement