Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. hook.Add("PlayerSay", "tooloud", function(p,t)
  2. if not p:IsAdmin() then
  3. if t:find("%^(%d+)") then
  4. for d in t:gmatch("%^(%d+)") do
  5. local n = tonumber(d)
  6. if n >= 500 then
  7. local spos,endpos = t:find(d)
  8. p:ChatPrint("That's too loud, please don't do it again...")
  9. return ""
  10. end
  11. end
  12. end
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement