Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:*:#: {
- if ($1 == !findmix) {
- if ($2 <= 1) || ($2 >= 6) { msg $chan $nick The number players must be move between 2-5. }
- else { fx $2 }
- }
- }
- alias test {
- var %x = 1, %file = mixs.ini
- while ($ini(mixs.ini,%x)) {
- var %topic = $v1
- if ($readini(%file,%topic,numplayers) > $numtok($readini(%file,%topic,players),44)) && ($readini(%file,%topic,numplayers) == $1) {
- return %topic
- }
- inc %x
- }
- }
- alias fx {
- if ($test($1) == $null) {
- var %num = $rand(100,999), %chans = #Mix [ $+ [ %num ] ]
- if ($1 == 2) { writeini -n Mixs.ini %chans NumPlayers 2 }
- elseif ($1 == 3) { writeini -n Mixs.ini %chans NumPlayers 3 }
- elseif ($1 == 4) { writeini -n Mixs.ini %chans NumPlayers 4 }
- elseif ($1 == 5) { writeini -n Mixs.ini %chans NumPlayers 5 }
- getinn $nick %chans
- }
- else { getinn $nick $test($1) }
- }
- alias getinn {
- msg $1 You invited to $2
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement