Advertisement
Haxhhhhhhhhh

desafiando até cair

Aug 24th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.34 KB | None | 0 0
  1. tfm.exec.disableAutoShaman(true)
  2. tfm.exec.disableAutoNewGame(true)
  3. tfm.exec.disableAutoScore(true)
  4. winner=""
  5. tfm.exec.disableAllShamanSkills(true)
  6. tfm.exec.newGame("@7033610")
  7. tfm.exec.setShaman("Camilledrain")
  8. function eventNewGame()
  9.     for name,player in pairs(tfm.get.room.playerList) do
  10.         tfm.exec.giveCheese(name)
  11.     end
  12.     tfm.exec.setUIMapName("<N>Tente não cair v1.0.1 - Criado por Rivenbagassa e Camilledrain                                                                                 ")
  13. end
  14. function eventPlayerDied(name)
  15.     local i=0
  16.     local n
  17.     for pname,player in pairs(tfm.get.room.playerList) do
  18.         if not player.isDead and not player.isShaman then
  19.             i=i+1
  20.             n=pname
  21.         end
  22.     end
  23.     if i==0 then
  24.         -- não faça nada
  25.     elseif i==1 then
  26.         tfm.exec.giveCheese(n)
  27.         tfm.exec.playerVictory(n)
  28.         tfm.exec.setPlayerScore(name,1,true)
  29.         tfm.exec.setGameTime(5)
  30.         winner=n
  31.     end
  32. end
  33. function eventLoop(p,f)
  34.     if f < 1000 then
  35.         tfm.exec.newGame("@7033610")
  36.         tfm.exec.setShaman(winner)
  37.     end
  38.     if p > 500 and p < 1000 then
  39.         for name,player in pairs(tfm.get.room.playerList) do
  40.             if tfm.get.room.playerList[name].shamanMode == 1 or tfm.get.room.playerList[name].shamanMode == 2 then
  41.                 tfm.exec.killPlayer(name)
  42.                 tfm.exec.chatMessage("<ROSE>Você deve usar o modo <b>normal</b> de shaman para jogar.",name)
  43.             end
  44.         end
  45. end
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement