![]() |
Question about PMs with NPC server
I'm trying to insert a command that a player can PM to the NPC server but I have no clue how. I'm assuming I have to put the script into the Control-NPC but I don't know what to put in there.
Joey told me function onPM(text) { } but he is unsure. |
hmm
I think it is something like PHP Code:
I think params[0] is what you pm the player |
nope, didn't work :[
I just got that "I am the npc server and all actions are controlled by me" or whatever. |
have you tried to see if onRC() returns any parameters?
PHP Code:
|
it doesn't :x
|
PHP Code:
then it should work :) params[0] is something params[1] is the text being sent to the npcserver also, try this when you have setpm(NULL); PHP Code:
|
Quote:
PHP Code:
|
Quote:
|
I don't really understand, can you explain further to what setPM(null); does? :x
does that just allow the NPC server to receive PMs and do further things with it? not to sure. |
Quote:
|
got it, thanks!
|
| All times are GMT +2. The time now is 03:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.