This is how:
PHP Code:
// other code
for (temp.pl: allplayers) {
if (temp.pl.level != NULL) {
temp.pl.triggerclient(this.name, "gettext", params[1]);
}
}
// other code
If players can be in different chat rooms then you can use:
if (temp.pl.clientr.chatroom == clientr.chatroom)
Instead of sending it to everyone.