it's pretty easy (using temp.flags for better understanding)
PHP Code:
temp.pl = findPlayer(player2receiveMessage);
temp.nick = temp.pl.nick;
temp.tab = "Reports";
temp.message = "Incomming report!";
temp.pl.sendtoirc("privmsg", temp.nick, temp.tab, temp.message);
The message 'Incomming report!' would appear in the 'Reports' tab with a nick (the green part at the beginning) of your 'temp.pl.nick'.
Additional info:
PHP Code:
TServerPlayer.sendtoirc(str, str) - sends an irc message to the player/RC,
parameters are command and parameters, possible commands are join (channel),
part (channel), topic (channel,topic), privmsg (source,channel,message),
notice (source,channel,message)