Advertisement
intersys

Untitled

Aug 15th, 2014
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.89 KB | None | 0 0
  1. on *:TEXT:*:#: {
  2.   if ($1 == !findmix) {
  3.     if ($2 <= 1) || ($2 >= 6) { msg $chan $nick The number players must be move between 2-5. }
  4.     else { fx $2 }
  5.   }
  6. }
  7.  
  8. alias test {
  9.   var %x = 1, %file = mixs.ini
  10.   while ($ini(mixs.ini,%x)) {
  11.     var %topic = $v1
  12.     if ($readini(%file,%topic,numplayers) > $numtok($readini(%file,%topic,players),44)) && ($readini(%file,%topic,numplayers) == $1) {
  13.       return %topic
  14.     }
  15.     inc %x
  16.   }
  17. }
  18.  
  19. alias fx {
  20.   if ($test($1) == $null) {
  21.   var %num = $rand(100,999), %chans = #Mix [ $+ [ %num ] ]
  22.     if ($1 == 2) { writeini -n Mixs.ini %chans NumPlayers 2 }
  23.     elseif ($1 == 3) { writeini -n Mixs.ini %chans NumPlayers 3 }
  24.     elseif ($1 == 4) { writeini -n Mixs.ini %chans NumPlayers 4 }
  25.     elseif ($1 == 5) { writeini -n Mixs.ini %chans NumPlayers 5 }
  26.     getinn $nick %chans
  27.   }
  28.   else { getinn $nick $test($1) }
  29. }
  30. alias getinn {
  31.   msg $1 You invited to $2
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement