[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
#2

good work
Reply
#3

This is a snippet. In a tutorial you are expected to explain the code in detail.
Reply
#4

Not even a tutorial lol.
Reply
#5

Lool
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)