public OnPlayerText(playerid, text[]) { new b_word[][20]={"fuck","pussy","drugs"};//Bad word array for(new i=0; i < sizeof(b_word); i++) if(strfind(text,b_word[i],true)!=-1)//Loop for checking bad words. return SendClientMessage(playerid,-1,"Sentence consisted bad words");//Message return 1; }