character invalid - 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: character invalid (
/showthread.php?tid=435219)
character invalid -
MichaelWharton101 - 06.05.2013
So I have a RP server and lets say I do not want people to be able to use '#' in the main chat. but all other chats like /b, /ooc, /f, etc... they can be used... just NOT in the main chat.
What I mean

If you would try to use '#' you would get the message above and what you typed would not show up.
Re: character invalid -
XtremeR - 06.05.2013
If you would try to use '#' you would get the message above and what you typed would not show up.
You mean message above player's head? if yes the Use the Bubble Chat Function.
Re: character invalid -
Scenario - 06.05.2013
https://sampwiki.blast.hk/wiki/strfind
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strfind(text, "#") != -1)
return 0;
// some other code here
return 0;
}