mIRC Homepage
Posted By: PO3 Banlist help - 27/01/08 04:07 PM
anyone have a banlist code that add bans to txt or user when type !ban in a room ?
Please Thanks :P:)
Posted By: LostShadow Re: Banlist help - 27/01/08 05:31 PM
Originally Posted By: PO3
anyone have a banlist code that add bans to txt


Bans should go to channels, not to a .txt file.

Originally Posted By: PO3
or user when type !ban in a room ?
Please Thanks :P:)


And what should be added to .txt when 1 types !ban and nothing else..?

-Neal.
Posted By: PO3 Re: Banlist help - 27/01/08 06:01 PM
ok you type !ban 1223445@gate it add gate to txt and kick then when ever that person joins it kicks them back off
Posted By: LostShadow Re: Banlist help - 27/01/08 07:04 PM
Originally Posted By: PO3
ok you type !ban 1223445@gate it add gate to txt


Code:
on *:input:#: {
  if (/* !iswm $1) {
    if ($1 == !ban) && ($2) {
      /write bans.txt $gettok($2,2,64)
    }
  }
}


Originally Posted By: PO3
and kick


Unfortunately, you'll have to write an on ban event to while loop who the ban affects then kick.

Originally Posted By: PO3
then when ever that person joins it kicks them back off


Which will be an on join event revenge script which some of us purposely choose to not help.

Best of luck with that.

-Neal.
Posted By: Reaper Re: Banlist help - 27/01/08 08:18 PM
ok this should help some
Code:
 alias !ban { write ban.txt $$1 $$2- | kick $$1 $$2- }

please do not use this script for malicious purposes. i dont like ppl using my scripts to do bad things so just dont abuse this script thank you.

Reaper
(Stephen Killgore)
Posted By: Riamus2 Re: Banlist help - 28/01/08 01:12 AM
I think the OP's looking for a way to type it as !ban, not /!ban. on INPUT would be best.

To the OP, what you're looking for is a what's called a Shitlist script. If you check a site such as http://www.mircscripts.org/ you will find some already made.
© mIRC Discussion Forums