16.08.2010, 17:47
(
Last edited by bigcomfycouch; 16/08/2010 at 07:37 PM.
)
pawn Code:
new const BadWords[][] = {
"shit",
"fuck"
};
public OnPlayerText(playerid, text[])
{
new placeholder;
for(new i = 0; i < sizeof BadWords; i++)
{
placeholder = strfind(text, BadWords[i], true);
if(placeholder != -1)
{
for(new x = placeholder; x < placeholder + strlen(BadWords[i]); x ++)
{
text[x] = '*';
}
}
}
return 1;
}