How To Add Some Admin

By ssimar on Apr 22, 2010

If U Want To MAke Someone Admins Copy this snippet in your remote and type !admins and it display admins name replace nickhere with ur nick whom u want to add someone admin And please give me some comments and some good code snippets for my bot please please tell me if it works fine

on *:TEXT:!admins:#: {msg $chan Admins are 1.nickhere 2.nickhere 3.nickhere 4.nickhere 5.nickhere  6.nickhere 7.nickhere 8.nickhere

Comments

Sign in to comment.
Bielie   -  Apr 28, 2010

Way too basic. Missleading title......

 Respond  
Jethro   -  Apr 26, 2010

Well, I reckon if you want to exclude the user modes ~ and &, you should do:

while ($nick(#,$0,a,~&hvr))

This is supposed to match for @ only.

 Respond  
rsb   -  Apr 26, 2010

lolwut

 Respond  
PuNkTuReD   -  Apr 26, 2010

some users can have ~ & and @
does that exclude users with ~ and & ?

no worries got it

on *:text:$($strip(!findop)):#:findop
alias findop {
  while ($nick(#,$0,@,~&)) tokenize 32 $1- $v1
  $iif($isid,return,.msg #) Opper(s): $2-
}
 Respond  
Jethro   -  Apr 25, 2010

Cheiron, this will mainly check for ops:

$nick(#,0,@)

To use a while loop to find all the ops in channel, you can do:

on *:text:$($strip(!findop)):#:findop
alias findop {
  while ($nick(#,$0,@)) tokenize 32 $1- $v1
  $iif($isid,return,.msg #) Opper(s): $2-
}

Syntax: > //echo $findop or > !findop

 Respond  
PuNkTuReD   -  Apr 25, 2010

@Cheiron
try

while (%a <= $nick(#,0,@,~&)) {

 Respond  
edgy   -  Apr 25, 2010

I think anyone who has coded mIRC would be able to do this themselves! lol.

 Respond  
Cheiron   -  Apr 22, 2010

just had a play with this on different modes.. and o returns everyone from owner to op. no halfops.
changing the & to a h .. and doing the command correctly returns those with halfop in the channel.
cant seem to get "just" the ops listed though... those with @ any thoughts?

 Respond  
PuNkTuReD   -  Apr 22, 2010

yea, i just layed my head on my pillow and thought

NOOOOOOOOO

rofl

 Respond  
napa182   -  Apr 22, 2010

PunkTuReD the a in ur $nick(#,0,a) the a = all

if the server uses users marks as ~ & @ % + then use $nick(#,0,&)
ex:

 on *:text:!admins:#: {
  var %a = 1, %admins
  while (%a <= $nick(#,0,&)) {
    %admins = %admins $+(%a,.,$nick(#,%a,&))
    inc %a 
  }
  msg # # Admins are: %admins 
}

or

 on *:text:!admins:#:msg # # Admins are: $regsubex($str(-,$nick(#,0,&)),/./g,\n. $nick(#,\n,&) $chr(32))

there are more ways to go about this as well...

 Respond  
PuNkTuReD   -  Apr 22, 2010

this should return users with mode +a

on *:text:!admins:#: {
  var %a = $nick(#,0,a)
  :loop
  while (%a) {
    if ($nick(#,$nick(#,%a),a)) var %admins = $+(%a,.,$nick(#,%a)) %admins | dec %a 
    else goto loop
  }
  msg # # Admins are: %admins 
}

still useless tho, just look at your nicklist. rofl.

you also need a space between your opening bracket and your "msg"

 Respond  
Spanky   -  Apr 22, 2010

oh wow.. :/ REALLY? really has the land of mirc scripting not changed. :{ well i AM displeased.. very.

 Respond  
napa182   -  Apr 22, 2010

=/ lolwut

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.