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
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...
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"