SHARE
TWEET

Untitled

a guest Jul 15th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top