All pastes #488028 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-14 19:48 UTC
rendered paste body
ON *:TEXT:!tb*:#:{ 
  if ($me isvoice $chan || $me isreg $chan) { notice $nick ERROR: Sorry I need halfop+ To do that. | halt } 
  if ($2 == $null) { Notice $nick ERROR: !tb <nick> <time> <reason> | halt } 
  if ($3 == $null) { Notice $nick ERROR: !tb $2 <time> <reason> | halt  } 
  if ($nick ishop $chan && $2 ishop $chan) {  notice $nick ERROR: $2 is a half-op in $chan $+ , so I wont kick him. | halt  } 
  if ($nick ishop $chan && $2 isop $chan) {  notice $nick ERROR: $2 is a op in $chan $+ , so I wont kick him. | halt  } 
  if ($nick isreg $chan || $nick isvoice $chan) { notice $nick ERROR: You must be Halfop+ for this script to work.  | halt } 
  if ($nick ishop $chan || $nick isop $chan) { 
    inc %kicked 
    /ban -ku $+ $calc( $3 * 60 ) $chan $2 12 ¤ $3 Min Ban ¤ Reason: $4- ¤ Noobs Pwnt: %kicked ¤ 
  } 
} 
menu * { 
  TB System --> 
  ..TB Dialog:/dialog -m TB TB 
} 
dialog TB { 
  title "TB Dialog | Made By: Jdawg140 ©" 
  size -1 -1 160 60 
  option dbu 
  button "Ok", 1, 0 0 37 30, ok 
  button "Cancel", 2, 123 0 37 60, cancel 
  box "Script By Jdawg140 © ", 3, 50 0 60 12, center 
  edit "Nick", 4, 50 12 60 12, center 
  edit "Time To Ban ", 6, 50 24 60 12, center 
  edit "#Channel", 7, 50 36 60 12, center 
  edit "Reason", 5, 50 48 60 12, center 
  button "TimeBan User", 8, 0 30 37 30, center 
} 
on *:DIALOG:TB:sclick:8:{ 
  inc %kicked 
  /ban -ku $+ $calc( $did($dname,6) * 60 ) $did($dname,7) $did($dname,4) 2 $did($dname,6) Min Ban - Reason: $did($dname,5) Noobs Pwnt: %kicked 
} 
on $*:TEXT:/^[!@.]uv/Si:#:{ 
  if ($nick isop $chan) && ($me isop $chan) { 
    var %x = 1 
    while (%x <= $nick($chan,0)) { 
      if ($nick($chan,%x) isreg $chan) { ban -ku60 # $nick(#,%x)  4,15   90 minutes timeban used for not showing up for the headcheck be sure that you be there next time }
      inc %x 
    } 
  } 
}