Guest User

Untitled

a guest
Jan 11th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. GAME_ID = 13371
  2.  
  3.  
  4. function kgp_touch(user, clickTable, count, objects)
  5.     local playerLocations = kgp.gameloaddata(GAME_ID, "playerLocations")
  6.         if playerLocations and playerLocations ~= "[]" then
  7.             playerLocations = json.decode(playerLocations)
  8.         else
  9.             playerLocations = {}
  10.         end
  11.  
  12.  
  13.     for player, location in pairs(playerLocations) do
  14.         local playerName = player
  15.         local playerLocation = location
  16.         kgp.playerTell(user, playerName .. " " .. playerLocation , "GM", 1)
  17.  
  18.     end
  19. end
Add Comment
Please, Sign In to add comment