local samp = require 'samp.events'
------
function samp.onServerMessage(color, text)
if text:find('PM от (.+)%[(%d+)%]: (.+)') then
local nick, id, text = text:match('PM от (.+)%[(%d+)%]: (.+)')
print(nick..' '..id..' '..text)-- вывод в консоль (уберешь, чисто для демонстрации)
end
end