Jump to content

Made from !admin script to !members script


SamB

Recommended Posts

totally wrong i know :(

shud be like this:

Guy: !members

Members online: Boylett, Paddy, Maya

or

Members online: There are currently no members online

here codes

on *:SIGNAL:mta.command:{ 
 if (!members* iswm $3) { 
   var %a = 0,%b 
   while (%a <= $mta.server($1).cmax) { 
     if ($readini($scriptdir $+ members.ini,$mta.nick($1,%a)) >= 1) { 
       if (!%b) %b = $mta.nick($1,%a) 
       elseif (%b) %b = %b $+ , $mta.nick($1,%a) 
     } 
     !inc %a 
   } 
   mta.text $1 $iif(%b,Members online: %b,There are currently no members online) 
 } 
}

and ini

[Members] 
{XN}Paddy
{XN}Boylett
{XN}Tomson
{XN}Killer-Bee
{XN}Gun
{XN}Yogi
{XN}GioSerpo

Link to comment

on *:SIGNAL:mta.command:{
 if (!members* iswm $3) {
   var %a = 0,%b
   while (%a <= $mta.server($1).cmax) {
     if ($readini($scriptdir $+ members.ini,Members,$mta.nick($1,%a)) == 1) {
       if (!%b) %b = $mta.nick($1,%a)
       elseif (%b) %b = %b $+ , $mta.nick($1,%a)
     }
     !inc %a
   }
   mta.text $1 $iif(%b,Members online: %b,There are currently no members online)
 }
}

and the ini

[Members]
{XN}Paddy=1
{XN}Boylett=1
{XN}Tomsonv
{XN}Killer-Bee=1
{XN}Gun=1
{XN}Yogi=1
{XN}GioSerpo=1

Link to comment
  • Recently Browsing   0 members

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