Jump to content

!admin Script


*VoLDo*

Recommended Posts

call the ini 'admins.ini' and put it in the same dir as the script

on *:SIGNAL:mta.command:{
 if (!admin* iswm $3) {
   var %a = 0,%b
   while (%a <= $mta.maxplayers($1)) {
     if ($readini($scriptdir $+ admins.ini,$mta.name($1,%a),level) >= 2) %b = $iif(%b,%b $+ $chr(44) $mta.name($1,%a),$mta.name($1,%a)) $+ (level: $readini($scriptdir $+ admins.ini,$mta.name($1,%a),level) $+ )
     !inc %a
   }
   mta.say $1 $iif(%b,Admins: %b,No admins currently present.)
 }
}

Link to comment

on *:SIGNAL:mta.command:{
 if (!admin* iswm $3) {
   var %a = 0,%b,%c,%d
   while (%a <= $mta.maxplayers($1)) {
     %d = $readini($scriptdir $+ admins.ini,$mta.name($1,%a),level)
     if (%d >= 6) %b = $iif(%b,%b $+ $chr(44) $mta.name($1,%a),$mta.name($1,%a)) $+ (Level: %d $+ )
     elseif (%d >= 2) %c = $iif(%c,%c $+ $chr(44) $mta.name($1,%a),$mta.name($1,%a)) $+ (Level: %d $+ )
     !inc %a
   }
   mta.say $1 $iif(%b,Admins: %b,No admins currently present.)
   if (%c) mta.say $1 Moderators: %c
 }
}

And you can get my 10 levels admin system here, it includes lots of commands

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...