13.07.2009, 13:21
look , your script gives me errors , but i modified to not give errors like this:
but it works only with "fuck"
pawn Код:
public OnPlayerText(playerid,text[])
{
new string[128];
new BadWords[]=
{
"Fuck",
"Shit",
"Dick",
"Asshole"
};
if(strfind(text, BadWords, true) != -1)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"%s Is A Fool.",name);
SendClientMessageToAll(COLOR_GREEN,string);
return 0;
}
return 1;
}

