local PATTERN = '(%w+_%w+)%[(%d+)%]%: (.+)';
function sampev.onServerMessage(color, text)
local text = text:gsub('{......}', '');
if (text:find(PATTERN)) then
local playerName, playerID, playerMessage = text:match(PATTERN);
if (playerMessage:find('49')) then
print(('нашел 49 в сообщении. Его отправил %s (ID: %d)'):format(playerName, playerID));
end
end
end