Code:
ON *:TEXT:!next:#: {
if ($nick isop $chan) {
inc %usercount 1
if (%usercount < $lines(list.txt)) {
msg $chan It's time for $read(list.txt, %usercount) to play!
}
elseif (%usercount == $lines(list.txt)) {
inc %usercount 1
msg $chan It's time for $read(list.txt, %usercount) to play again
}
elseif (%usercount > $lines(list.txt)) {
;unset %usercount
;msg $chan List Is Over!
set %usercount 1
msg $chan Back to $read(list.txt, %usercount) !
}
}

As it is now it will start over when the last player has played. If you want it to end when the last player plays remove the ; from the lines and put it in the next 2 smile

Last edited by OrFeAsGr; 02/11/15 11:49 AM.