All pastes #943718 Raw Edit

Miscellany

public cpp v1 · immutable
·published 2008-03-15 15:06 UTC
rendered paste body
on *:TEXT:.add *:#cdqpug:{  if (%pugstart == 1) {    if ($2 == t) {      if (%tplayer1 == Empty) {        set %tplayer1 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }      if (%tplayer2 == Empty) {        set %tplayer2 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }      if (%tplayer3 == Empty) {        set %tplayer3 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }      if (%tplayer4 == Empty) {        set %tplayer4 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }      if (%tplayer5 == Empty) {        set %tplayer5 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }    }    if ($2 == ct) {      if (%ctplayer1 == Empty) {        set %tplayer1 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }      if (%ctplayer2 == Empty) {        set %tplayer2 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }      if (%ctplayer3 == Empty) {        set %tplayer3 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }      if (%ctplayer4 == Empty) {        set %ctplayer4 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }      if (%ctplayer5 == Empty) {        set %ctplayer5 $nick        msg $chan 4,1· 0Players for the PUG 4,1· 0T: %tplayer1 - %tplayer2 - %tplayer3 - %tplayer4 - %tplayer5 4,1· 0CT: %ctplayer1 - %ctplayer2 - %ctplayer3 - %ctplayer4 - %ctplayer5 4,1·      }    }    else {       notice $nick You need to type a team. ( Counter-Terrorist: ct / Terrorist: t )    }  }}