SA-MP Forums Archive
A question about server-sided messages... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A question about server-sided messages... (/showthread.php?tid=323052)



A question about server-sided messages... - Handicap - 04.03.2012

Hello.
I'd like to know if there is any way to detect the game-mode 'SendClientMessage' function.
For example, I want to get the SendClientMessage (not the same as the client function - OnPlayerText) that I've created on my gamemode, read it's text and prevent it from being displayed on the clients' chat.
There's a function like 'OnClientMessage' - I wonder if it is possible to create something like 'OnServerMessage' - either by using the 'OnClientMessage' to reach my goal or even sockets or some plugins. Any ideas?