I know of that but what I wanted was something like I type something in a gui, the text will be sent serverside and than to the player who is supposed to get the PM (like
findplayer(params[1]).sendpm(params[2]) for example).
When the player getīs the PM it will open a GUI with the text in it (custom window, not the default by Graal). Yet when a PM getīs sent with the default system I can check who has sent the PM.
PHP Code:
function onPM(other) {
player.chat = other;
}
With the
sendpm() itīs sent by the server which means my player will always say
(npcserver). So I wanted to add a parameter which will send the players account of the player which sent the text.