local team = { };
team[player:get_player_name()] = "red";
prestidigitator wrote:It might also work to create a new list in the player's inventory and store things in the metadata of the inventory's stacks. Player inventory is persisted automatically by the engine, so this MIGHT give you essentially a small persistent database....
kaeza wrote:you can create a table and store the player team using the name as key:
Example code:
At top of init.lua:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local team = { };
When player joins:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
team[player:get_player_name()] = "red";
Users browsing this forum: No registered users and 5 guests