28.06.2009, 13:15
Here it is Not Tested
At as many words as you can by copying the 7th line and change the word asshole to anything you want. You can change noob and n00b ofcourse too if you like.
But i prefer Censoring (or something)
It changes the word to Stars (*)
There is a snipped posted here somewhere.
The code is even shorten then this one.
I know, this is the one i ment with Censoring, it replaces the word with stars (*)
pawn Код:
new Muted[MAX_PLAYERS];
public OnPlayerCommandText(playerid, text[])
{
if (Muted[playerid]) { SendClientMessage(playerid, 0xFF0000FF, "You are muted, you cannot speak!"); return 0; }
if (strfind(text, "noob", true) != -1 ||
strfind(text, "asshole", true) != -1 ||
strfind(text, "n00b", true) != -1
)
{
Muted[playerid] = true;
SendClientMessage(playerid, 0xFF0000FF, "You got muted for swearing!");
}
}
But i prefer Censoring (or something)
It changes the word to Stars (*)
There is a snipped posted here somewhere.
The code is even shorten then this one.
Quote:
|
Originally Posted by Donny
Search for "swear" in the filterscripts sub, I'm sure Boylett released such a script.
|

