local samp = require "samp.events"
function samp.onServerMessage(color, text)
if text:find('%(%( PM от (.+) %((%d+)%): (.+) %)%)') then
local nick, id, message = text:match('%(%( PM от (.+) %((%d+)%): (.+) %)%)')
print(nick..'['..id..'] написал вам: '..message)
end
end