Jump to content

!players command


FNdanielNL

Recommended Posts

create a new script in mirc and put this in and save it, this when you do !players will return the players name and there ingame id number.

on *:SIGNAL:mta.command { 
  if ($3 == !players) slr.playerlist $1- 
} 
alias slr.playerlist { 
  var %a = 0 
  while (%a <= $mta.server($1).cmax) { 
    if ($mta.nick($1,%a)) { 
      mta.pm $1 $2 $mta.nick($1,%a) $+ 's Id is: %a 
    } 
    inc %a 
  } 
} 

Edited by Guest
Link to comment

im more than sure he is talking about mta0.5

on *:SIGNAL:mta.command:{ 
  if ($3 == !players) 
    var %a = 0,%b 
    while (%a <= $mta.maxplayers($1)) { 
      if ($mta.status($1,%a) == 2) %b = $iif(!%b,$mta.name($1,%a),%b $+ $chr(44) $mta.name($1,%a)) 
      !inc %a 
    } 
    mta.say $1 $iif(%b,Players in game: %b,There are no Players In Game) 
  } 
} 

Link to comment
  • Recently Browsing   0 members

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