what is drupal 6's version of hook_user_cancel for drupal7?
hook_user() has an operation for delete, it does however lack an option for ban or block. In this case you should use the rules module and implement a custom action that gets called when a user is banned, the action being in your custom code. There's a few Drupalcon presentations on Rules, Conditions and Actions available on Drupal.org.