Hi. I have This code. This code detects the sentences I want in the chat and does something. But the problem is that if there is a space in a sentence, the code can not recognize it. This code only recognizes words and is not able to recognize sentences. This is my first problem. The second problem is that this code only recognizes words sent by users. I want, for example, if the server also sends words in the chat, the code can recognize it. Is this possible? Thanks.
static lastsaid, said
for(new i = 0; i < sizeof BAD_WORDS; i++)
replace_all(said, charsmax(said), BAD_WORDS[i], "***")
formatex(lastsaid, charsmax(lastsaid), "%s", said)
client_cmd(id, "say %s", said)