[Tutorial] Word filter
#1

Word filter

Код:
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;
}
Reply


Messages In This Thread
Word filter - by CodeStyle175 - 30.12.2014, 00:14
Re: Word filter - by Cyber123 - 30.12.2014, 00:15
Re: Word filter - by Vince - 30.12.2014, 00:22
Re: Word filter - by Luicy. - 30.12.2014, 22:41
Re: Word filter - by Diti1 - 30.12.2014, 23:31

Forum Jump:


Users browsing this thread: 2 Guest(s)