01.03.2016, 18:21
...
PHP код:
new badwords[][] = {"fuck", "bitch"};
public OnPlayerText(playerid, text[]){
for(new i, pos; i < sizeof badwords; i++){
while((pos = strfind(text, badwords[i], true), pos) != -1){
for(new p; p < strlen(badwords[i]) - 1; p++){
text[pos + p + 1] = '*';
}
}
}
//...
return 1;
}