You can use a loaded script across all server connections, and to limit use of a script you simply need an if statement to check the value of $network or $cid and decide whether the script should continue with commands based on the returned values. It's also possible to use a custom alias to check the number of the connection assosciated with a triggered event, since $cid isn't really sequential:

Code:
alias con {
  var %x 
  scid -a $(%x = %x $cid,) 
  return $findtok(%x,$cid,32) 
}