rendered paste body if ($1 == !startgame) {
if (($nick isop $chan) && ( $1- != !startgame )) {
/set %cwarmins $2
/set %cwarworld $3
/set %cwarteam $4
/set %cwarmins_temp %cwarmins
/msg $chan %cwarmins minute(s) left untill the game, world %cwarworld $+ , team %cwarteam $+ !
:startloop
if (%cwarmins_temp == 1) {
goto endstartloop
}
.timer 1 60 /set %cwarmins_temp $calc(%cwarmins_temp - 1)
/msg $chan $+ $calc(%cwarmins - 1) minute(s) left untill game, world %cwarworld $+ , team %cwarteam $+ !
goto startloop
:endstartloop
.timer 1 60 /msg $chan The game has started!
/set %cwarmins_temp Game in progress
}
}