Advertisement
Guest User

Untitled

a guest
May 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 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. return
  18. end
  19.  
  20. RunConsoleCommand("say", tostring(strings[num]))
  21. num = num + 1
  22. lastChat = CurTime()
  23. end
  24.  
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement