Advertisement
Guest User

Untitled

a guest
Oct 13th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. function inRoomPlayers()
  2.  
  3. openUserWindow("Players In Room")
  4.  
  5. oldRoomID = oldRoomID or 0
  6. if tonumber(gmcp.Room.Info.num) ~= oldRoomID then
  7.  
  8. playersInRoom = {}
  9. for k,v in pairs(gmcp.Room.Players) do
  10. if v.name ~= gmcp.Char.Status.name then
  11. if not table.contains(playersInRoom, v.name) then
  12. table.insert(playersInRoom, v.name) --all the names go into this table
  13. end
  14. end
  15. end
  16. end
  17. oldRoomID = tonumber(gmcp.Room.Info.num)
  18.  
  19. clearWindow("Players In Room")
  20. cecho("Players In Room", "<PowderBlue>\n Players Here\n -------------")
  21. for k, v in ipairs(playersInRoom) do
  22. cecho("Players In Room", "\n "..v)
  23. end
  24. end
  25. inRoomPlayers()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement