Tchatting.com Forums
mIRC :: SCRIPTING & HELP mIRC Scripting help, General help, Tips and Tricks!

User Name
Password
Reply
 
Thread Tools Display Modes
  #1  
Old 18-08-2005, 07:18 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,116
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Exclamation Control Codes Channel Protection.

on @*:TEXT:*:#:{
if ($nick isreg $chan)
if ($calc($len($1-) - $len($strip($1-))) >= 10) {
if ($me isop $chan) {
if ($nick ison $chan) {
ban -k # $nick Excess Use Of CTRL CODES.
mode $chan +bMR $mask($fulladdress,2)
timer 1 2 freezeoff
}
}
}
}

on @*:NOTICE:*:#:{
if ($nick isreg $chan)
if ($calc($len($1-) - $len($strip($1-))) >= 10) {
if ($me isop $chan) {
if ($nick ison $chan) {
ban -k # $nick Excess Use Of CTRL CODES.
mode $chan +bMR $mask($fulladdress,2)
timer 1 2 freezeoff
}
}
}
}

on @*:ACTION:*:#:{
if ($nick isreg $chan)
if ($calc($len($1-) - $len($strip($1-))) >= 10) {
if ($me isop $chan) {
if ($nick ison $chan) {
ban -k # $nick Excess Use Of CTRL CODES.
mode $chan +bMR $mask($fulladdress,2)
timer 1 2 freezeoff
}
}
}
}

alias freezeoff {
timer 1 0 remote off
timer 1 20 remote on
mode $chan -MR
}
__________________

Last edited by Cult; 21-08-2005 at 08:45 AM.
Reply With Quote
  #2  
Old 21-11-2005, 07:09 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,116
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Control Codes Channel Protection.

This code is better, same.. just some editions

Code:
on @*:TEXT:*:#:actfreeze $1-
on @*:NOTICE:*:#:actfreeze $1-
on @*:ACTION:*:#:actfreeze $1-

alias actfreeze {
  if ($nick isreg $chan) {
    if ($calc($len($1-) - $len($strip($1-))) >= 20) {
      if ($me isop $chan) {
        if ($nick ison $chan) { 
          kick $chan $nick Excess Use Of CTRL CODES. 4C14ult
          mode $chan +b $mask($fulladdress,2)
          if (MR !isincs $chan(#).mode) { 
            mode $chan +MR 
            $+(.,timer,munset,.,$chan) 1 20 mode $chan -MR 
          }
        }
      }
    }
  }
}
__________________

Last edited by Cult; 23-11-2005 at 07:54 AM.
Reply With Quote
  #3  
Old 07-02-2006, 11:14 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,116
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Control Codes Channel Protection.

umm this is faster

Code:
on @*:TEXT:*:#:actfreeze $1-
on @*:NOTICE:*:#:actfreeze $1-
on @*:ACTION:*:#:actfreeze $1-

alias actfreeze {
  if ($nick isreg $chan) {
    if ($calc($len($1-) - $len($strip($1-))) >= 20) {
      if ($nick ison $chan) { 
        kick $chan $nick Excess Use Of CTRL CODES. %logo
        mode $chan +bMR $mask($fulladdress,2)
$+(.,timer,munset,.,$chan) 1 20 mode $chan -MR 
      }
    }
  }
}
__________________
Reply With Quote
  #4  
Old 11-09-2006, 06:34 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,116
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Control Codes Channel Protection.

Code:
on @*:TEXT:*:#: if ($len($strip($1-)) < 20 ) actfreeze $1-
on @*:NOTICE:*:#: if ($len($strip($1-)) < 20 ) actfreeze $1-
on @*:ACTION:*:#: if ($len($strip($1-)) < 20 ) actfreeze $1-

alias actfreeze {
  if ($nick ison $chan) && ($nick isreg $chan) kick $chan $nick Excess Use
  Of CTRL CODES. %logo
  mode $chan +bMR $mask($fulladdress,2)
  $+(.,timer,munset,.,$chan) 1 20 mode $chan -MR
}
should be faster.
not tested yet
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Request] Channel Flood Protection AYEHAN mIRC :: SCRIPTING & HELP 12 07-04-2006 06:34 PM
Microsoft Color Control Panel Applet for Windows XP Thugilex Technical Forum, Technical Aspects and Information 0 01-11-2005 07:18 PM
Another Control Codes Flood Protection. ( simple one ) Cult mIRC :: SCRIPTING & HELP 1 19-08-2005 12:36 PM
Sony Testing "Sterile" CD Copy Protection Password Technical Forum, Technical Aspects and Information 0 01-06-2005 08:54 AM
General Sops & Aops Rules dotleb #Leb -Rules And Applications 0 09-08-2004 07:37 PM

All times are GMT. The time now is 11:15 PM.
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
All data and information are copyright of DOTLeb Network