stylo Posted March 14, 2007 Posted March 14, 2007 we have a lvl 1 - 10 admin system but we want the level that the admin is behind it when you type !admin Example: !admin Online Admin's: John(10) noob(7) that stuff. Does anyone knows that?
Scooby Posted March 14, 2007 Posted March 14, 2007 we have a lvl 1 - 10 admin system but we want the level that the admin is behind it when you type !adminExample: !admin Online Admin's: John(10) noob(7) that stuff. Does anyone knows that? Look in ur script for the bit thats to do with !admin, is should look like: elseif ($3 == !admin) || ($3 == !admins) { var %aa = 0,%bb,%cc,%dd while (%aa <= $mta.server($1).cmax) { if ($readini($scriptdir $+ admin.ini,ADMIN,$mta.nick($1,%aa)) >= 2) { if (!%bb) %bb = $mta.nick($1,%aa) elseif ($numtok(%bb,32) <= 7) %bb = %bb $mta.nick($1,%aa) elseif (!%cc) %cc = $mta.nick($1,%aa) elseif ($numtok(%cc,32) <= 7) %cc = %cc $mta.nick($1,%aa) elseif (!%dd) %dd = $mta.nick($1,%aa) elseif ($numtok(%dd,32) <= 7) %dd = %dd $mta.nick($1,%aa) } !inc %aa } if (%bb) { mta.text $1 Online Admin(s): %bb if (%cc) mta.text $1 %cc if (%dd) mta.text $1 %dd } else mta.text $1 There are no online admins. } and change it to this: elseif (!admin* iswm $3) { var %a = 0, %b = None while (%a < $mta.server($1).cmax) { var %c = $readini($scriptdir $+ admin.ini,ADMIN,$mta.nick($1,%a)) if (%c > 2) { if (%b == None) %b = $mta.nick($1,%a) $+ ( $+ %c $+ ) else %b = %b $+ , $mta.nick($1,%a) $+ ( $+ %c $+ ) } !inc %a } mta.text $1 Current Admins: %b $+ . } I think this should work, i dont use GUS, but i took this from the PRS, it seems to have these things u ask for
Recommended Posts