Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GAME_ID = 13371
- function kgp_touch(user, clickTable, count, objects)
- local playerLocations = kgp.gameloaddata(GAME_ID, "playerLocations")
- if playerLocations and playerLocations ~= "[]" then
- playerLocations = json.decode(playerLocations)
- else
- playerLocations = {}
- end
- for player, location in pairs(playerLocations) do
- local playerName = player
- local playerLocation = location
- kgp.playerTell(user, playerName .. " " .. playerLocation , "GM", 1)
- end
- end
Add Comment
Please, Sign In to add comment