Jump to content
  • 0

NPC anti-(Certain Word)


Question

13 answers to this question

Recommended Posts

Posted

Set your own restricted words.



map,x,y,z script Name -1,{
end;
OnInit:
setarray .@w$, "fuck","noob","lol"; // Restricted Words
for ( set .@i, 0; .@i < getarraysize(.@w$); set .@i, .@i + 1 ) 
defpattern 1,".*"+.@w$[.@i]+".*","OnRestrict";
activatepset 1; 
end;
OnRestrict:
dispbottom "You will be banned for 1 year for saying the restricted word in 5 seconds.";
sleep2 5000;
atcommand "@ban +1y " + strcharinfo(0);
end;
}

Posted (edited)

@Emistry

do i need to diff my client with this one?

i remembered that the diff has Enable Swearing filter?

also, the link that you gave is it really working?

because i saw the comments and i think its not 100% working...hmmm...

Edited by Mr BrycE
Posted (edited)

woot...forgot about that one..its working now. thanks man..

i cant reload that easily im so sorry.. xD

Oh oh.. Joseph, can you make it like....this time when they say that word

it will be typed like this .. ***

can you do that?

or can you add GM lvl :-) im always saying the word hahah...

Edited by Mr BrycE
Posted

correct me if im wrong..

like this?

OnRestrict:
if ( getgroupid() == 99 ) end;
dispbottom "You will be banned for 1mn for saying the restricted word in 5 seconds.";
sleep2 5000;
atcommand "@nuke " + strcharinfo(0);
atcommand "@ban +1mn " + strcharinfo(0);
end;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...