mIRC Home    About    Download    Register    News    Help

Print Thread
#124387 05/07/05 11:57 PM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
Code:
 on *:text:!3on3:#chan: {
  if ($nick isop #) { notice $nick 3on3 lineup can be started.
  msg # lineup: %players }
  else { notice $nick You are not allowed to start a 3on3 match }
}
on *:text:!3on3 add:#chan: {
  if ($nick isop #) { set %players $nick $+ , 
  msg # lineup: %players }
  else { notice $nick YOU CANT BE ADDED TO THE LINEUP }
}
on *:text:!3on3 lineup:#chan: {
  msg # lineup: %players
}

 


Now it works so far. But there is 1 problem. The players arent showed all, but only the latest player is showed in !3on3 lineup. How can i fix that... grin

#124388 06/07/05 12:44 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:text:!3on3:#chan: {
  if ($nick isop #) { 
    notice $nick 3on3 lineup can be started.
  msg # lineup: %players }
  else { notice $nick You are not allowed to start a 3on3 match }
}
on *:text:!3on3 add:#chan: {
  if ($nick isop #) { 
    [color:green]%players = $addtok(%players,$nick,44)[/color]
  msg # lineup: %players }
  else { notice $nick YOU CANT BE ADDED TO THE LINEUP }
}
on *:text:!3on3 lineup:#chan: {
  msg # lineup: %players
}


-Andy

#124389 06/07/05 01:45 AM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
ty.

Now i've a second problem. If i didnt set !3on3, then the ppl still can do !3on3 add. I dont want that, but cant find any way to disable !3on3 add.

Anyway, I want to limit it to 3 people. Plus that the output is: Name,<SPACE>name, name. And not Name,Name,Name etc.

Because its ugly now. Thx for supporting me smile

#124390 06/07/05 04:48 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Change
Code:
 msg # Lineup %players 
to
Code:
 msg # Lineup $replace(%players,$chr(44),$+($chr(44),$chr(32))) 
make the same change at each location.

#124391 07/07/05 12:47 AM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
Thnx, it works fine.

Quote:
Now i've a second problem. If i didnt set !3on3, then the ppl still can do !3on3 add. I dont want that, but cant find any way to disable !3on3 add.


Link Copied to Clipboard