Top

!Ban & !Infoban


mIRC Code
+ 2 likes
Please Register to submit score.
Bookmark and Share
Average Score  8.7 (of 3 scores)
Date Added  Dec 22, 2008
Last Updated  Mar 17, 2010
Tags  ban  infoban  purcell 

Description

NEW: only @ and % can use it!

I maked a !ban & !infoban snippet

Created by Purcell, Modified by Khmer

Grab the Code

on *:connect:{
  var %x 1
  var %y $read(Baninfo.txt,0)
  while %x <= %y {
    hload -si $gettok($read(Baninfo.txt,%x),1,32) Baninfo.ini $gettok($read(Baninfo.txt,%x),1,32)
    inc %x
  }
}
 
on *:text:!ban*:#:{
  if ($1- == !ban) { /notice $nick Say: !ban <Name> <Reason> | halt
  }
  if $gettok($read(Baninfo.txt,w,$2),2,32) !== $null {
    .msg # That name has been banded.
    halt
  }
  else {
    if ($nick isop $chan) || ($nick ishop $chan) {
    hmake $2
    hadd $2 user $2
    hadd $2 bannedby $nick
    hadd $2 reason $3-
    hadd $2 channel $chan
    hadd $2 issue $fulldate
    hsave -i $2 baninfo.ini $hget($2,user)
    write -l1 baninfo.txt $calc($read(baninfo.txt,-1) + 1)
    write baninfo.txt $2 $nick
    timer 1 1 .msg # 14 Created by 4 Purcell, 14 Modified by 4 Khmer 14
    timer 1 2 .msg # User:  $2  , Bannedby:  $nick  , Reason:  $3- 
    timer 1 4 /mode # +b $address($2,2)
    timer 1 5 /notice $2 14 Say 4 !infoban 14 for see why ur bannnedby:
    timer 1 7 /kick # $2 $3-
  }
  else { /notice $nick Your don't got @ or % ! | halt
  } 
}
 
on *:TEXT:!infoban:?:{
  if !$hget($nick) {
    .msg $nick Ur not banded! | halt
  }
  else {
    msg $nick ----------Ban Information----------
    msg $nick [User: $+($hget($nick,user),])
    msg $nick [Channel: $+($hget($nick,channel),])
    msg $nick [Bannedby: $+($hget($nick,bannedby),])
    msg $nick [Reason: $+($hget($nick,reason),])
    msg $nick [Issue: $+($hget($nick,issue),])
    msg $nick ----------Ban Information----------
    halt
  }
}    
 

Comments

  (16)  RSS
Purcell
Comments: 37
 
mIRC Snippet:  !Ban & !Infoban
Posted on Dec 22, 2008 2:52 am
I hope u like!


Thanks PunkTuReD
PunkTuReD
Comments: 489
 
mIRC Snippet:  !Ban & !Infoban
Posted on Dec 22, 2008 3:54 am
gd work pucell nice little snippet
Aucun50
Comments: 568
 
mIRC Snippet:  !Ban & !Infoban
Posted on Dec 22, 2008 8:22 am
Tested it, works good if i didn't already have a ban script i would use this one.
Purcell
Comments: 37
 
mIRC Snippet:  !Ban & !Infoban
Posted on Dec 22, 2008 4:29 pm
:)
Kirby
Comments: 480
 
mIRC Snippet:  !Ban & !Infoban
Posted on Dec 22, 2008 10:09 pm
Might want to add ban masks?
The snapshot of this snippet bans at mask 1, default.
Maybe add a ban mask function, for example:
!ban [Name] [Mask] [Reason]?
Purcell
Comments: 37
 
mIRC Snippet:  !Ban & !Infoban
Posted on Dec 23, 2008 12:48 pm
NEW: only @ and % can use it!
Purcell
Comments: 37
 
mIRC Snippet:  !Ban & !Infoban
Posted on Dec 24, 2008 6:09 pm
U can add too: If u want that other players can see too why ur banded:

Code:

on *:TEXT:!infoban*:?:{
  if !$hget($2) {
    .msg $nick $2 is not banned! | halt
  }
  else {
    msg $nick ----------Ban Information----------
    msg $nick [User: $+($hget($2,user),])
    msg $nick [Channel: $+($hget($2,channel),])
    msg $nick [Bannedby: $+($hget($2,bannedby),])
    msg $nick [Reason: $+($hget($2,reason),])
    msg $nick [Issue: $+($hget($2,issue),])
    msg $nick ----------Ban Information----------
    halt
  }
}   
Purcell
Comments: 37
 
mIRC Snippet:  !Ban & !Infoban
Posted on Jan 9, 2009 1:17 pm
I maked timer becease then they can see who, and the reason and al.
ReFuSeR
Comments: 22
 
mIRC Snippet:  !Ban & !Infoban
Posted on Feb 2, 2009 6:16 pm
A little mistake in the !ban which I fixed...
Code:

on *:text:!ban*:#:{
  if ($1- == !ban) { /notice $nick Say: !ban <Name> <Reason> | halt
  }
  if $gettok($read(Baninfo.txt,w,$2),2,32) !== $null {
    .msg # That name has been banded.
    halt
  }
  else {
    if ($nick isop $chan) || ($nick ishop $chan) {
      hmake $2
      hadd $2 user $2
      hadd $2 bannedby $nick
      hadd $2 reason $3-
      hadd $2 channel $chan
      hadd $2 issue $fulldate
      hsave -i $2 baninfo.ini $hget($2,user)
      write -l1 baninfo.txt $calc($read(baninfo.txt,-1) + 1)
      write baninfo.txt $2 $nick
      timer 1 1 .msg # 14 Created by 4 Purcell, 14 Modified by 4 Khmer 14
      timer 1 2 .msg # User:  $2  , Bannedby::  $nick  , Reason:  $3- 
      timer 1 4 /mode # +b $2
      timer 1 5 /notice $2 14 Say 4 !infoban 14 for see why ur bannnedby:
      timer 1 7 /kick # $2 $3-
    }
    else /notice $nick Your don't got @ or % ! | halt
  }
}
nivLa 10
Comments: 2
 
mIRC Snippet:  !Ban & !Infoban
Posted on Feb 23, 2009 1:09 am
hey... this script is 1 time can ban? in same IP? just asking
Purcell
Comments: 37
 
mIRC Snippet:  !Ban & !Infoban
Posted on Feb 23, 2009 2:53 am
What u mean?
nivLa 10
Comments: 2
 
mIRC Snippet:  !Ban & !Infoban
Posted on Feb 24, 2009 3:14 am
i mean if i ban user.. and i ban him again.. the codes didnt work
Purcell
Comments: 37
 
mIRC Snippet:  !Ban & !Infoban
Posted on Feb 24, 2009 4:54 am
Beceause hes banned...

U first need unban him then..
TheProdigY
Comments: 14
 
mIRC Snippet:  !Ban & !Infoban
Posted on Sep 27, 2009 11:50 pm
You should add the $address to it too. It only bans the nick, not the address. So all they have to do is change nicks and be right back in the room.
Jethro_
Comments: 940
 
mIRC Snippet:  !Ban & !Infoban
Posted on Sep 28, 2009 12:46 am
if ($nick isop $chan) || ($nick ishop $chan) {
can be combined into:
Code:
if ($nick($chan,$nick,oh)) {

And yes, instead of banning $2, you should consider using $address($2,2)
By banning nicks, people can change them and bypass the ban instantly.
Purcell
Comments: 37
 
mIRC Snippet:  !Ban & !Infoban
Posted on Mar 17, 2010 2:09 pm
Version: 1.2
- Added ban by Address.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom