Bad words replacing by something else..
#1

I wanna create when someone says a world like the F word. It will display this in chat:

Seven: [0]: Cows give milk and that rules soo bad..
Reply
#2

this already has been asked on this forum, try searching
i thought also an filterscript for it.
Reply
#3

COWS R AWESOME AND CUTEEEEEEEEEEEEEEEEEEEEE <33333333333333333333333333333333333333333333333 33

On-topic: Use strfind, like:

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(strfind(text, "fuck", true) != -1) //-1 < If the text IS found in the string
  {
    SendPlayerMessageToAll(playerid, "Cows are freaking awesome you weirdo!");
    return 0;
  }
Just an example, www.wiki.sa-mp.com/wiki/strfind
Reply
#4

Well. I already did this... And i never post here without trying things myself.

EDIT: Thanks Hiddos <3

EDIT 2: It's not showing my ID, and solutions?
Reply
#5

Ow lol:

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(strfind(text, "fuck", true) != -1) //-1 < If the text IS found in the string
  {
    new string[128]; format(string, sizeof string, "[%d]: Cows are freaking awesome you weirdo!");
    SendPlayerMessageToAll(playerid, string);
    return 0;
  }
  return 1;
}
Reply
#6

Quote:
Originally Posted by Seven.
Посмотреть сообщение
Well. I already did this... And i never post here without trying things myself.

EDIT: Thanks Hiddos <3

EDIT 2: It's not showing my ID, and solutions?
ur one of the many ill change my signature
my signature has two __________ lines
i know u aint a noob
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)