try
Code:
/play -a playexample <chan or nick> test.txt

basic coloring:
Code:
alias playexample { msg $1 09 $+ $2- }

added if-condition:
Code:
alias playexample {
  if ($2 == Error) { msg $1 04 $+ $2- }
  else { msg $1 09 $+ $2- }
}

or shorter:
Code:
alias playexample { msg $1  $+ $iif($2 == Error,04,09) $+ $2- }

You may as well use $pnick in place of $1