Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- raton = {}
- chamanes = 0
- function eventNewPlayer(n)
- if not raton[n] then
- raton[n] = {
- chaman = 0
- }
- end
- end
- for name in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function isShaman(name)
- if tfm.get.room.playerList[name].isShaman==true then
- chamanes = chamanes + 1
- raton[name].chaman = raton[name].chaman + 1
- if chamanes==1 then
- print("<CH>El chamán actual ("..name..") ha sido chamán "..raton[name].chaman.." veces.")
- end
- if chamanes==2 then
- print("<rose>El chamán actual ("..name..") ha sido chamán "..raton[name].chaman.." veces.")
- end
- end
- end
- function eventNewGame()
- chamanes = 0
- for name in pairs(tfm.get.room.playerList) do
- isShaman(name)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement