Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoTimeLeft(true)
- data = {}
- tempo = 10
- players=0
- startTime=false
- function eventNewPlayer(name)
- players=players+1
- if players < 7 then
- tfm.exec.newGame("@4861682")
- ui.setMapName("Lobby <BL>|</BL> <R>Faltam "..(7-players).." jogadores para começar o jogo.</R>")
- elseif players >= 7 then
- startTime=true
- end
- end
- function subTac(tic)
- tempo = tempo - tic
- if tempo <= 0 then
- tempo = 0
- end
- end
- function eventLoop()
- if startTime and tempo > 0 then
- subTac(0.5)
- ui.setMapName("<CE>O jogo vai começar em "..tempo.." segundos</CE>")
- elseif startTime then
- startTime=false
- ui.setMapName("<CE>O jogo começou</CE>")
- end
- end
- for i,v in pairs(tfm.get.room.playerList) do
- eventNewPlayer(i)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement