15.12.2015, 18:20
PHP код:
static const cBadWords[][] = {"hacker", "cheater" /*, ... */};
for(new i; i < sizeof(cBadWords); i++)
{
if(strfind(text, cBadWords[i], true))
{
// bad word
return 0; // or break if you still want to handle some more code
}
}