Cameron Smith ordered to do community work