27.04.2018, 06:25
PHP код:
public OnPlayerText(playerid, text[]) {
new
name[MAX_PLAYER_NAME],
str[145];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(str, sizeof(str), "%s : %s", name, text);
if(strfind(str, "fuck", true) != -1) {
strreplace(str, "fuck", "****", true);
}
SendClientMessageToAll(-1, str);
return 0;
}