Sure, I worked straight from the codex, with a slight alteration to change the slug
<?php
add_action( 'init', 'create_post_type' );
function create_post_type_project() {
register_post_type( 'cg_project',
array(
'labels' => array(
'name' => __( 'Projects' ),
'singular_name' => __( 'Project' )
),
'public' => true,
'rewrite' => array('slug' => 'projects'),
)
);
}
?>