FNdanielNL Posted October 19, 2007 Share Posted October 19, 2007 how do i make i command what is displaying the names of the players ingame? example: !players response: player1, player2, player 3, player 4 ... Link to comment
FNdanielNL Posted October 19, 2007 Author Share Posted October 19, 2007 Press it the Tab button If you dont know what i want to do whit it... Dont try to be smart Link to comment
[UVA]Bart Posted October 19, 2007 Share Posted October 19, 2007 (edited) 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 October 19, 2007 by Guest Link to comment
lil Toady Posted October 19, 2007 Share Posted October 19, 2007 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
Recommended Posts