Automute for Swearing
#3

Here it is Not Tested
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!");
  }
}
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.

Quote:
Originally Posted by Donny
Search for "swear" in the filterscripts sub, I'm sure Boylett released such a script.
I know, this is the one i ment with Censoring, it replaces the word with stars (*)
Reply


Messages In This Thread
Automute for Swearing - by Puzi - 28.06.2009, 13:09
Re: Automute for Swearing - by Donny_k - 28.06.2009, 13:14
Re: Automute for Swearing - by [nl]daplayer - 28.06.2009, 13:15
Re: Automute for Swearing - by Puzi - 28.06.2009, 13:18
Re: Automute for Swearing - by Puzi - 28.06.2009, 13:28
Re: Automute for Swearing - by [nl]daplayer - 28.06.2009, 13:30
Re: Automute for Swearing - by dice7 - 28.06.2009, 13:34
Re: Automute for Swearing - by Puzi - 28.06.2009, 13:34
Re: Automute for Swearing - by [nl]daplayer - 28.06.2009, 13:36
Re: Automute for Swearing - by Puzi - 28.06.2009, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)