Lockdown
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Sep 10, 2008 |
| Last Updated | Sep 10, 2008 |
| Tags | lockdown meeting protection secret |
Description
Does what it says on the tin! It virtually locks down your Channel, Applying mode s(secret)m(Moderated) and i(Invite) while kicking all the unvoiced, Voice all the people you want kept in the chan.
To unapply the modes do !lockdown off and !lockdown to activate.
This is an Input and text, So ops in your cahn can use it, But not halfops!
NOTE: I left mode +v off, incase you forget to voice someone and need to invite them in
Also, Please dont claim this script as your own, This took me some time to make.
Triggers fixed
To unapply the modes do !lockdown off and !lockdown to activate.
This is an Input and text, So ops in your cahn can use it, But not halfops!
NOTE: I left mode +v off, incase you forget to voice someone and need to invite them in
Also, Please dont claim this script as your own, This took me some time to make.
Triggers fixed
mIRC Snippet:
Lockdown
Posted on Sep 10, 2008 1:08 pm
Posted on Sep 10, 2008 1:08 pm
No... The very first line of the actual coding. You're missing the on EVENT part...
| Code: |
if ($1- == !lockdown) { set %e 1 :fred set %chan $nick(#,%e,reg) if (%chan == $null) { halt } elseif (%chan ison #) && (%chan == $me) { inc %e goto fred } elseif (%chan isreg #) || (%chan isvoice #) || (%chan isop #) { kick # %chan mode # +i mode # +s mode # +m inc %e goto fred } } if ($1- == !lockdown off) { /mode # -i /mode # -s /mode # -m } |
mIRC Snippet:
Lockdown
Posted on Sep 10, 2008 6:22 pm
Posted on Sep 10, 2008 6:22 pm
you should look into while loops as well you can put the chan modes on one line
| Code: |
| on @*:text:*:#: { if ($nick isop #) { if ($1 == !lockdown) { set $+(%,lockdown,.,$chan) on mode # +ism var %a = $nick(#,0,r), %o = 1 while (%o <= %a) { ban -ku30 # $nick(#,%o,r) 2 Channel LockDown inc %o } } if ($1 == !lockdownoff) { if ($($+(%,lockdown,.,$chan),2)) { mode # -ism | unset $+(%,lockdown,.,$chan) } } } } on @*:input:#: { if ($1 == !lockdown) { set $+(%,lockdown,.,$chan) on mode # +ism var %a = $nick(#,0,r), %o = 1 while (%o <= %a) { ban -ku30 # $nick(#,%o,r) 2 Channel LockDown inc %o } } if ($1 == !lockdownoff) { if ($($+(%,lockdown,.,$chan),2)) { mode # -ism | unset $+(%,lockdown,.,$chan) } } } |









