Anti-Swear help
#1

Before you reply, I am not using any filterscripts, I want to make it myself

Anyway im making Anti-Swear, And i know to use strfind to find a swear word?
Anyway once found how can i replace only AND ONLY the swear word with -SWEAR BLOCKED- ??
Reply
#2

Use strfind to find a swear world, strdel to delete it and strins to insert "Swear Blocked"
Reply
#3

And how will i use Strdel on a players text?
As i wont know where the first character and last character is?
Reply
#4

with strfind to get the first caracters pos and strlen for the swear words length
Reply
#5

pawn Код:
new Filter[][] =
{
  "hacker",
  "haxx",
  "hax",
};

ONPLAYERTEXT

for(new d; d<sizeof(Filter); d++)
{  
  if(strfind(text,Filter[d],true) != -1 ) return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)