Transfering money

Ok let's say my friend wanted to transfer me $100 but didn't want to go through actual transfering. So we sit down at a nl100 hu table, he bets $99.9 I call and then he folds. Is this illegal? Do sites have stuff set up to prevent this sort of thing?