| Arcades | Library | Travel | MP3 | Directory | Horoscope | Downloads | Mobile | Movies | Gallery | PHP Group |
| mIRC :: SCRIPTING & HELP mIRC Scripting help, General help, Tips and Tricks! |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Kick On Idle
Code:
on *:text:!icheck &:#Leb:{
if $nick isop # {
if $2 == on {
.timericheck 0 60 icheck
msg # IdleCheck enabled
}
elseif $2 == off {
.timericheck off
msg # IdleCheck disabled
}
}
}
alias icheck {
var %i = 1
while $nick(#Leb,%i) {
if (($v1 isreg #Leb) && ($nick(#Leb,%i).idle > 600)) {
ban -k #Leb $nick(#Leb,%i) 2 No Idling. Thank you.
inc %i
}
inc %i
}
}
__________________
Last edited by Cult; 18-12-2005 at 04:00 PM. |
|
#2
|
||||
|
||||
|
Re: Kick On Idle
Don't you think you should get the code to check if you are an OP or not? I think the way you have it will attempt to kick even if you are not OPed
![]() I would add two checks, one in the event and the other same line with the while loop (just before the mode/kick line), so the code wouldnt run the check if you are not opped and if an OP deoped you for some reason, the loop would halt. I might be wrong, but I thought I should share my thoughts ![]() Happy New Year everyone
__________________
:: i have been since the dawn of time. i will be until the dusk of eternity :: Last edited by ZAcK; 03-01-2006 at 03:47 AM. |
|
#3
|
||||
|
||||
|
Re: Kick On Idle
sorry for undeleting your post bro
well it was a pleasure to undelete it, coz it`s a forum in here and we shall discuss stuff, and if i have something wrong and someone was trying to fix it, that is good ![]() i`ll try to fix it bro. happy new year u too bro.. wish u all luck in the new year.
__________________
|
|
#4
|
||||
|
||||
|
Re: Kick On Idle
I dont think theres need to add WHILE LOOPS
, thx.
__________________
Me here, Me gone. |
|
#5
|
||||
|
||||
|
Re: Kick On Idle
No need for new while loops! actually it is so simple, a @ and && ($me isop #leb) would do the trick.
Code:
on @*:text:!icheck &:#Leb:{
; i just added the @ to the previous line
if ($nick isop #) {
if ($2 == on) {
.timericheck 0 60 icheck
msg # IdleCheck enabled
}
elseif ($2 == off) {
.timericheck off
msg # IdleCheck disabled
}
}
}
alias icheck {
var %i = 1
while $nick(#Leb,%i) && ($me isop #leb) {
; and && ($me isop $chan) to this line.
if (($v1 isreg #Leb) && ($nick(#Leb,%i).idle > 600)) {
ban -k #Leb $nick(#Leb,%i) 2 No Idling. Thank you.
inc %i
}
inc %i
}
}
Cult, next time please email or send me a messege before undeleting/editing my posts, I deleted it for a reason. No worries this time. Have fun all
__________________
:: i have been since the dawn of time. i will be until the dusk of eternity :: Last edited by ZAcK; 03-01-2006 at 04:17 AM. |
|
#6
|
||||
|
||||
|
Re: Kick On Idle
Quote:
thanx for the fixing bro ![]()
__________________
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Champions League final is long corner kick from Wyoming (AP) | TheGodFather | Sports -Warm up first! | 0 | 22-05-2007 11:21 PM |
| Advertise kicker. | anmlhckr | mIRC :: SCRIPTING & HELP | 22 | 03-01-2006 07:58 AM |
| kick counter | shiah | mIRC :: SCRIPTING & HELP | 0 | 09-04-2005 11:15 AM |
| Fixed filter kick | shiah | mIRC :: SCRIPTING & HELP | 1 | 31-03-2005 03:52 PM |
| mass kick prot | Cult | mIRC :: SCRIPTING & HELP | 0 | 24-02-2005 04:34 PM |