You should also call this function from Delete, EndRescue, UserLogoffHook, AllowPlayerAttack, and Killed to reduce code duplication.