Advertisement
Wav

disableSkills

Wav
Sep 27th, 2013
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. tfm.disableAutoShaman(true)
  2.  
  3. shaman=nil
  4.  
  5. function eventNewGame()
  6. tfm.exec.setShaman(shaman)
  7. end
  8.  
  9. function newRound(map)
  10. if not map then map = 0 end
  11. local topScore=-1
  12. for name,player in pairs(tfm.get.room.playerList) do
  13. if player.score>topScore and not player.isShaman then
  14. topScore=player.score
  15. shaman=players[name]
  16. end
  17. end
  18. tfm.exec.newGame(map)
  19. end
  20.  
  21. newRound()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement