require("samp.events").onSendChat = function(message)
message = string.gsub(message, "^[A-zА-я]", function(s)
for i = 224, 255 do
s = string.gsub(s, _G.string.char(i), _G.string.char(i - 32))
end
s = string.gsub(s, _G.string.char(184), _G.string.char(168))
return string.upper(s)
end)
message = string.gsub(message, "%s*$", "")
if not string.find(message, "%p$") then
return { message .. "." }
end
return { message }
end