Advertisement
Guest User

Untitled

a guest
May 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local cmds = concommand.GetTable()
  2.  
  3. local strings = {}
  4.  
  5. for k, v in pairs(cmds) do
  6. table.insert(strings, k)
  7. end
  8.  
  9. local lastChat = CurTime()
  10. local num = 1
  11. hook.Add("Think", "WhatAreMyCommands", function()
  12.  
  13. if lastChat+2 <= CurTime() then
  14.  
  15. if not strings[num] then
  16. hook.Remove("Think", "WhatAreMyCommands")
  17. print(num .. " Returning")
  18. return
  19. end
  20.  
  21. RunConsoleCommand("say", tostring(strings[num]))
  22. num = num + 1
  23. end
  24.  
  25. end)
  26. '+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement