Quote:
Originally Posted by cbk1994
There is no default message that players receive on login from the NPC-server. If you mean a PM, somebody must have added that to your server, it's probably in the Control-NPC script.
Use TServerPlayer.sendPM(str message) for sending players PMs. Serverside only.
|
i put
PHP Code:
function onActionServerSide(temp.cmd, temp.chat) {
if (temp.cmd == "chat") {
player.sendPM("You said:\n" @ temp.chat);
}
}
//#CLIENTSIDE
function onPlayerChats() {
triggerServer("gui", this.name, "chat", player.chat);
}
in npcscript and it didnt work when i tried saying chat...