20.07.2010, 18:20
Try:
I'm not sure if it works, but it could look like this xD ^^
pawn Code:
public OnPlayerText(playerid, text[])
{
if(strfind(text, "idiot") != -1)
{
new Position = strfind(text, "idiot", true);
strdel(text, Position, Position+5);
strins(text, "censored", Position, 10);
SendPlayerMessageToAll(playerid, text);
return 0;
}
}
return 1;

