SA-MP Forums Archive
Need some help with the normal chat. - 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: Need some help with the normal chat. (/showthread.php?tid=467305)



Need some help with the normal chat. - kosa451 - 02.10.2013

I just started my rp server and me and my friend found out that everyone can see the normal chat when you are writing. But how do i delete that ?


Re: Need some help with the normal chat. - Zhao - 02.10.2013

Make use of the OnPlayerText callback. You will need to have the text be processed a different way, f.e. with a proximity detector.

Код:
public OnPlayerText(playerid, text[])
{

// How you wish to process the chat here

return 0; // prevents making use of the chat
}
https://sampwiki.blast.hk/wiki/OnPlayerText