*VoLDo* Posted October 4, 2006 Share Posted October 4, 2006 Hello I need Simple !admin Script Anyone can help me? my ini: [eXtRem0] level=10 [VoLDo] level=5 Link to comment
lil Toady Posted October 4, 2006 Share Posted October 4, 2006 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
*VoLDo* Posted October 4, 2006 Author Share Posted October 4, 2006 thx, but Can u write this script for Admins and Moderators? i have a 10 level script 2-5 are Moderators 6-10 Admins Link to comment
lil Toady Posted October 4, 2006 Share Posted October 4, 2006 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
Recommended Posts