Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. afklist = {}
  2.  
  3. function AFK_Queue
  4. local playerlist = player.GetAll()
  5. local afkstatus = nil
  6.  
  7. hook.Add("Think","AFKQueue", function() -- Hook Think checks/runs every server tick
  8. for k, v in pairs(playerlist) do
  9. if v:IsActive() and v:IsSpec() then
  10. print ( "Grabbing all Spectators" )
  11. table.insert( afklist, v )
  12. print ("Inserting spectators to list")
  13. end
  14. for k, v in pairs(afklist)
  15. end)
  16.  
  17. hook.Add("TTTBeginRound", "AFKPoints", function()
  18. for k, v in pairs(afklist) do
  19. <Insert code to reward players in afklist here>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement