daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Jan 11th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top