Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- debug.disableEventLog(true)
- function eventNewGame()
- for p in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(p, 40, true)
- end
- end
- function eventPlayerVampire(player)
- print("<R>Agora ".. player .."<R> é um Vampiro!")
- end
- function eventKeyboard(player, key, xp, yp)
- if (key == 40) then
- tfm.exec.movePlayer(player, xp, yp, false, 0, 50, false)
- end
- end
- function eventnewPlayer(playerName)
- print("Bem vindo ao VAMPIRE."..playerName.."! Digite <J>!ajuda para ler as regras!", playerName)
- end
- function eventNewGame()
- tfm.exec.chatMessage("<J>O jogo começou, Use a tecla <N>! <J>junto com a sua resposta!.")
- end
- function eventChatCommand(player,message)
- if message=="ajuda" then
- print("<N>Você deverá matar os outros. Para escolher um vampiro, coloque um !. <J>Exemplo: !..playerName..",playerName)
- elseif message == 'vampiro' and player == "Phull" or player == "Sagazgamer" then
- tfm.exec.setVampirePlayer(player)
- elseif player == "Phull" or player == "Sagazgamer" then
- tfm.exec.newGame(args)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement