Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("PlayerSay", "tooloud", function(p,t)
- if not p:IsAdmin() then
- if t:find("%^(%d+)") then
- for d in t:gmatch("%^(%d+)") do
- local n = tonumber(d)
- if n >= 500 then
- local spos,endpos = t:find(d)
- p:ChatPrint("That's too loud, please don't do it again...")
- return ""
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement