Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = {""} -- uma table sem valores
- function newPlayerData(playerName) -- função para criar uma table pro player
- items = {["moedas"]=0} -- Você pode adicionar mais itens, separados por ";"
- data[playerName] = items -- cria a table
- end
- function eventNewPlayer(playerName)
- newPlayerData(playerName)
- end
- for playerName,name in pairs(tfm.get.room.playerList) do
- newPlayerData(playerName)
- end
Advertisement
Add Comment
Please, Sign In to add comment