13.07.2009, 13:11
pawn Код:
new BadWords[][] =
{
"Fuck",
"Shit",
"Dick",
"Asshole"
};
pawn Код:
for(new a; a<sizeof(BadWords); a++)
{
if(strfind(text, BadWords[a], true) != -1)
{
new name[MAX_PLAYER_NAME];
string[128];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"%s Is A Fool.",name);
SendClientMessageToAll(COLOR_GREEN,string);
return 0;
}
}
Something like that...