You mean custom game right?
In custom games TAC and VAC isnt active (Confirmed by some codenzers) but i think if other people are in your custom lobby then its active !!!IM NOT SURE!!!
If you hack in Private and then go into Online in the same session VAC bans you, better restart after private haxin.