Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.chatMessage =print
- tfm.exec.disableAutoShaman()
- newData = {}
- p = {}
- teamtime=false
- ----------------------
- -- <procedure>
- -- Sistema de teams
- -- @Define se o jogador é do time red ou blue.
- ----------------------
- function eventNewGame()
- for p,n in pairs(tfm.get.room.playerList) do
- if teamtime == false then
- newData[p].Team = "Survivor"
- tfm.exec.setNameColor(p, 0xCB546B)
- tfm.exec.chatMessage("<R>Você nasceu como um sobrevivente! Corra dos caçadores!!",p)
- teamtime=true
- else
- newData[p].Team = "Hunter"
- tfm.exec.setNameColor(p, 0x2F7FCC)
- tfm.exec.chatMessage("<BV>Você nasceu como um caçador! Vá atrás dos sobreviventes!!",p)
- teamtime=false
- end
- end
- end
- function eventNewPlayer(name)
- newData[name] = {
- Team = "Neutro",
- Xp = 40
- }
- ui.addTextArea(2, "", name, 254, 375, 131, 8, 0x006191, 0x006191, 1, true)
- ui.addTextArea(0, "<p align='center'>"..newData[name].Xp.."/100</p>", name, 250, 373, 226, 13, 0x324650, 0x000000, 0.4, true)
- end
- tfm.exec.newGame(0)
- ui.setMapName("DeadlyHunt")
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement