Advertisement
Tectoon

[TFM] Vampire

Oct 16th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.04 KB | None | 0 0
  1. debug.disableEventLog(true)
  2.  
  3. function eventNewGame()
  4.     for p in pairs(tfm.get.room.playerList) do
  5.         tfm.exec.bindKeyboard(p, 40, true)
  6.     end
  7. end
  8.  
  9.  
  10. function eventPlayerVampire(player)
  11. print("<R>Agora ".. player .."<R> é um Vampiro!")
  12. end
  13. function eventKeyboard(player, key, xp, yp)
  14. if (key == 40) then
  15. tfm.exec.movePlayer(player, xp, yp, false, 0, 50, false)
  16. end
  17. end
  18.  
  19.  
  20. function eventnewPlayer(playerName)
  21.     print("Bem vindo ao VAMPIRE."..playerName.."! Digite <J>!ajuda para ler as regras!", playerName)
  22. end
  23.  
  24.  
  25. function eventNewGame()
  26. tfm.exec.chatMessage("<J>O jogo começou, Use a tecla <N>! <J>junto com a sua resposta!.")
  27. end
  28.  
  29. function eventChatCommand(player,message)
  30.     if message=="ajuda" then
  31.         print("<N>Você deverá matar os outros. Para escolher um vampiro, coloque um !. <J>Exemplo: !..playerName..",playerName)
  32.     elseif message == 'vampiro' and player == "Phull" or player == "Sagazgamer" then
  33.     tfm.exec.setVampirePlayer(player)
  34.     elseif player == "Phull" or player == "Sagazgamer" then
  35.     tfm.exec.newGame(args) 
  36.     end
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement