Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maps={"@511136","@3999991","@3547571","@3161324","@3012311","@4317592","@3734991","@3734997","@3750360","@3734998","@3999979","@4390388","@4367270","@3137929","@3547571","@3471016","@2860211","@2967631","@2805938","@3815568","@720672","@3849999","@3551333","@3493490","@3136410","@842019","@3668888","@3850000","@3264848","@2996951","@2805938","@3815568","@720672","@3849999","@3551333","@3493490","@3136410","@842019","@2805938","@3815568","@720672","@3849999","@3551333","@3493490","@3136410","@842019","@3668888","@3850000","@3668877","@3200001","@3483300","@3920916","@3395605","@3386996","@3478040","@4656973","","",""};
- tempo=350; -- Tempo em segundos
- respawn=1; -- 1 = true 2 = false
- adm = {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.setNameColor("Sagazgamer", 0x20ABFF)
- tfm.exec.setNameColor("Tectoon", 0xFF3838)
- tfm.exec.setUIMapName("<J> Bootcamp1")
- function eventNewGame()
- tfm.exec.setGameTime(tempo)
- tfm.exec.setUIMapName("<J> Bootcamp1")
- tfm.exec.setNameColor("Sagazgamer", 0x20ABFF)
- tfm.exec.setNameColor("Tectoon", 0xFF3838)
- 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)])
- 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)])
- end
- end
- end
- function eventLoop(ct,rt)
- if rt <= 0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.setUIMapName("<J> Bootcamp1")
- tfm.exec.setNameColor("Sagazgamer", 0x20ABFF)
- tfm.exec.setNameColor("Tectoon", 0xFF3838)
- end
- end
- function eventChatCommand(p,c)
- local args={}
- for i in c:gmatch('[^%s]+') do
- table.insert(args,i)
- end
- if args[1]=="map" and adm[p] then
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.setNameColor("Sagazgamer", 0x20ABFF)
- tfm.exec.setNameColor("Tectoon", 0xFF3838)
- if args[2] then
- tfm.exec.newGame(args[2])
- else
- print("<R>O mapa não existe ou não carrega")
- end
- elseif args[1]=="skip" and adm[p] then
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.setUIMapName("<J> Bootcamp1")
- tfm.exec.setNameColor("Sagazgamer", 0x20ABFF)
- tfm.exec.setNameColor("Tectoon", 0xFF3838)
- tfm.exec.setGameTime(tempo)
- print("<J>Próximo mapa<ch> Bootcamp!<n> Mapa carregado com sucesso!")
- end
- end
- function eventNewPlayer(p)
- tfm.exec.respawnPlayer(p)
- end
- for i,command in ipairs({"skip","map"}) do
- system.disableChatCommandDisplay(command)
- end
- print("<J>Bootcamp <n>carregado com sucesso!")
Advertisement
Add Comment
Please, Sign In to add comment