mIRC Home    About    Download    Register    News    Help

Print Thread
#26547 28/05/03 01:04 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
how would i say like for example
in an on join kick(i have the kick), tell it only to work if a certain group is enabled?
by group i mean #switch


new username: tidy_trax
#26548 28/05/03 01:08 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
$group(#switch) returns either on or off, depending on the group status.
See /help $group.

#26549 28/05/03 01:11 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i looked at that but i didnt really understand what would say if its on and i dont want to make any mistakes as ive just coded 300 groups and need to make an onjoin for each 1:(
would this work?
if ($group(#hoj).status == on) {


new username: tidy_trax
#26550 28/05/03 01:16 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
its ok i got it now thanx smile


new username: tidy_trax
#26551 28/05/03 01:21 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Why don't u put the on join IN the group seeing it won't work unless the group is enabled anyways.


-KingTomato
#26552 28/05/03 01:41 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
because i might want more than 1 group enabled and you can only have 1 on join in each file so im gunna have like
on *:JOIN:#:{
if ($group(#eg).status == on) {
code
}
if ($group(#eg2).status == on) {
code
}
}


new username: tidy_trax

Link Copied to Clipboard