All pastes #101717 Raw Edit

Anonymous

public text v1 · immutable
#101717 ·published 2006-07-27 03:04 UTC
rendered paste body
on *:text:*:#:{
  if (($chan == %public) || ($chan == %channel)) {
    if (($1 == !pl) || ($1 == !players) || ($1 == !playerlist) && (!$2)) {
      var %a = 1, %gdi.count, %nod.count
      while (%a <= $lines(c:\fastc0nn1bot\playerinfo.txt)) {
        var %b = $gettok($read(c:\fastc0nn1bot\playerinfo.txt,%a),2,32), %c = $pinfo(%b).team, %d = $pinfo(%b).name
        if (%c == GDI) {
          var %gdi = $iif(!%gdi,%d,$+(%gdi,$chr(44)) %d)
          inc %gdi.count
        }
        if (%c == Nod) {
          var %nod = $iif(!%nod,%d,$+(%nod,$chr(44)) %d)
          inc %nod.count
        }
        inc %a
      }
      msg # 7GDI $+($chr(40),$iif(!%gdi.count,0,%gdi.count),$chr(41),:) $iif(!%gdi,None,%gdi) 
      msg # 4Nod $+($chr(40),$iif(!%nod.count,0,%nod.count),$chr(41),:) $iif(!%nod,None,%nod)
    }
  }
}