character invalid
#1

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.
Reply
#2

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.
Reply
#3

https://sampwiki.blast.hk/wiki/strfind

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "#") != -1)
        return 0;

    // some other code here    
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)