if (is_member_of($vbulletin->userinfo, 5, 6, 7)) {stuff only for members in groups 5, 6, and 7}else{print_no_permission();}