OnPlayerText not working correctly.
#1

Hi. I'm having some problems with my OnPlayerText callback.
Could anyone help? I've been working on a gamemode, and I'm currently sitting here, with my friend. We've been on the server for some time, testing the gamemode. We only just noticed that the text that we type, on the server does not get sent out to either of us.

If I type "Hello". It prints it to me.
If he types "Hello". It prints it to him.

The serverlog prints everything as it should:
Quote:

[21:45:55] [join] D3MON1C[DK] has joined the server (0:192.168.1.15)
[21:46:02] Incoming connection: 192.168.1.11:52363
[21:46:02] [join] Woods has joined the server (1:192.168.1.11)
[21:46:09] [chat] [Woods]: ...
[21:46:12] [chat] [Woods]:
[21:46:25] [chat] [D3MON1C[DK]]: sfs
[21:46:40] [part] D3MON1C[DK] has left the server (0:1)
[21:46:42] [part] Woods has left the server (1:1)

I haven't even mentioned the OnPlayerText callback in my gamemode. I've got the following includes:
ZCMD, SSCANF2(plugin), DUDB.

I've tested possible solutions:
* Disabling all filterscripts, checking all includes, for the "OnPlayerText" callback. No results. I've tried returning both false, and true; 1, and 0. No results. - Disabling the plugin, no results.

Does anyone have any idea as to why this is happending?
Reply
#2

All text that enters OnPlayerText is printed in the console no matter what the return value is. Only thing I can think of about now is LimitGlobalChatRadius. Returning 0 in OnPlayerText would stop the text from being processed for everyone, even yourself.
Reply
#3

Mmmhh, Yeah. That was it.
I thought by using LimitGlobalChatRadius(-1); would disable it. I guess it didn't.
Thanks for your help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)