Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mice = {}
- function eventNewPlayer(name)
- if not mice[name] then
- mice[name] = {
- quesitos = 10
- }
- end
- end
- for name,_ in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventTextAreaCallback(id, name, callback)
- if callback == "caja" then
- if mice[name].quesitos <= 10 then
- print('Caja comprada correctamente')
- mice[name].quesitos - mice[name].quesitos - 10
- end
- print(mice[name].quesitos)
- end
- end
- print("<a href='event:caja'>Caja</a>")
Add Comment
Please, Sign In to add comment