If it's triggered in on TEXT event: use msg $target instead of //say
You can use $n (single $) for all but $$3 in the first line. If there are 3 parameters in the first line, there are still 3 parameters in the second line.
It can flood you off the server very quickly, so have some floodprotection ebabled...
But the question I should ask is: What doesn't work about it? or even What are you trying to do?