22.04.2012, 02:53
You could use an array of bad words:
Not tested/compiled, let me know if it has any errors.
pawn Код:
new gBadWords[][] = {
"fuck",
"shit",
"bitch"
// etc.
};
public OnPlayerText(playerid, text[])
{
for(new i=0; i<sizeof(gBadWords); i++)
{
if(strfind(text, gBadWords[i], true) != -1)
{
ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0, 0);
return 0;
}
}
return 1;
}