Maybe having a class joined to the player like:
PHP Code:
public function RecievePM(text, other) {
triggerclient("gui", "-System/PM", "RecievedPM", text, other); //need to add those stuff than in the PM weapon
}
and using like
PHP Code:
findplayer(params[1]).RecievePM(params[2], player.account)
Would that be a good way?