Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoScore(true)
- winner=""
- tfm.exec.disableAllShamanSkills(true)
- tfm.exec.newGame("@7033610")
- tfm.exec.setShaman("Camilledrain")
- function eventNewGame()
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.giveCheese(name)
- end
- tfm.exec.setUIMapName("<N>Tente não cair v1.0.1 - Criado por Rivenbagassa e Camilledrain ")
- end
- function eventPlayerDied(name)
- local i=0
- local n
- for pname,player in pairs(tfm.get.room.playerList) do
- if not player.isDead and not player.isShaman then
- i=i+1
- n=pname
- end
- end
- if i==0 then
- -- não faça nada
- elseif i==1 then
- tfm.exec.giveCheese(n)
- tfm.exec.playerVictory(n)
- tfm.exec.setPlayerScore(name,1,true)
- tfm.exec.setGameTime(5)
- winner=n
- end
- end
- function eventLoop(p,f)
- if f < 1000 then
- tfm.exec.newGame("@7033610")
- tfm.exec.setShaman(winner)
- end
- if p > 500 and p < 1000 then
- for name,player in pairs(tfm.get.room.playerList) do
- if tfm.get.room.playerList[name].shamanMode == 1 or tfm.get.room.playerList[name].shamanMode == 2 then
- tfm.exec.killPlayer(name)
- tfm.exec.chatMessage("<ROSE>Você deve usar o modo <b>normal</b> de shaman para jogar.",name)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement